Skip to content

Remove hex_api_release:get_staged/2 - #257

Merged
ericmj merged 1 commit into
mainfrom
remove-get-staged
Nov 2, 2026
Merged

ericmj merged 1 commit into
mainfrom
remove-get-staged

Conversation

@ericmj

@ericmj ericmj commented Nov 2, 2026

Copy link
Copy Markdown
Member

hex_api_release:get_staged/2 built a staged release's status path from its id: /staged-releases/:id, or /repos/:repo/staged-releases/:id. hexpm/hexpm#2095 removes the id from staged release URLs, so that path stops existing. Clients poll the url the publish response returns instead, which is what Hex's mix hex.publish --wait now does. The function came in with #255 and hasn't been released. This removes it with its test and fixtures.

rebar3 ct passed 293 tests with 1 skipped (hex_oidc_SUITE:put_audience_no_query_test, which skips itself when the json module is available), rebar3 as test proper passed 5 properties, and rebar3 fmt --check is clean, on daea875.

The staged release responses from Hex.pm carry the status endpoint's URL
in `url`, and clients poll that URL. get_staged/2 built the path from the
staged release id, which ties clients to a URL layout the server owns.
@ericmj
ericmj merged commit 4edcd64 into main Nov 2, 2026
10 checks passed
@ericmj
ericmj deleted the remove-get-staged branch November 2, 2026 16:37
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