Skip to content

fix(platform-insights): Use different param name for table cursor #93407

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

ArthurKnaus
Copy link
Member

Problem

As useEAPSpans creates an EventView internally, it picks up the cursor param from the url and passes it to the requests. Therefore changing the page on the table which uses the cursor param for pagination updates all widgets that use useEAPSpans. On some the underlying logic does not expect that and results in a broken visualization (e.g. web witals widget).

Solution

As it is not clear whether the behavior of useEAPSpans is intentional, we can simply updated the name of the table's cursor param to tableCursor

@ArthurKnaus ArthurKnaus requested a review from a team as a code owner June 12, 2025 08:47
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 12, 2025
@ArthurKnaus ArthurKnaus enabled auto-merge (squash) June 12, 2025 08:48
@ArthurKnaus ArthurKnaus merged commit 94e720f into master Jun 12, 2025
43 checks passed
@ArthurKnaus ArthurKnaus deleted the arthurknaus/tet-629-web-vitals-widget-resets-when-paginating branch June 12, 2025 08:58
vishnupsatish pushed a commit that referenced this pull request Jun 12, 2025
…3407)

### Problem

As `useEAPSpans` creates an `EventView` internally, it picks up the
`cursor` param from the url and passes it to the requests. Therefore
changing the page on the table which uses the `cursor` param for
pagination updates all widgets that use `useEAPSpans`. On some the
underlying logic does not expect that and results in a broken
visualization (e.g. web witals widget).

### Solution

As it is not clear whether the behavior of `useEAPSpans` is intentional,
we can simply updated the name of the table's cursor param to
`tableCursor`

- closes [TET-629: Web Vitals widget resets when
paginating](https://linear.app/getsentry/issue/TET-629/web-vitals-widget-resets-when-paginating)
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
…3407)

### Problem

As `useEAPSpans` creates an `EventView` internally, it picks up the
`cursor` param from the url and passes it to the requests. Therefore
changing the page on the table which uses the `cursor` param for
pagination updates all widgets that use `useEAPSpans`. On some the
underlying logic does not expect that and results in a broken
visualization (e.g. web witals widget).

### Solution

As it is not clear whether the behavior of `useEAPSpans` is intentional,
we can simply updated the name of the table's cursor param to
`tableCursor`

- closes [TET-629: Web Vitals widget resets when
paginating](https://linear.app/getsentry/issue/TET-629/web-vitals-widget-resets-when-paginating)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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