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

Make feedId required for realtime updaters #5502

Merged

Conversation

leonardehrenfried
Copy link
Member

Summary

@markstos has correctly pointed out that the feedId is incorrectly documented as optional.

This fixes the config schema and docs.

Issue

Closes #5499.

@leonardehrenfried leonardehrenfried requested a review from a team as a code owner November 13, 2023 09:19
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (37a8367) 66.85% compared to head (ff62fd9) 66.85%.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5502      +/-   ##
=============================================
- Coverage      66.85%   66.85%   -0.01%     
+ Complexity     15650    15649       -1     
=============================================
  Files           1817     1817              
  Lines          70158    70155       -3     
  Branches        7379     7379              
=============================================
- Hits           46902    46899       -3     
  Misses         20798    20798              
  Partials        2458     2458              
Files Coverage Δ
...nfig/updaters/GtfsRealtimeAlertsUpdaterConfig.java 94.44% <100.00%> (-0.80%) ⬇️
...outerconfig/updaters/PollingTripUpdaterConfig.java 95.83% <100.00%> (ø)
...erconfig/updaters/VehicleParkingUpdaterConfig.java 97.91% <100.00%> (ø)
...g/updaters/WebsocketGtfsRealtimeUpdaterConfig.java 88.88% <100.00%> (ø)
...config/updaters/MqttGtfsRealtimeUpdaterConfig.java 0.00% <0.00%> (ø)

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

@leonardehrenfried leonardehrenfried changed the title Make 'feedId' required for realtime updaters Make feedId required for realtime updaters Nov 13, 2023
@markstos
Copy link
Contributor

Thanks @leonardehrenfried !

@leonardehrenfried
Copy link
Member Author

This is, BTW, an example of how the code generates the doc, @markstos.

Copy link
Contributor

@habrahamsson-skanetrafiken habrahamsson-skanetrafiken left a comment

Choose a reason for hiding this comment

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

This looks good to me. I noticed that the SiriETGooglePubsubUpdaterConfig still takes feedId as optional though. Do you want to fix that as well? @leonardehrenfried

@leonardehrenfried
Copy link
Member Author

I'm not sure if it really is required there. Do you know?

@habrahamsson-skanetrafiken
Copy link
Contributor

We're not using it so I'm not sure. From a glance at the code it looks like the updater will crash if it's null because the EntityResolver needs it.
But maybe fixing that is out of the scope of this PR?

@leonardehrenfried
Copy link
Member Author

I think it is unless someone from Entur chimes in.

@habrahamsson-skanetrafiken
Copy link
Contributor

Ok. Approving!

@leonardehrenfried leonardehrenfried merged commit 4daa19d into opentripplanner:dev-2.x Nov 14, 2023
5 checks passed
t2gran pushed a commit that referenced this pull request Nov 14, 2023
@leonardehrenfried leonardehrenfried deleted the required-feed-id branch November 14, 2023 14:52
@t2gran t2gran added this to the 2.5 (next release) milestone Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding GTFS-RT updater without related GTFS/OSM data results in NulllPointer exception
5 participants