Repository navigation
feat(products): add is_current filter to list products - #16156
strandhvilliam wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds an optional is_current query filter to the public GET /v1/products/ (2027-01) endpoint, letting clients list previous product versions while keeping the default current-only behavior. This changes a public API contract, so human review is required.
View guided diff | Turn on auto-fix | Re-trigger cubic
be8772f to
dea726a
Compare
|
9df5c5f to
97fc6a4
Compare
Previous product versions were only reachable by id. The filter still defaults to current versions, and false returns only previous ones.
97fc6a4 to
bc6b6a0
Compare
Adds an
is_currentfilter toGET /v1/products/(2027-01 only), so previous product versions can be listed.I guess it technically would be cleaner if
is_currentis omitted ment = all products would be returned, no matter if current or not. But don't want to break existing logic and you probably expect the current ones to be returned anyway, even if it is an implicit query filterSo with this PR instead it would mean:
id)true: current versions onlyfalse: previous versions only