Repository navigation
Every release row says when it last deployed, whatever the window (0.3.21) - #33
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-releasestook 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 moredeployment-runs?target_uid__in=…&state=succeededrequest 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 onecode-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.cjs9/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