Skip to content

Commit

Permalink
feat(onboarding): use ProjectOverview endpoint for polling (#86386)
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius authored Mar 6, 2025
1 parent 1f0da1b commit 5b9dfa2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function useRecentCreatedProject({
pollUntilFirstEvent,
}: Props): OnboardingRecentCreatedProject {
const {isPending: isProjectLoading, data: project} = useApiQuery<Project>(
[`/projects/${orgSlug}/${projectSlug}/`],
[`/projects/${orgSlug}/${projectSlug}/overview/`],
{
staleTime: 0,
enabled: !!projectSlug,
Expand Down
6 changes: 6 additions & 0 deletions static/app/views/projectInstall/platform.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ function mockProjectApiResponses(projects: Array<Project | ProjectWithBadPlatfor
body: projects,
});

MockApiClient.addMockResponse({
method: 'GET',
url: '/projects/org-slug/project-slug/overview/',
body: projects,
});

MockApiClient.addMockResponse({
url: '/projects/org-slug/project-slug/keys/',
method: 'GET',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ function mockProjectApiResponses(projects: Array<Project | ProjectWithBadPlatfor
body: projects,
});

MockApiClient.addMockResponse({
method: 'GET',
url: '/projects/org-slug/project-slug/overview/',
body: projects,
});

MockApiClient.addMockResponse({
url: '/projects/org-slug/project-slug/keys/',
method: 'GET',
Expand Down

0 comments on commit 5b9dfa2

Please sign in to comment.