-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Conversation
data: cacheMissRateData, | ||
error: cacheMissRateError, | ||
} = useSpanMetricsSeries( | ||
const {error: cacheMissRateError} = useSpanMetricsSeries( |
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.
Dupe request because of error handling :'(
cacheLandingPage
widgets
644abfd
to
12b9f54
Compare
69b937b
to
f0dffb1
Compare
cacheLandingPage
widgetscache-
+ queues-
page widgets
const {destination} = useLocationQuery({ | ||
fields: { | ||
destination: decodeScalar, | ||
}, | ||
}); |
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.
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
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.
Maybe! I think this is okay for now, though.
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 #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 |
ec72227
to
fa47fc2
Compare
const {destination} = useLocationQuery({ | ||
fields: { | ||
destination: decodeScalar, | ||
}, | ||
}); |
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.
Maybe! I think this is okay for now, though.
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
Part of #88560
Follow-up to #89325