Skip to content

AM-879 AM-881 boat charging: add kw and status to location based on connector information#131

Merged
jjbeekman merged 7 commits into
mainfrom
boat-charging/am-879-add-kw-to-locations
May 26, 2026
Merged

AM-879 AM-881 boat charging: add kw and status to location based on connector information#131
jjbeekman merged 7 commits into
mainfrom
boat-charging/am-879-add-kw-to-locations

Conversation

@fhaver-amsterdam
Copy link
Copy Markdown
Contributor

@fhaver-amsterdam fhaver-amsterdam commented May 21, 2026

This PR updates the bridge boat-charging location endpoints to expose an overall status and a computed max_kw per location by aggregating connector information from charging station data.

Changes:

  • Compute per-location status and max_kw from charging-station connector data and include these fields in both location list and location detail responses.
  • Extend location serializers to include the new max_kw field.
  • Update/add tests for the new aggregation behavior and detail response enrichment.

Affected services

  • bridge

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
    Guest login endpoint doesnt work anymore.
  • Sanity check on test app (check that dev environment is selected)

@fhaver-amsterdam fhaver-amsterdam requested review from a team and Copilot May 21, 2026 13:27
@fhaver-amsterdam fhaver-amsterdam changed the title AM-879 AM881 boat charging: add kw and status to location based on connector information AM-879 AM-881 boat charging: add kw and status to location based on connector information May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 bridge boat-charging location endpoints to expose an overall status and a computed max_kw per location by aggregating connector information from charging station data.

Changes:

  • Compute per-location status and max_kw from charging-station connector data and include these fields in both location list and location detail responses.
  • Extend location serializers to include the new max_kw field.
  • Update/add tests for the new aggregation behavior and detail response enrichment.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
bridge/boat_charging/views/location_view.py Adds connector-based aggregation to derive per-location status and max kW; enriches list and detail responses.
bridge/boat_charging/views/base_view.py Updates location feature construction to include status and new max_kw property.
bridge/boat_charging/tests/views/test_location_view.py Replaces/extends tests to cover the new aggregation logic and detail response fields.
bridge/boat_charging/serializers/location_serializers.py Adds max_kw to the location properties serializer output.

Comment thread bridge/boat_charging/views/location_view.py Outdated
Comment thread bridge/boat_charging/views/location_view.py Outdated
Comment thread bridge/boat_charging/views/location_view.py Outdated
Comment thread bridge/boat_charging/views/base_view.py Outdated
Comment thread bridge/boat_charging/tests/views/test_location_view.py Outdated
Comment thread bridge/boat_charging/tests/views/test_location_view.py Outdated
Comment thread bridge/boat_charging/views/location_view.py Outdated
Comment thread bridge/boat_charging/views/location_view.py Outdated
@jjbeekman jjbeekman merged commit 853325f into main May 26, 2026
26 checks passed
@jjbeekman jjbeekman deleted the boat-charging/am-879-add-kw-to-locations branch May 26, 2026 08:47
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