Skip to content

fix: improve bulk record update failure states#1850

Merged
paustint merged 1 commit into
mainfrom
fix/improve-bulk-update-failure-states
Jul 16, 2026
Merged

fix: improve bulk record update failure states#1850
paustint merged 1 commit into
mainfrom
fix/improve-bulk-update-failure-states

Conversation

@paustint

@paustint paustint commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Ensure queries are not too large

log the error message and track additional context for ease of troubleshooting

ensure user can retry and is not blocked if Salesforce returns an error

Copilot AI review requested due to automatic review settings July 8, 2026 16:30

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 improves bulk record update reliability by preventing oversized Salesforce re-fetch queries, improving client-side error recovery (so users can retry preview), and upgrading error telemetry/logging for troubleshooting.

Changes:

  • Chunk WHERE Id IN (...) re-fetch queries by resulting SOQL length (vs fixed Id count) to avoid Salesforce query-URL length failures.
  • Treat preview-load failures as recoverable (retryable) and attach more context to error tracking.
  • Increase server-side error log visibility for 5xx responses.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
libs/shared/ui-core/src/mass-update-records/mass-update-records.utils.tsx Adds query-length-bounded chunking for Id IN (...) queries used during record re-fetch.
libs/shared/ui-core/src/mass-update-records/tests/mass-update-records.utils.spec.ts Updates test to assert each generated query stays under the length limit.
libs/features/query/src/QueryResults/BulkUpdateFromQuery/BulkUpdateFromQueryModal.tsx Makes preview failures recoverable (retryable) and logs richer context via tracker.
apps/api/src/app/utils/response.handlers.ts Logs 5xx user-facing errors at warn level instead of debug.

@paustint
paustint requested review from Copilot July 9, 2026 13:27
@paustint
paustint force-pushed the fix/improve-bulk-update-failure-states branch from e21272f to 941e1e8 Compare July 9, 2026 13:27

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@paustint
paustint force-pushed the fix/improve-bulk-update-failure-states branch from 941e1e8 to b5a1ba4 Compare July 14, 2026 21:09
@paustint
paustint requested review from Copilot and removed request for Copilot July 16, 2026 01:02

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

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

Comment thread libs/shared/utils/src/lib/utils.ts
Copilot AI review requested due to automatic review settings July 16, 2026 01:51
@paustint
paustint force-pushed the fix/improve-bulk-update-failure-states branch from b5a1ba4 to 2f01f3e Compare July 16, 2026 01:51

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

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

Copilot AI review requested due to automatic review settings July 16, 2026 02:04
@paustint
paustint force-pushed the fix/improve-bulk-update-failure-states branch from 2f01f3e to a30239d Compare July 16, 2026 02:04

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Ensure queries are not too large

log the error message and track additional context for ease of troubleshooting

ensure user can retry and is not blocked if Salesforce returns an error
Copilot AI review requested due to automatic review settings July 16, 2026 13:30
@paustint
paustint force-pushed the fix/improve-bulk-update-failure-states branch from a30239d to c211ec0 Compare July 16, 2026 13:30

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@paustint
paustint merged commit ce50001 into main Jul 16, 2026
9 checks passed
@paustint
paustint deleted the fix/improve-bulk-update-failure-states branch July 16, 2026 13:50
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