Skip to content

Every release row says when it last deployed, whatever the window (0.3.21) - #33

Merged
MainSequenceDev merged 1 commit into
mainfrom
claude/quiet-releases
Nov 22, 2026
Merged

MainSequenceDev merged 1 commit into
mainfrom
claude/quiet-releases

Conversation

@MainSequenceDev

@MainSequenceDev MainSequenceDev commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Superseded. This run-based fix shipped to npm as 0.3.21 but nothing uses it. #34 (0.3.22) replaced the Releases list with the deployment history of resource releases.

Problem. With the Releases list on 1 day, 31 of the 37 Production releases on the local backend read "no runs in the last day" with no repository or branch. deployment-releases took a row's repository, branch and last run only from the window's runs. I checked only the APIs among them: each had an active revision that was ready. Across all of Production, 38 of the 39 releases were live; WorkspacesAPI was not.

Fix. Each row now carries its own history:

  • lastDeploy: the newest successful run. For releases without one in the window, one more deployment-runs?target_uid__in=…&state=succeeded request with no window; up to ten deployed releases it leaves out are read one by one.
  • deployed: the release has an active revision.
  • repositoryName/branchName: from the window, else the last deploy, else one code-repository-branches?uid__in=… request for releases that never ran (skipped if the reader may not read branches).

The extra requests happen only when some rows had no successful run in the window: one batch read of last deploys, up to ten single reads for deployed releases the batch leaves out, and one branch read, so up to 12 more requests. Live on the local backend with 1 day: every Production API row now has its repository, branch and a last deploy matching its active revision's activation (e.g. app → HunchAPI · main, 2026-11-18 14:20).

Tests. tests/deployment-releases.test.cjs 9/9: a 1-day window gives every row its deploy and names; a release the batch leaves out is read on its own; a refused branch read leaves names blank without failing the list. The full suite is CI's.

🤖 Generated with Claude Code

…3.21)

deployment-releases took a release's repository, branch and last run only from its runs
in the window, so with a 1-day window most deployed releases read "no runs" with no
repository: 31 of Production's 37 on the local backend, every one of them deployed.
Releases without a successful run in the window now get their newest successful run
from one more request with no window (up to ten it leaves out are read one by one), and
releases that never ran get their repository and branch names from one
code-repository-branches?uid__in request, which a reader without branch access simply
skips. Each row adds `deployed` (it has an active revision) and `lastDeploy`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MainSequenceDev
MainSequenceDev merged commit 281001d into main Nov 22, 2026
4 checks passed
@MainSequenceDev
MainSequenceDev deleted the claude/quiet-releases branch November 23, 2026 08:41
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