Commit 209d23c
fix(explore): Pass sort param for group-by explore Slack unfurls
When an Explore link with groupBy is unfurled in Slack, the unfurl sets
topEvents=5 but omits the sort parameter. Without it, the timeseries
endpoint returns whichever groups it defaults to rather than the top
groups matching what Explore shows.
Now copies the aggregateSort URL param (Explore's name) as sort (the
API name), and defaults to descending by the charted yAxis when no
explicit sort is present — matching the frontend's behavior.
Fixes DAIN-1490
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8eb4dae commit 209d23c
File tree
2 files changed
+41
-0
lines changed- src/sentry/integrations/slack/unfurl
- tests/sentry/integrations/slack
2 files changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
130 | 134 | | |
131 | 135 | | |
132 | 136 | | |
| |||
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
230 | 240 | | |
231 | 241 | | |
232 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1579 | 1610 | | |
1580 | 1611 | | |
1581 | 1612 | | |
| |||
0 commit comments