Skip to content

Conversation

@gggritso
Copy link
Member

The spans-first-ui flag is going away, in favour of three flags:

  • insights-entry-points which enables entry points to Insight UIs if those entry points have upsells (e.g., sidebar links)
  • insights-initial-modules enables access to UIs that connect to the first set of Insights modules (Queries, Requests, Resources, etc.)
  • insights-addon-modules enables access to UI that show the newer set of Insights modules (Caches, LLMs, etc.)

This PR gets rid of spans-first-ui checks on the frontend, replacing them with the right insights- flag.

gggritso added 5 commits May 31, 2024 10:35
In order to see aggregate spans you need _some_ amount of span metrics.
So, `insights-initial-modules` is a good fit here.
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels May 31, 2024
@github-actions

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.

Project coverage is 77.92%. Comparing base (a20e75f) to head (a3400f8).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #71821      +/-   ##
==========================================
- Coverage   77.92%   77.92%   -0.01%     
==========================================
  Files        6563     6563              
  Lines      292382   292384       +2     
  Branches    50500    50505       +5     
==========================================
- Hits       227849   227846       -3     
- Misses      58284    58288       +4     
- Partials     6249     6250       +1     
Files Coverage Δ
...ents/events/interfaces/spans/spanSummaryButton.tsx 58.82% <ø> (ø)
static/app/components/sidebar/index.tsx 79.13% <100.00%> (-1.44%) ⬇️
.../app/views/performance/browser/resources/index.tsx 100.00% <ø> (ø)
...ce/browser/resources/resourceSummaryPage/index.tsx 0.00% <ø> (ø)
...rformance/browser/resources/resourceView/index.tsx 65.90% <100.00%> (ø)
...ews/performance/browser/webVitals/pageOverview.tsx 68.08% <ø> (ø)
...ormance/browser/webVitals/webVitalsLandingPage.tsx 82.75% <ø> (ø)
...c/app/views/performance/cache/cacheLandingPage.tsx 0.00% <ø> (ø)
...views/performance/database/databaseLandingPage.tsx 76.31% <ø> (ø)
...s/performance/database/databaseSpanSummaryPage.tsx 92.59% <ø> (ø)
... and 21 more

... and 104 files with indirect coverage changes

@codecov
Copy link

codecov bot commented May 31, 2024

Bundle Report

Changes will decrease total bundle size by 7.64kB ⬇️

Bundle name Size Change
app-webpack-bundle-array-push 27.89MB 7.64kB ⬇️

@gggritso gggritso removed the Scope: Backend Automatically applied to PRs that change backend components label May 31, 2024
@gggritso gggritso changed the title feat(insights): Granular feature flags feat(insights): Granular frontend feature flags May 31, 2024
@gggritso gggritso marked this pull request as ready for review May 31, 2024 18:47
@gggritso gggritso requested review from a team May 31, 2024 18:47
Copy link
Contributor

@DominikB2014 DominikB2014 left a comment

Choose a reason for hiding this comment

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

👍

@gggritso gggritso merged commit 23f44b7 into master Jun 3, 2024
@gggritso gggritso deleted the feat/insights/granular-feature-flags branch June 3, 2024 20:37
@gggritso gggritso added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Jun 4, 2024
@gggritso
Copy link
Member Author

gggritso commented Jun 4, 2024

Reverted because a few organization lost access to Requests modules as a result of this. Will re-create when we figure out what was missing.

@getsentry-bot
Copy link
Contributor

PR reverted: 5d78a21

getsentry-bot added a commit that referenced this pull request Jun 4, 2024
@gggritso gggritso restored the feat/insights/granular-feature-flags branch June 4, 2024 13:47
gggritso added a commit that referenced this pull request Jun 4, 2024
Re-creation of #71821 which I
had to fast-revert
gggritso added a commit that referenced this pull request Jun 4, 2024
Sibling to #71821 but on the
backend. Basically, disable the Aggregate Span Waterfall and Span
Duration Comparison features if the organization doesn't have access to
Insights modules (AKA span metrics!)
hubertdeng123 added a commit that referenced this pull request Jun 4, 2024
Take 3 of #71948. The
[PR](#71821) that originally
introduced sidebar changes was reverted, causing frontend tests that
were introduced here to fail.
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
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 Trigger: Revert Add to a merged PR to revert it (skips CI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants