Skip to content

Commit

Permalink
ref(js): Make projectIssues compatible with react-router 6 (#76448)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Aug 26, 2024
1 parent 2dce516 commit 89efce8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions static/app/views/projectDetail/projectIssues.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ describe('ProjectDetail > ProjectIssues', function () {
expect(router.push).toHaveBeenCalledWith({
pathname: '/organizations/org-slug/issues/',
query: {
limit: 5,
limit: '5',
query: 'error.unhandled:true is:unresolved',
sort: 'freq',
statsPeriod: '14d',
Expand Down Expand Up @@ -158,7 +158,7 @@ describe('ProjectDetail > ProjectIssues', function () {
field: ['issue', 'title', 'count()', 'count_unique(user)', 'project'],
name: 'Frequent Unhandled Issues',
query: 'event.type:error error.unhandled:true',
sort: ['-count'],
sort: '-count',
statsPeriod: '14d',
},
});
Expand Down Expand Up @@ -188,7 +188,7 @@ describe('ProjectDetail > ProjectIssues', function () {
expect(router.push).toHaveBeenCalledWith({
pathname: `/organizations/${organization.slug}/issues/`,
query: {
limit: 5,
limit: '5',
environment: 'staging',
statsPeriod: '7d',
query: 'error.unhandled:true is:unresolved',
Expand Down
4 changes: 2 additions & 2 deletions static/app/views/projectDetail/projectIssues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function ProjectIssues({organization, location, projectId, query, api}: Props) {
query: {
name: t('Frequent Unhandled Issues'),
field: ['issue', 'title', 'count()', 'count_unique(user)', 'project'],
sort: ['-count'],
sort: '-count',
query: discoverQuery,
display: 'top5',
...normalizeDateTimeParams(pick(location.query, [...Object.values(URL_PARAM)])),
Expand All @@ -168,7 +168,7 @@ function ProjectIssues({organization, location, projectId, query, api}: Props) {
: [`${IssuesQuery.ALL}`, query].join(' ').trim();

const queryParams = {
limit: 5,
limit: '5',
...normalizeDateTimeParams(
pick(location.query, [...Object.values(URL_PARAM), 'cursor'])
),
Expand Down

0 comments on commit 89efce8

Please sign in to comment.