-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref(flags): don't show feature flag section on any issues besides errors #82119
Conversation
return <FeatureFlagInlineCTA projectId={event.projectID} />; | ||
} | ||
|
||
// if contexts.flags is not set, hide the section | ||
if (!hasFlagContext) { | ||
if (!hasFlagContext || group.issueCategory === 'cron') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to hide the whole section for crons or just the cta?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whole section i think?
@@ -197,12 +197,12 @@ export function EventFeatureFlagList({ | |||
} | |||
}, [hasFlags, hydratedFlags.length, organization]); | |||
|
|||
if (showCTA) { | |||
if (showCTA && group.issueCategory !== 'cron') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: could be part of showCTA definition in case that variables reused
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #82119 +/- ##
==========================================
- Coverage 80.28% 71.39% -8.89%
==========================================
Files 7506 7210 -296
Lines 331637 320907 -10730
Branches 20966 20964 -2
==========================================
- Hits 266252 229123 -37129
- Misses 64977 91376 +26399
Partials 408 408 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we disable it for user-feedback and performance issues too?
@michellewzhang More specifically let's make sure we only target error issue types. |
…ors (#82119) the CTA was showing up for a [crons issue](https://sentry.sentry.io/issues/6139435070/events/11af5c3a9188460ab5f2edd5b583a988/?project=1) but we should probably hide it for that category.
the CTA was showing up for a crons issue but we should probably hide it for that category.