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: fix for showing inaccurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr #6034

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

prakash100198
Copy link
Contributor

@prakash100198 prakash100198 commented Oct 27, 2024

Description

This PR fixes the case when we show inaccurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history.deployed_on and wfr.started_on, because in case of SDH we store same deployed_on in wfr table for all the pipeline.
Fixes #6035

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?


…d another and sql clause to filter pipeline on
@prakash100198 prakash100198 changed the title fix for showing in accurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr fix: fix for showing in accurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr Oct 27, 2024
@prakash100198 prakash100198 changed the title fix: fix for showing in accurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr fix: fix for showing inaccurate data in template/list api while fetching previous deployments list in template/list api, output shown was cartesian product of deployment_template_history and wfr Oct 27, 2024
vikramdevtron
vikramdevtron previously approved these changes Oct 27, 2024
Copy link

@prakash100198 prakash100198 merged commit c8fa8cb into main Oct 28, 2024
8 checks passed
@prakash100198 prakash100198 deleted the sdh-template-list-cartesian-product-fix-oss branch October 28, 2024 09:50
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.

Bug: wrong data in template/list api when deployment is done via SDH for multiple envs simoultaneously
2 participants