Skip to content

refactor(app): share error, sleep and status helpers - #1423

Closed
scttbnsn wants to merge 1 commit into
dev/v1.8from
refactor/v1.8-shared-error-sleep-helpers
Closed

scttbnsn wants to merge 1 commit into
dev/v1.8from
refactor/v1.8-shared-error-sleep-helpers

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

Collapses the copy-pasted error, sleep and status helpers in app/ onto util/error and util/sleep. getErrorMessage copies and the inline instanceof Error ternaries now use the shared one, four status-from-error helpers become getErrorStatusCode, the hand-rolled sleeps use util/sleep (abort-aware when given a signal), and Ecr and Acr use the inherited getRegistryHostname and authenticateBasic. Message-property-only extractors stay as a named getErrorMessageProperty, and scan.ts keeps its own stringifying variant. Edge cases change slightly: message-less objects log 'unknown error' instead of '[object Object]', and ECR host matching is now case-insensitive.

Held for 1.8.1: changes the image, don't merge before the v1.8 GA cut.

Route the redeclared and inlined getErrorMessage copies through util/error,
add shared getErrorStatusCode and getErrorMessageProperty helpers, give
util/sleep an optional abort signal and drop the hand-rolled sleeps, and
let Ecr and Acr use the inherited getRegistryHostname and authenticateBasic.
@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 19, 2026 11:42pm UTC
drydockdemo-website Ready Ready Preview Oct 19, 2026 11:42pm UTC

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

scttbnsn added a commit that referenced this pull request Oct 20, 2026
* refactor(app): share error, sleep and status helpers (#1423)

* refactor(component): share one secret-mask helper (#1414)

* feat(api): name the caller behind removed-API hits (#1402)

* refactor(ui): share the search-from-query logic (#1418)

* refactor(ui): seed the operations store from the container list (#1428)

* build(docker): use Alpine's patched zlib and drop the custom build (#1417)

* chore(license): relicense from AGPL-3.0 to MIT (#1410)

* docs(changelog): one heading per section in Unreleased
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Landed in #1434 as part of folding the reviewed 1.8 work into 1.8.0.

@scttbnsn scttbnsn closed this Oct 20, 2026
@scttbnsn
scttbnsn deleted the refactor/v1.8-shared-error-sleep-helpers branch October 20, 2026 14:21

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 96c0c7ce Deployed Oct 19, 2026 by vercel[bot]
Preview – drydock-website — 96c0c7ce Deployed Oct 19, 2026 by vercel[bot]
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.

1 participant