Skip to content

feat(releases): look a release up by its version label - #5

Merged
haksungjang merged 1 commit into
mainfrom
feat/release-lookup-by-label
Aug 4, 2026
Merged

feat(releases): look a release up by its version label#5
haksungjang merged 1 commit into
mainfrom
feat/release-lookup-by-label

Conversation

@haksungjang

@haksungjang haksungjang commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

GET /v1/projects/{id}/releases?release=4.0 — exact match on the trimmed label, applied to the count as well as the page so total describes the filtered set. At most one row comes back, since #4 gives a label one live snapshot. An unknown label is an empty 200, not a 404: that would be indistinguishable from the existence-hide returned for a project you cannot see.

Served by ix_scans_project_release_label from #4; EXPLAIN confirms the planner takes it.

Not here: the detail endpoints still anchor on ?scan_id= only. A permanent per-version URL (/notice?release=4.0) would mean threading a second anchor through nine services, so it is worth deciding separately.

@haksungjang
haksungjang force-pushed the feat/version-label-supersedes-prior branch from 8e301ac to 59e3fe2 Compare August 4, 2026 02:24
@haksungjang
haksungjang force-pushed the feat/release-lookup-by-label branch from 70d372f to 65642b3 Compare August 4, 2026 02:24
Base automatically changed from feat/version-label-supersedes-prior to main August 4, 2026 03:41
GET /v1/projects/{id}/releases takes ?release=4.0 — exact match on the
trimmed label, applied to the count as well as the page. At most one row
comes back, since a label has one live snapshot. An unknown label is an
empty 200, not a 404: that would be indistinguishable from the
existence-hide for a project you cannot see.
@haksungjang
haksungjang force-pushed the feat/release-lookup-by-label branch from 65642b3 to 0d975c5 Compare August 4, 2026 03:44
@haksungjang
haksungjang merged commit e725366 into main Aug 4, 2026
24 checks passed
@haksungjang
haksungjang deleted the feat/release-lookup-by-label branch August 4, 2026 04:02
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