Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Project Ownership', () => {
beforeEach(() => {
ConfigStore.set('user', user);
MockApiClient.addMockResponse({
url: `/issues/${issueId}/tags/url/`,
url: `/organizations/${org.slug}/issues/${issueId}/tags/url/`,
body: {
key: 'url',
name: 'URL',
Expand Down Expand Up @@ -110,7 +110,7 @@ describe('Project Ownership', () => {

it('still renders if 404 error occurs', async () => {
MockApiClient.addMockResponse({
url: `/issues/${issueId}/tags/url/`,
url: `/organizations/${org.slug}/issues/${issueId}/tags/url/`,
statusCode: 404,
});

Expand All @@ -135,7 +135,7 @@ describe('Project Ownership', () => {

it('does not render if any other error status occurs', async () => {
MockApiClient.addMockResponse({
url: `/issues/${issueId}/tags/url/`,
url: `/organizations/${org.slug}/issues/${issueId}/tags/url/`,
statusCode: 401,
});

Expand Down
5 changes: 4 additions & 1 deletion static/app/views/settings/project/projectOwnership/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ function ProjectOwnershipModal({
isPending: isUrlTagDataPending,
isError: isUrlTagDataError,
error,
} = useApiQuery<TagWithTopValues>([`/issues/${issueId}/tags/url/`], {staleTime: 0});
} = useApiQuery<TagWithTopValues>(
[`/organizations/${organization.slug}/issues/${issueId}/tags/url/`],
{staleTime: 0}
);

const {
data: ownership,
Expand Down
Loading