From f30c5bf3eb511ac47cbc578d28b6201eae25ec10 Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Wed, 5 Mar 2025 15:41:24 +0100 Subject: [PATCH 1/2] feat(onboarding): use ProjectOverview endpoint for polling --- static/app/components/onboarding/useRecentCreatedProject.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/app/components/onboarding/useRecentCreatedProject.tsx b/static/app/components/onboarding/useRecentCreatedProject.tsx index 1e7a8778d343fa..e8a3710d620f12 100644 --- a/static/app/components/onboarding/useRecentCreatedProject.tsx +++ b/static/app/components/onboarding/useRecentCreatedProject.tsx @@ -34,7 +34,7 @@ export function useRecentCreatedProject({ pollUntilFirstEvent, }: Props): OnboardingRecentCreatedProject { const {isPending: isProjectLoading, data: project} = useApiQuery( - [`/projects/${orgSlug}/${projectSlug}/`], + [`/projects/${orgSlug}/${projectSlug}/overview/`], { staleTime: 0, enabled: !!projectSlug, From 4a684da642041806980b5310cc7cc370fbf9df06 Mon Sep 17 00:00:00 2001 From: Fabian Schindler Date: Wed, 5 Mar 2025 18:00:42 +0100 Subject: [PATCH 2/2] test(onboarding): fix testing to mock overview responses --- static/app/views/projectInstall/platform.spec.tsx | 6 ++++++ .../app/views/projectInstall/platformOrIntegration.spec.tsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/static/app/views/projectInstall/platform.spec.tsx b/static/app/views/projectInstall/platform.spec.tsx index cb971c00c79243..5b2c51bb9a3f29 100644 --- a/static/app/views/projectInstall/platform.spec.tsx +++ b/static/app/views/projectInstall/platform.spec.tsx @@ -38,6 +38,12 @@ function mockProjectApiResponses(projects: Array