Skip to content

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

@prakash100198

Description

@prakash100198

📜 Description

When we do deployment for multiple envs via SDH then template/list api gives inaccurate data, for eg. if last deployment done in a n env is.3 but somehow it shows more than 3 deployments
Screenshot 2024-10-27 at 5 00 37 PM

👟 Reproduction steps

  1. make a devtron app with a workflow consisting of more than 1 env.
  2. now make a release track and add that app in that release track, select any commit to deploy in that env, now trigger depl simoultaneously in those env, now wherever template/list api is being used it shows inconsistent data.

👍 Expected behavior

if for an env I've 1 deployment then it should only show 1 last previous deployment in Previous deployment section no more than 1 , or in template/list api also for type 3 , last deplpyment should be only 1 not mote than 1

👎 Actual Behavior

let's say for 2 deployment the deployment history shows 2 deployment but in template list data it shows more than 1 deployment

☸ Kubernetes version

1.30

Cloud provider

🌍 Browser

Chrome

🧱 Your Environment

No response

✅ Proposed Solution

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Labels

P0bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions