Skip to content

fix: lower Refresh All Orgs concurrency and improve OPFS worker error… - #1984

Open
paustint wants to merge 1 commit into
mainfrom
fix/refresh-all-orgs-concurrency
Open

fix: lower Refresh All Orgs concurrency and improve OPFS worker error…#1984
paustint wants to merge 1 commit into
mainfrom
fix/refresh-all-orgs-concurrency

Conversation

@paustint

Copy link
Copy Markdown
Contributor

… detail

Yesterday's Refresh All Orgs release put one production org-groups page through 130+ concurrent health checks in a single burst; ~28% failed fast with a 400 that never reached Salesforce. Dropping the fan-out from 4 to 2 gives the org-resolution path more headroom per request.

Also caught while triaging: the Data History OPFS worker's crash handler logged "unknown" whenever ErrorEvent.message came back blank. It now captures filename/line/col and the underlying Error's name/message/stack when the browser provides one, so the next crash is diagnosable instead of opaque.

… detail

Yesterday's Refresh All Orgs release put one production org-groups page through 130+
concurrent health checks in a single burst; ~28% failed fast with a 400 that never
reached Salesforce. Dropping the fan-out from 4 to 2 gives the org-resolution path
more headroom per request.

Also caught while triaging: the Data History OPFS worker's crash handler logged
"unknown" whenever `ErrorEvent.message` came back blank. It now captures
filename/line/col and the underlying Error's name/message/stack when the browser
provides one, so the next crash is diagnosable instead of opaque.
Copilot AI lite review requested due to automatic review settings August 21, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces the “Refresh All Orgs” fan-out to avoid bursty concurrent Salesforce health checks, and improves OPFS Data History worker crash diagnostics by capturing richer error context (filename/line/col and underlying error details) when ErrorEvent.message is blank.

Changes:

  • Lowered Refresh All Orgs concurrency from 4 to 2 to reduce request bursts and associated fast-fail errors.
  • Enhanced OPFS worker onerror logging and error construction to include more actionable crash details.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
libs/shared/ui-data-history/src/lib/file-store/opfs-file-store.ts Improves worker crash logging and error messages by capturing additional error context.
libs/features/org-groups/src/lib/RefreshAllOrgsButton.tsx Reduces health-check concurrency to mitigate request bursts during “Refresh All Orgs”.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +164 to +166
const summary = errorDetails.errorMessage || errorDetails.message || errorDetails.errorName || 'unknown';
const location = errorDetails.filename ? ` (${errorDetails.filename}:${errorDetails.lineno}:${errorDetails.colno})` : '';
const error = new Error(`Data history storage worker error: ${summary}${location}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants