Skip to content

fix: subscriptions list moved to POST /subscriptions/filter - #116

Open
olavgg wants to merge 1 commit into
mainfrom
fix/subscriptions-filter-endpoint
Open

fix: subscriptions list moved to POST /subscriptions/filter#116
olavgg wants to merge 1 commit into
mainfrom
fix/subscriptions-filter-endpoint

Conversation

@olavgg

@olavgg olavgg commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The api put subscriptions on the same filter contract as every other collection (datahub-platform d190ffe4, merged 8 September). POST /subscriptions/list is gone rather than deprecated, so subscriptions.list() 404s against current master:

{"status":404,"error":"Not Found","path":"/subscriptions/list"}

Only the path moved. SubscriptionFilterForm still serializes to filter, limit and sort, which the endpoint reads exactly as /list did, and the type is a strict field-subset of the SubscriptionRetriever it now accepts — the api grew id, externalId, name, createdTime and lastUpdatedTime criteria plus a cursor this form does not send yet.

The name stays list where the Java client spells the same call filter. Making the three agree is a rename, and the GET /subscriptions?limit= listing the api gained alongside is an addition; both are worth doing and neither belongs in a repair that should stay revertable on its own.

Claude-Session: https://claude.ai/code/session_012CrLKgoRmcBYFJ6ukYzf2t

The api put subscriptions on the same filter contract as every other collection
(datahub-platform d190ffe4, merged 8 September). `POST /subscriptions/list` is
gone rather than deprecated, so `subscriptions.list()` 404s against current
master:

    {"status":404,"error":"Not Found","path":"/subscriptions/list"}

Only the path moved. `SubscriptionFilterForm` still serializes to `filter`,
`limit` and `sort`, which the endpoint reads exactly as `/list` did, and the type
is a strict field-subset of the `SubscriptionRetriever` it now accepts — the api
grew `id`, `externalId`, `name`, `createdTime` and `lastUpdatedTime` criteria plus
a `cursor` this form does not send yet.

The name stays `list` where the Java client spells the same call `filter`. Making
the three agree is a rename, and the `GET /subscriptions?limit=` listing the api
gained alongside is an addition; both are worth doing and neither belongs in a
repair that should stay revertable on its own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CrLKgoRmcBYFJ6ukYzf2t
Signed-off-by: samuel <samuel@intellistream.ai>
@olavgg
olavgg requested a review from JosteinGj September 9, 2026 11:55
Comment thread src/subscriptions/mod.rs
/// the three is worth doing on its own, together with the `GET /subscriptions?limit=` listing
/// the api gained at the same time and no client wraps yet — both are renames and additions
/// rather than repairs, and this change is meant to be revertable on its own.
pub async fn list(

@JosteinGj JosteinGj Sep 9, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either this is list or its filter. this line needs to change as well, we dont want a method list() that calls filter

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.

3 participants