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(webvitals): Support for using stored performance scores #60397

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

edwardgou-sentry
Copy link
Contributor

@edwardgou-sentry edwardgou-sentry commented Nov 21, 2023

There are no product feature updates in this pr

  • Adds some support for querying and using stored scores in webvitals comopnents
  • Reorganizes query hooks to separate directories
  • Adds referrers to webvitals module queries
  • Cleans up some unused code paths, query fields, types

USE_STORED_SCORES controls whether the ui uses calculated vs stored performance scores. USE_STORED_SCORES is hard coded to false for now, until all components are updated to support using stored scores.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 21, 2023
@edwardgou-sentry edwardgou-sentry marked this pull request as ready for review November 21, 2023 20:32
@edwardgou-sentry edwardgou-sentry requested a review from a team November 21, 2023 20:32
@edwardgou-sentry edwardgou-sentry requested a review from a team as a code owner November 21, 2023 20:32
@edwardgou-sentry
Copy link
Contributor Author

Sorry, this pr touches a lot of files. It's mostly just moving/reorganizing and updating imports.


const {data: projectData} = useProjectWebVitalsQuery({transaction});
const {data: projectData} = useProjectRawWebVitalsQuery({});
Copy link
Member

Choose a reason for hiding this comment

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

how come these don't need the transaction filter anymore?

Copy link
Contributor Author

@edwardgou-sentry edwardgou-sentry Nov 27, 2023

Choose a reason for hiding this comment

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

Thanks for the review!
transaction is always undefined in this scenario, so nothing should change here.
This was old branching code from when we had a transaction specific view for the webVitalsDetailPanel when a user clicks on a transaction/page. This went away when we introduced the page overview page.

@edwardgou-sentry edwardgou-sentry merged commit 7d80ea2 into master Nov 27, 2023
42 checks passed
@edwardgou-sentry edwardgou-sentry deleted the egou/feat/webvitals-staored-scores-support branch November 27, 2023 16:03
Copy link

sentry-io bot commented Dec 1, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ Error: Invalid duration supplied to interval function GranularityLadder.getInterval(app/components/ch... View Issue

Did you find this useful? React with a 👍 or 👎

@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2023
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