Skip to content

fix(alerts): Migration to repair latest adopted release environments - #122096

Open
hobzcalvin wants to merge 1 commit into
masterfrom
env-name-cleanup
Open

fix(alerts): Migration to repair latest adopted release environments#122096
hobzcalvin wants to merge 1 commit into
masterfrom
env-name-cleanup

Conversation

@hobzcalvin

Copy link
Copy Markdown
Contributor

The new alerts UI saved the environment ID, but the backend expects/saves it as name.

#122074 patched that frontend issue; this is the cleanup to find release conditions where environment refers to an Environment's id, not name, and update it to name.

Resolves ISWF-3297

@hobzcalvin
hobzcalvin requested a review from a team as a code owner August 14, 2026 21:50
@linear-code

linear-code Bot commented Aug 14, 2026

Copy link
Copy Markdown

ISWF-3297

@hobzcalvin
hobzcalvin requested review from leeandher and removed request for a team August 14, 2026 21:50
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 14, 2026
@hobzcalvin
hobzcalvin requested review from kcons and saponifi3d August 14, 2026 21:50
@github-actions

Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/workflow_engine/migrations/0118_repair_latest_adopted_release_environments.py

for 0118_repair_latest_adopted_release_environments in workflow_engine

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

@saponifi3d saponifi3d left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants