Skip to content

AM-969 city pass: add pass type to passes response - #233

Merged
fhaver-amsterdam merged 1 commit into
mainfrom
city-pass/am-969-add-category
Aug 17, 2026
Merged

AM-969 city pass: add pass type to passes response#233
fhaver-amsterdam merged 1 commit into
mainfrom
city-pass/am-969-add-category

Conversation

@fhaver-amsterdam

@fhaver-amsterdam fhaver-amsterdam commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

This PR updates the city_pass service “passes” response contract to optionally include a pass type, and adjusts test fixtures to reflect the updated source API payload shape.

Changes:

  • Added optional type field to MijnAmsPassDataSerializer so it is returned (when present) from the passes endpoint.
  • Refactored test mock data into dedicated modules (passes, budget_transactions, aanbieding_transactions) and updated tests accordingly.
  • Updated passes view tests to expect an additional unique budget code (2024_AMSTEG_PC) in persisted budgets.

Affected services

  • city_pass

Definition of done

  • API is backwards compatible (make openapi-diff)
  • Swagger UI up-to-date & tested (make dev)
    - [ ] Dependencies updated (make requirements)
    - [ ] Infrastructure config updated (aapp_azure_infra)
    - [ ] Loadtests for relevant endpoints (aapp_testing_loadtests)

After PR created (and deployed on dev):

  • Manual check on dev (o) e.g. use feature via Swagger or admin panel
  • Sanity check on test app (check that dev environment is selected)

Other notes

GitHub Copilot was used in writing the code

@fhaver-amsterdam
fhaver-amsterdam requested review from a team and a lite review from Copilot August 11, 2026 11:41

Copilot AI left a comment

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.

Pull request overview

This PR updates the city_pass service “passes” response contract to optionally include a pass type, and adjusts test fixtures to reflect the updated source API payload shape.

Changes:

  • Added optional type field to MijnAmsPassDataSerializer so it is returned (when present) from the passes endpoint.
  • Refactored test mock data into dedicated modules (passes, budget_transactions, aanbieding_transactions) and updated tests accordingly.
  • Updated passes view tests to expect an additional unique budget code (2024_AMSTEG_PC) in persisted budgets.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
city_pass/serializers/data_serializers.py Adds optional type field to pass serializer output.
city_pass/tests/views/test_data_views.py Updates tests to use new mock data modules and asserts budgets/type behavior.
city_pass/tests/mock_data/passes.py Updates passes mock payload and adds type to some passes; removes unrelated mock payloads.
city_pass/tests/mock_data/budget_transactions.py Introduces separate mock data module for budget transactions.
city_pass/tests/mock_data/aanbieding_transactions.py Introduces separate mock data module for aanbieding transactions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread city_pass/tests/views/test_data_views.py
@fhaver-amsterdam fhaver-amsterdam changed the title add pass type to passes response AM-969 city pass: add pass type to passes response Aug 11, 2026
@RikSchefferAmsterdam RikSchefferAmsterdam self-assigned this Aug 17, 2026
@fhaver-amsterdam
fhaver-amsterdam merged commit ff45567 into main Aug 17, 2026
35 checks passed
@fhaver-amsterdam
fhaver-amsterdam deleted the city-pass/am-969-add-category branch August 17, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants