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

Avoid overriding categories on each chunk #5067

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

antgamdia
Copy link
Contributor

@antgamdia antgamdia commented Jul 12, 2022

Description of the change

Since the API (after pagination) is returning the categories for the current chunk of pkg repos, replacing the whole categories: xxxxx leads to end up with an incomplete set of categories, as reported in the issue.
This PR aggregates the categories like we are doing for the packages.

Benefits

Categories won't get overridden on each chunk.

Possible drawbacks

N/A

Applicable issues

Additional information

Draft as I have to write a test to prevent regressions.

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for kubeapps-dev ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/62ce7e93f4231d587bf81ac9
😎 Deploy Preview https://deploy-preview-5067--kubeapps-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@antgamdia antgamdia marked this pull request as ready for review July 12, 2022 18:13
Copy link
Collaborator

@castelblanque castelblanque left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@antgamdia antgamdia merged commit 44f6327 into vmware-tanzu:main Jul 13, 2022
@antgamdia antgamdia deleted the 5066-failingCategories branch July 13, 2022 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pkg categories get deleted
3 participants