Skip to content

chore(groups): Replace category with category_v2#114251

Merged
ceorourke merged 16 commits intomasterfrom
ceorourke/ISWF-2348
May 4, 2026
Merged

chore(groups): Replace category with category_v2#114251
ceorourke merged 16 commits intomasterfrom
ceorourke/ISWF-2348

Conversation

@ceorourke
Copy link
Copy Markdown
Member

@ceorourke ceorourke commented Apr 28, 2026

The issue taxonomy flag was removed a while ago but the multiple group categories still needed to be cleaned up. We only use v2 going forward, so this replaces all the group type category with category_v2 but keeps the name category for simplicity.

As a temporary fallback in a couple files we still reference the old category type - this can be removed after a migration has been run to remove the old categories from data conditions.

@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 28, 2026

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 28, 2026
Comment thread src/sentry/issues/grouptype.py
Comment thread src/sentry/issue_detection/performance_detection.py Outdated

if group:
category_matches = value == group.issue_category or value == group.issue_category_v2
category_matches = value == group.issue_category or value == group.issue_category
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ceorourke this will actually change the behavior since there are existing database entries with the old categories (Redash query). We would need a migration to make them use the new categories.

In the meantime, you could add temporary code which handles the old categories here (and also in the corresponding workflow_engine condition which has the same problem)

Comment thread src/sentry/search/snuba/executors.py Outdated
Comment thread src/sentry/integrations/slack/service.py Outdated
@ceorourke ceorourke force-pushed the ceorourke/ISWF-2348 branch from 27f46ff to 51ccd4b Compare May 1, 2026 17:07
@ceorourke ceorourke marked this pull request as ready for review May 1, 2026 18:46
@ceorourke ceorourke requested review from a team as code owners May 1, 2026 18:46
@ceorourke ceorourke removed request for a team May 1, 2026 18:47
Comment thread src/sentry/incidents/grouptype.py
Comment thread src/sentry/integrations/slack/message_builder/types.py
Copy link
Copy Markdown
Member

@malwilley malwilley left a comment

Choose a reason for hiding this comment

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

💯 💯 💯

bot comments do look on point though

Comment thread src/sentry/uptime/grouptype.py
Comment thread src/sentry/incidents/grouptype.py
Comment thread tests/sentry/integrations/slack/service/test_slack_service.py
Comment thread src/sentry/issues/grouptype.py
Comment thread src/sentry/integrations/slack/actions/notification.py Outdated
Comment thread src/sentry/integrations/slack/actions/notification.py Outdated
Comment thread src/sentry/issues/grouptype.py
Comment thread src/sentry/notifications/notifications/rules.py
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6769d53. Configure here.

Comment thread src/sentry/integrations/slack/service.py Outdated
Comment thread src/sentry/integrations/slack/actions/notification.py Outdated
@ceorourke ceorourke merged commit 601aef2 into master May 4, 2026
82 checks passed
@ceorourke ceorourke deleted the ceorourke/ISWF-2348 branch May 4, 2026 20:20
cleptric pushed a commit that referenced this pull request May 5, 2026
The issue taxonomy flag was removed a while ago but the multiple group
categories still needed to be cleaned up. We only use v2 going forward,
so this replaces all the group type `category` with `category_v2` but
keeps the name category for simplicity.

As a temporary fallback in a couple files we still reference the old
category type - this can be removed after a migration has been run to
remove the old categories from data conditions.
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