-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#163446771 Allow a User to Search by Tag and Title on Article (#39)
* feat(search): allow search articles by author - create search route - create search controller - add new line to test file - update yaml file - modify user model - allow a user to search by tags and words - write test finishes: 163405801
- Loading branch information
Showing
6 changed files
with
196 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export default { | ||
up: (queryInterface, Sequelize) => queryInterface.bulkInsert('Tags', [{ | ||
id: '00143c60-7b1a-11e8-9c9c-2d42b21b1a3e', | ||
name: 'Politics' | ||
}, | ||
{ | ||
id: '00155c60-6b1a-11e8-9c9c-2d42b21b1a3e', | ||
name: 'Technology' | ||
} | ||
], {}), | ||
|
||
down: (queryInterface, Sequelize) => queryInterface.bulkDelete('Tags', null, {}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export default { | ||
up: (queryInterface, Sequelize) => queryInterface.bulkInsert('ArticleTags', [{ | ||
id: '00143c60-7b1a-11e8-9c9c-2d42b21b1a3e', | ||
articleId: '95745c60-7b1a-11e8-9c9c-2d42b21b1a3e', | ||
tagId: '00143c60-7b1a-11e8-9c9c-2d42b21b1a3e' | ||
} | ||
], {}), | ||
|
||
down: (queryInterface, Sequelize) => queryInterface.bulkDelete('ArticleTags', null, {}) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters