Skip to content

Commit cfca151

Browse files
authored
fix(explorer): add sort to issues search urls (#102838)
Forgot to put the sort param in the url for issues search tool
1 parent 66bf552 commit cfca151

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

static/app/views/seerExplorer/utils.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export function buildToolLinkUrl(
200200
): LocationDescriptor | null {
201201
switch (toolLink.kind) {
202202
case 'telemetry_live_search': {
203-
const {dataset, query, stats_period, project_slug} = toolLink.params;
203+
const {dataset, query, stats_period, project_slug, sort} = toolLink.params;
204204

205205
if (dataset === 'issues') {
206206
// Build URL for issues search
@@ -220,14 +220,18 @@ export function buildToolLinkUrl(
220220
queryParams.statsPeriod = stats_period;
221221
}
222222

223+
if (sort) {
224+
queryParams.sort = sort;
225+
}
226+
223227
return {
224228
pathname: `/organizations/${orgSlug}/issues/`,
225229
query: queryParams,
226230
};
227231
}
228232

229233
// Default to spans (traces) search
230-
const {y_axes, group_by, sort, mode} = toolLink.params;
234+
const {y_axes, group_by, mode} = toolLink.params;
231235

232236
const queryParams: Record<string, any> = {
233237
query: query || '',

0 commit comments

Comments
 (0)