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

fix(cd-service): improve get app details deployments #2164

Merged
merged 9 commits into from
Dec 10, 2024

Conversation

diogo-nogueira-freiheit
Copy link
Contributor

@diogo-nogueira-freiheit diogo-nogueira-freiheit commented Dec 9, 2024

The GetAppDetails endpoint collects information about the deployments of an app.
One of these is the latest queued version. Currently the endpoint would evaluate one deployment at a time and, when it was decided to be a valid deployment, the database would be queried for this deployment's latest queued version.

This PR queries the database for all latest deployment attempts. Then when analyzing each deployment it just pulls from this information cached in a map.

This might slow down GetAppDetails requests that have no current deployments (since before we would not query the queued versions for invalid deployments). This will translate in improved performance. And in most cases, most apps will have deployments

Ref: SRX-016Y9E

@diogo-nogueira-freiheit diogo-nogueira-freiheit requested a review from a team as a code owner December 9, 2024 17:46
@diogo-nogueira-freiheit diogo-nogueira-freiheit enabled auto-merge (squash) December 10, 2024 15:40
@diogo-nogueira-freiheit diogo-nogueira-freiheit merged commit 9e76991 into main Dec 10, 2024
18 checks passed
@diogo-nogueira-freiheit diogo-nogueira-freiheit deleted the dn/improve_get_app_details_deployments branch December 10, 2024 16:37
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.

3 participants