Repository navigation
fix(Onboarding): Stop refreshing the organisation store without an organisation - #9232
talissoncosta wants to merge 2 commits into
Conversation
…ganisation Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…placed organisation loads Co-Authored-By: Claude Opus 5.5 <[email protected]>
Docker builds report
|
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Fixes an unhandled onboarding error by guarding organisation-store refreshes until an organisation is loaded, adding failure handling, and refreshing with the newly set organisation id. Bounded bug fix with tests; no contract or rollout changes.
Turn on auto-fix | Re-trigger cubic
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #24113 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #24113 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #24113 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #24113 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression31 screenshots compared. See report for details. |
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Contributes to ENG-1258
Every load of the onboarding page throws an unhandled error. After setup, onboarding refreshes the organisation store, but nothing has loaded an organisation on that page yet. The store falls back to its default id
'account'and requests/projects/?organisation=account, which returns 400. Those requests sit in aPromise.allwith nocatch, so the failure goes unhandled. The dev server shows it as[object Response].AppActions.getOrganisationnow takesforceso the new project shows.Other callers of
refreshOrganisation()(EnvironmentAside,project-store,useUpdateProjectWithToast) also benefit from the guard.Easier to review with whitespace hidden (
?w=1): adding thecatchre-indented thethenblock.How did you test this code?
/getting-startedmade an unhandled rejection fromGET /projects/?organisation=account(400).accountrequest, the organisation refresh uses the real id, and there are no unhandled rejections./organisation/<id>/projectsstill lists its projects, with no rejections.