Skip to content

docs: Align price lists OpenAPI and architecture with API#6031

Open
bacciotti wants to merge 2 commits intomainfrom
docs/price-lists-openapi-and-lifecycle
Open

docs: Align price lists OpenAPI and architecture with API#6031
bacciotti wants to merge 2 commits intomainfrom
docs/price-lists-openapi-and-lifecycle

Conversation

@bacciotti
Copy link
Copy Markdown
Contributor

Summary

Aligns OpenAPI (docs/specs/openapi.json) and architecture (docs/architecture/price-lists/api-and-lifecycle.md) with the current Price Lists API: Settings-style filter / order_by, strict list query validation, POST .../duplicate/, and inline assigned_cost_models / assigned_cost_model_count on list/detail responses.

Verification

  • python3 -m json.tool docs/specs/openapi.json — valid JSON.
  • pipenv run tox -e py311 -- cost_models.test.test_price_list_viewOK (with Postgres on localhost:15432).

Changes

Area Update
OpenAPI — GET /price-lists/ Replaced flat name / uuid / enabled / ordering params with PriceListQueryFilter + PriceListQueryOrderBy (deepObject), QueryOffset / QueryLimit; documented top-level param restriction; added 400 response.
OpenAPI — duplicate New POST /price-lists/{price_list_uuid}/duplicate/ (duplicatePriceList).
OpenAPI — schemas PriceListOut: assigned_cost_model_count, assigned_cost_models (items → PriceListAffectedCostModel).
Architecture doc Expanded lifecycle table; list query contract; duplicate action; inline assignment fields; @never_cache on duplicate.

Release notes

  • N/A (documentation only)

- List: document filter/order_by bracket params, currency filter, 400s
- Add POST /price-lists/{uuid}/duplicate/ operation
- PriceListOut: assigned_cost_model_count, assigned_cost_models
- Architecture: Settings-style queries, duplicate action, response fields

Made-with: Cursor
@github-actions github-actions Bot added the smokes-required Label to show that smokes tests should be run against these changes. label Apr 27, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Price List API documentation and OpenAPI specification to include a new duplication endpoint and enhanced filtering and ordering capabilities. The response schema for price lists now includes cost model assignment details. Feedback was provided regarding a potential naming mismatch for the path parameter price_list_uuid compared to the backend's expected lookup field.

Comment thread docs/specs/openapi.json
@bacciotti bacciotti marked this pull request as ready for review April 27, 2026 14:07
@bacciotti bacciotti requested review from a team as code owners April 27, 2026 14:07
@bacciotti bacciotti added ok-to-skip-smokes Changes are not hit by smoke tests (doc updates for example) and removed smokes-required Label to show that smokes tests should be run against these changes. labels Apr 27, 2026
@bacciotti
Copy link
Copy Markdown
Contributor Author

/retest

@myersCody myersCody enabled auto-merge (squash) May 1, 2026 14:33
@github-actions github-actions Bot added smokes-required Label to show that smokes tests should be run against these changes. and removed ok-to-skip-smokes Changes are not hit by smoke tests (doc updates for example) labels May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

smokes-required Label to show that smokes tests should be run against these changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants