-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Updates /categories
api to list categories only and removes tags
#264
Conversation
cd658c0
to
55c0dd8
Compare
api/pkg/db/migration/migration.go
Outdated
@@ -36,6 +36,8 @@ func Migrate(api *app.APIBase) error { | |||
addRefreshTokenChecksumColumnInUserTable(log), | |||
updateCatalogBranchToMain(log), | |||
addAvatarURLColumnInUsersTable(log), | |||
removeCatgoryAndTagAssociation(log), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can do both in single migration :)
55c0dd8
to
c4bd341
Compare
/retest |
1 similar comment
/retest |
c4bd341
to
df42890
Compare
api/pkg/service/category/category.go
Outdated
log.Error(err) | ||
return nil, fetchError | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: empty line
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
df42890
to
611bf10
Compare
Signed-off-by: Shiv Verma <[email protected]>
This commit includes following changes - Modifies category and tag table - Add Migration for tag table to drop category_id column and delete the category-tag constraints - Modifies category parsing logic Signed-off-by: Shiv Verma <[email protected]>
611bf10
to
95e2e2c
Compare
Thanks 🤙🏻 /lgtm |
This patch includes following changes
Removes the association between Category and Tag table
and delete the category-tag constraints
Updates
/categories
api to list categories only and removes tagsSubmitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.