Commit 1b08957
fix(explore): Reset aggregate cursor on filter changes (#120200)
When Explore's shared query-params context applies a new filter, it
already marks both pagination cursors for reset. The spans URL writer
handled the samples cursor but ignored `aggregateCursor`, leaving
aggregate mode on a stale page and potentially showing an empty result
set.
This change writes the aggregate cursor through the same nullable URL
helper, so a query change removes it and returns aggregate results to
page one. It also adds regression coverage for clearing a populated
aggregate cursor while applying a filter.
Closes EXP-1111
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Nicholas Deschenes <nicholas.deschenes@sentry.io>1 parent d4803b0 commit 1b08957
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
407 | 421 | | |
408 | 422 | | |
409 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
0 commit comments