Skip to content

ref(flags): Remove organizations:jira-explicit-mapping-removals (backend) - #130394

Merged
Christinarlong merged 3 commits into
masterfrom
claude-rm-jira-explicit-mapping-removals-backend
Nov 19, 2026
Merged

Christinarlong merged 3 commits into
masterfrom
claude-rm-jira-explicit-mapping-removals-backend

Conversation

@cursor

@cursor cursor Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Remove the backend read of organizations:jira-explicit-mapping-removals. This flag was fully rolled out in the automator in #9152 on 8/10, and hasn't been touched since. The gate was added by #121198.

Collapse value is True, so update_organization_config always treats sync_status_forward as a diff: _validate_project_status_mapping_diff loses allow_explicit_removals and _reconcile_project_status_mappings loses remove_omitted.

Two hunks a reviewer should look at:

  • The two *_without_feature tests in test_integration.py are deleted rather than retargeted — legacy replacement mode no longer exists for any org, so there is no surviving gate for them to exercise.
  • test_update_organization_config_sync_keys asserted that an empty payload wipes every mapping. That was the legacy behaviour, so the last block now removes the mapping with an explicit {10100: None} and still asserts the derived sync_status_forward bool flips to False.

Left alone: the jira.sync_status_forward.omits_existing_mappings log and its omitted_count, which are marked "only used for tracking rollout of feature". Happy to drop them in a follow-up commit if the team is done with the signal.

Second of four, in merge order: #130393 (frontend reads) → this PR → automator value → temporary.py registration.

Verified locally: ruff check, ruff format --check, and sentry's flake8_plugin rules on the three touched files. No local venv here, so the pytest run is CI's.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Open in Web View Automation 

…nd gate

The flag reached 100% GA in the options automator on 2026-08-10, so the
sync_status_forward payload is always treated as a diff.

Co-authored-by: charlie.luo <[email protected]>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 8, 2026
@cursor
cursor Bot requested a review from Christinarlong November 8, 2026 20:29
@cursor
cursor Bot marked this pull request as ready for review November 8, 2026 20:34
@cursor
cursor Bot requested review from a team as code owners November 8, 2026 20:34

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cc @getsentry/integration-platform (CODEOWNERS for /src/sentry/integrations/) and @getsentry/issue-workflow (the flag's owner.team in flagpole). @Christinarlong is requested as the flag's author.

CI is green apart from getsentry dispatch, which fails on every PR this automation opens: it gates on the author having write permission and the author is cursor[bot]. A collaborator needs to add the Trigger: getsentry tests label to run it.

The hunk worth a second pair of eyes is in test_update_organization_config_sync_keys. That test has no @with_feature decorator and never mentions the flag, but its last block asserted that an empty sync_status_forward payload wipes every mapping — behaviour that only existed on the flag's False branch. It now removes the mapping with an explicit {10100: None} and still asserts the derived sync_status_forward bool flips to False.

Merge order: #130393 (frontend reads) → this PR → getsentry/sentry-options-automator#10534 (flagpole value) → #130395 (registration).

View PR

Open in Web View Automation 

Sent by Cursor Automation: Feature flag cleanup

@Christinarlong Christinarlong added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@github-actions github-actions Bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@Christinarlong Christinarlong added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@Christinarlong Christinarlong added Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests and removed Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests labels Nov 19, 2026
@github-actions github-actions Bot removed the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@Christinarlong Christinarlong added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Nov 19, 2026
@Christinarlong
Christinarlong merged commit 3a9f08f into master Nov 19, 2026
100 of 101 checks passed
@Christinarlong
Christinarlong deleted the claude-rm-jira-explicit-mapping-removals-backend branch November 19, 2026 21:33

This branch was successfully deployed

1 active deployment
Preview — 100f6c97 Deployed Nov 19, 2026 by vercel[bot]
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 Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants