Skip to content

ref(insights): Refactor cache- + queues- page widgets #89344

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

Merged
merged 6 commits into from
Apr 17, 2025

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Apr 10, 2025

Part of #88560
Follow-up to #89325

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 10, 2025
@billyvg billyvg changed the base branch from master to ref-insights-combine-data-fetching-with-chart-rendering-cursor-results April 10, 2025 20:54
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 10, 2025
@billyvg billyvg changed the base branch from ref-insights-combine-data-fetching-with-chart-rendering-cursor-results to master April 10, 2025 20:56
@billyvg billyvg changed the base branch from master to ref-insights-combine-data-fetching-with-chart-rendering April 10, 2025 20:56
@billyvg billyvg removed the Scope: Backend Automatically applied to PRs that change backend components label Apr 10, 2025
@getsentry getsentry deleted a comment from github-actions bot Apr 10, 2025
data: cacheMissRateData,
error: cacheMissRateError,
} = useSpanMetricsSeries(
const {error: cacheMissRateError} = useSpanMetricsSeries(
Copy link
Member Author

Choose a reason for hiding this comment

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

Dupe request because of error handling :'(

@billyvg billyvg changed the title ref(insights): Combine data loading + widget rendering for Insights -> Http pages ref(insights): Refactor cacheLandingPage widgets Apr 10, 2025
Base automatically changed from ref-insights-combine-data-fetching-with-chart-rendering to master April 11, 2025 17:05
@billyvg billyvg force-pushed the ref-insights-combine-widgets-cache branch from 644abfd to 12b9f54 Compare April 14, 2025 19:39
@billyvg billyvg changed the base branch from master to feat-insights-pass-props-to-insights-chart-widgets April 14, 2025 19:40
Base automatically changed from feat-insights-pass-props-to-insights-chart-widgets to master April 15, 2025 13:01
@billyvg billyvg force-pushed the ref-insights-combine-widgets-cache branch from 69b937b to f0dffb1 Compare April 15, 2025 13:33
@billyvg billyvg changed the title ref(insights): Refactor cacheLandingPage widgets ref(insights): Refactor cache- + queues- page widgets Apr 15, 2025
Comment on lines +8 to +12
const {destination} = useLocationQuery({
fields: {
destination: decodeScalar,
},
});
Copy link
Member Author

Choose a reason for hiding this comment

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

This does mean that if this chart were rendered via the drawer, it needs to be on the Queues Summary Page (or have destination in query params). It's an optional param but I wonder if we want to be more strict about it?

We have a similar situation with the resources charts, it uses groupId url parameter

Copy link
Member

Choose a reason for hiding this comment

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

Maybe! I think this is okay for now, though.

Copy link

codecov bot commented Apr 15, 2025

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   #89344      +/-   ##
==========================================
- Coverage   87.67%   85.29%   -2.39%     
==========================================
  Files       10217    10170      -47     
  Lines      576083   573435    -2648     
  Branches    22691    22577     -114     
==========================================
- Hits       505104   489116   -15988     
- Misses      70554    83769   +13215     
- Partials      425      550     +125     

@billyvg billyvg marked this pull request as ready for review April 15, 2025 20:10
@billyvg billyvg requested a review from a team as a code owner April 15, 2025 20:10
@billyvg billyvg requested a review from gggritso April 15, 2025 20:11
Comment on lines +8 to +12
const {destination} = useLocationQuery({
fields: {
destination: decodeScalar,
},
});
Copy link
Member

Choose a reason for hiding this comment

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

Maybe! I think this is okay for now, though.

@gggritso gggritso merged commit 9ccddcd into master Apr 17, 2025
46 checks passed
@gggritso gggritso deleted the ref-insights-combine-widgets-cache branch April 17, 2025 19:31
andrewshie-sentry pushed a commit that referenced this pull request Apr 22, 2025
Part of #88560
Follow-up to #89325

---------

Co-authored-by: George Gritsouk <989898+gggritso@users.noreply.github.com>
billyvg added a commit that referenced this pull request Apr 24, 2025
This PR creates a "chart widget" similar to what we did for Insights
widgets (e.g. #89344). This is
so that we can deep-link to the `EventGraph` using only `groupId` from
URL parameters.

This also makes some changes to `EventGraph` so that we can use a custom
date range (/page filters). This is used when we click a release bubble,
we want the chart in the drawer to refetch the same stats (but at a
different interval) according to the bubble's time bucket.


Part of #88560
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 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.

2 participants