Skip to content

Commit 8018619

Browse files
fix: propagate resolved dataset to pagination hint flags
When --metric auto-switches dataset to metricsEnhanced, the pagination hints now reflect the actual dataset so subsequent paginated requests include --dataset metrics.
1 parent fda1fcd commit 8018619

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/commands/explore.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,11 +786,18 @@ export const exploreCommand = buildListCommand("explore", {
786786
const hasMore = !!nextCursor;
787787

788788
const baseTarget = project ? `${org}/${project}` : `${org}/`;
789+
const hintFlags = { ...flags, dataset };
789790
const nav = paginationHint({
790791
hasPrev,
791792
hasMore,
792-
prevHint: appendFlagHints(`sentry explore ${baseTarget} -c prev`, flags),
793-
nextHint: appendFlagHints(`sentry explore ${baseTarget} -c next`, flags),
793+
prevHint: appendFlagHints(
794+
`sentry explore ${baseTarget} -c prev`,
795+
hintFlags
796+
),
797+
nextHint: appendFlagHints(
798+
`sentry explore ${baseTarget} -c next`,
799+
hintFlags
800+
),
794801
});
795802

796803
const hint = buildResultHint(response.data.length, nav);

0 commit comments

Comments
 (0)