Skip to content
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

SIRI-FM vehicle parking updates #5979

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Jul 19, 2024

Summary

Following up on #5946 this adds a vehicle parking updater that consumes SIRI-FM.

It introduces a new model for parking updates: rather than being able to add parking lots through a realtime updater, this only updates the availability.

We can discuss in the dev meetings, if these two update types should be handled in the same updater.

Unit tests

Added.

For the time being, this is a draft as I want to wait until #5946 has been merged.

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 67.25664% with 37 lines in your changes missing coverage. Please review.

Project coverage is 69.74%. Comparing base (669d042) to head (1935ba0).
Report is 18 commits behind head on dev-2.x.

Files Patch % Lines
...planner/updater/configure/UpdaterConfigurator.java 0.00% 9 Missing ⚠️
...er/ext/vehicleparking/sirifm/SiriFmDatasource.java 75.00% 4 Missing and 4 partials ⚠️
...lanner/routing/vehicle_parking/VehicleParking.java 0.00% 4 Missing ⚠️
...vehicle_parking/AvailabilityDatasourceFactory.java 0.00% 4 Missing ⚠️
...hicle_parking/VehicleParkingUpdaterParameters.java 0.00% 3 Missing ⚠️
...vehicleparking/sirifm/SiriFmUpdaterParameters.java 33.33% 2 Missing ⚠️
...vehicleparking/bikeep/BikeepUpdaterParameters.java 0.00% 1 Missing ⚠️
...vehicleparking/bikely/BikelyUpdaterParameters.java 0.00% 1 Missing ⚠️
...hicleparking/hslpark/HslParkUpdaterParameters.java 0.00% 1 Missing ⚠️
...r/ext/vehicleparking/noi/NoiUpdaterParameters.java 0.00% 1 Missing ⚠️
... and 3 more
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5979      +/-   ##
=============================================
+ Coverage      69.73%   69.74%   +0.01%     
- Complexity     17292    17317      +25     
=============================================
  Files           1954     1960       +6     
  Lines          74163    74261      +98     
  Branches        7595     7603       +8     
=============================================
+ Hits           51714    51791      +77     
- Misses         19809    19830      +21     
  Partials        2640     2640              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leonardehrenfried
Copy link
Member Author

cc @rcavaliere @clezag.

@leonardehrenfried leonardehrenfried force-pushed the siri-parking-updates branch 2 times, most recently from 50b9f10 to cc7d540 Compare July 19, 2024 13:19
@leonardehrenfried leonardehrenfried marked this pull request as ready for review July 25, 2024 12:36
@leonardehrenfried leonardehrenfried requested a review from a team as a code owner July 25, 2024 12:36
@optionsome optionsome requested a review from vpaturet July 30, 2024 09:13
doc-templates/VehicleParking.md Outdated Show resolved Hide resolved
.ofNullable(siri.getServiceDelivery())
.flatMap(sd -> sd.getFacilityMonitoringDeliveries().stream())
.flatMap(d -> d.getFacilityConditions().stream())
.filter(this::conformsToItalianProfile)
Copy link
Member

Choose a reason for hiding this comment

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

This check feels a bit ugly but I guess it's well-documented that this updater follows the italian profile and we can refactor the profile to be configurable when there is need for it.

optionsome
optionsome previously approved these changes Aug 6, 2024
@leonardehrenfried leonardehrenfried merged commit eeea1ce into opentripplanner:dev-2.x Aug 9, 2024
5 checks passed
t2gran pushed a commit that referenced this pull request Aug 9, 2024
@leonardehrenfried leonardehrenfried deleted the siri-parking-updates branch August 9, 2024 10:09
@t2gran t2gran added this to the 2.6 milestone Sep 18, 2024
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.

4 participants