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

refactor: remove web app request for labels projection #1328

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

csmig
Copy link
Member

@csmig csmig commented Jul 22, 2024

Resolves #1326

This PR refactors the web app to eliminate the unneeded and non-performant projection=labels parameter from the initial request for all Collections. In individual Collection workspaces, calls have been inserted that refresh that Collection's label cache from the just retrieved data.

Also, added logic to the Collection dashboard that suppresses three repetitive requests to the Metrics endpoints when the dashboard is first loaded. There was no issue for this, but the behavior was noted during other development efforts.

@csmig csmig requested a review from cd-rite July 22, 2024 20:57
Copy link

Quality Gate Passed Quality Gate passed for 'nuwcdivnpt_stig-manager-client'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
14.3% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@cd-rite cd-rite left a comment

Choose a reason for hiding this comment

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

tested, works fine!

@csmig csmig merged commit d5db9f1 into main Jul 24, 2024
2 checks passed
@csmig csmig deleted the remove-label-projection-request branch July 24, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove labels projection from calls to GET /Collections endpoint
2 participants