Skip to content
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

Merged
merged 2 commits into from
Jun 23, 2021

Conversation

pratap0007
Copy link
Contributor

@pratap0007 pratap0007 commented May 20, 2021

This patch includes following changes

  • Removes the association between Category and Tag table

    • 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
  • Updates /categories api to list categories only and removes tags

Submitter 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.

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 20, 2021
@@ -36,6 +36,8 @@ func Migrate(api *app.APIBase) error {
addRefreshTokenChecksumColumnInUserTable(log),
updateCatalogBranchToMain(log),
addAvatarURLColumnInUsersTable(log),
removeCatgoryAndTagAssociation(log),
Copy link
Member

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 :)

@pratap0007
Copy link
Contributor Author

/retest

1 similar comment
@pratap0007
Copy link
Contributor Author

/retest

log.Error(err)
return nil, fetchError

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: empty line

@sm43 sm43 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 7, 2021
@tekton-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 8, 2021
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]>
@tekton-robot tekton-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 10, 2021
@PuneetPunamiya
Copy link
Member

Thanks 🤙🏻

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2021
@tekton-robot tekton-robot merged commit c2864ec into tektoncd:main Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants