Skip to content

Add occupiedSince property to ElectricityStationOccupancyResponse and remove attendees from ElectricityStationsOccupancyResponse #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 25, 2025

Conversation

johanvergeer
Copy link
Collaborator

@johanvergeer johanvergeer commented Mar 14, 2025

  • The occupiedSince property was added to the example, but not to the properties in the specification. This is now rectified.
  • The attendees property is now removed from the ElectricityStationsOccupancyResponse instead of mentioning it in the occupancy description.

The `occupiedSince` property was added to the example,
but not to the properties in the specification.
This is now rectified.

Signed-off-by: Johan Vergeer <johan.vergeer@alliander.com>
@johanvergeer johanvergeer marked this pull request as draft March 14, 2025 09:29
…chema

The `attendees` are not returned by the `occupancy` endpoint, which was only mentioned in the endpoint description.
By changing the actual schema it is more clear and
the schema can be used by generators.

Signed-off-by: Johan Vergeer <johan.vergeer@alliander.com>
@johanvergeer johanvergeer changed the title fix: add occupiedSince property to ElectricityStationOccupancyResponse Add occupiedSince property to ElectricityStationOccupancyResponse and remove attendees from ElectricityStationsOccupancyResponse Mar 14, 2025
@johanvergeer johanvergeer marked this pull request as ready for review March 14, 2025 09:46
@brense
Copy link
Contributor

brense commented Mar 20, 2025

I dont think we want to remove the attendees from the ElectricityStationsOccupancyResponse?

@johanvergeer
Copy link
Collaborator Author

@brense The attendees are not sent when all stations are sent as far as I know. Or has that been changed recently?
The current spec led to some confusion with @danny12321

@brense
Copy link
Contributor

brense commented Mar 20, 2025

As far as I know the architecture board agreed with having the same type of response for a single station or the list of stations. I also spoke with Danny this morning and that is their preferred option as well. Otherwise they have to perform n+1 requests when trying to do a full sync, where n is the number of stations they've provided to LSIS.

@johanvergeer
Copy link
Collaborator Author

In that case I will revert the change.

Does that also mean the attendees will be sent in that response. When that is the case I will remove the Note that attendees are only available for individual stations. comment from the spec.

Signed-off-by: Johan Vergeer <johan.vergeer@alliander.com>
@johanvergeer
Copy link
Collaborator Author

@brense I made the changes we discussed. Can you have another look?

@johanvergeer johanvergeer merged commit 530700d into main Mar 25, 2025
1 of 2 checks passed
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.

2 participants