Skip to content

Commit da77619

Browse files
authored
chore(grouping): Deprecate all grouping configs but the current one (#81072)
This marks all but the current grouping config as deprecated, as a first step to using the [script in getsentry](https://github.com/getsentry/getsentry/blob/master/bin/upgrade_deprecated_grouping_configs.py) to force all inactive projects onto the current config. (Active projects are all already on the new config, because as soon as we see an event from a project, we upgrade its config.) Once the script has been run and all projects have been migrated, we can wait the requisite 30 days (for all transition periods to end) and then we can delete the two older `newstyle` configs, along with all of their snapshots. (We'll keep the legacy config because a) we need at least one config besides the current one in order to be able to test grouping config transition, and b) we need that extra config to be different enough from the current config to predictably generate different hashes from the same data (so keeping another `newstyle` config won't do).
1 parent 0c090ee commit da77619

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/grouping/ingest/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
Job = MutableMapping[str, Any]
2121

2222
# Used to migrate projects that have no activity via getsentry scripts
23-
CONFIGS_TO_DEPRECATE = ()
23+
CONFIGS_TO_DEPRECATE = set(CONFIGURATIONS.keys()) - {
24+
DEFAULT_GROUPING_CONFIG,
25+
}
2426

2527

2628
def update_grouping_config_if_needed(project: Project, source: str) -> None:

0 commit comments

Comments
 (0)