Skip to content
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

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

michellewzhang
Copy link
Member

the CTA was showing up for a crons issue but we should probably hide it for that category.

@michellewzhang michellewzhang requested a review from a team as a code owner December 14, 2024 01:45
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 14, 2024
return <FeatureFlagInlineCTA projectId={event.projectID} />;
}

// if contexts.flags is not set, hide the section
if (!hasFlagContext) {
if (!hasFlagContext || group.issueCategory === 'cron') {
Copy link
Member

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?

Copy link
Member Author

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') {
Copy link
Member

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

Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All 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              

Copy link
Member

@cmanallen cmanallen left a 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?

@cmanallen
Copy link
Member

@michellewzhang More specifically let's make sure we only target error issue types.

@michellewzhang michellewzhang changed the title ref(flags): don't show feature flag section on crons issues ref(flags): don't show feature flag section on any issues besides errors Dec 16, 2024
@michellewzhang michellewzhang merged commit 145e873 into master Dec 16, 2024
44 checks passed
@michellewzhang michellewzhang deleted the mz/hide-cron-ff branch December 16, 2024 17:45
evanh pushed a commit that referenced this pull request Dec 17, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants