-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Implement alert node query in GTFS GraphQL API #6225
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
Implement alert node query in GTFS GraphQL API #6225
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6225 +/- ##
=============================================
+ Coverage 69.91% 69.94% +0.03%
- Complexity 17736 17741 +5
=============================================
Files 2006 2006
Lines 75526 75526
Branches 7730 7730
=============================================
+ Hits 52804 52827 +23
+ Misses 20036 20008 -28
- Partials 2686 2691 +5 ☔ View full report in Codecov by Sentry. |
|
Please add a test. |
| assertEquals(STOP_ID, filteredAlerts.get(0).getId()); | ||
| } | ||
|
|
||
| @Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do it much simpler: just drop a file like node-alert.graphql here: https://github.com/opentripplanner/OpenTripPlanner/tree/dev-2.x/application/src/test/resources/org/opentripplanner/apis/gtfs/queries
Then run GraphQLIntegrationTest.
These tests also double up as API examples for newcomers.
This reverts commit 48c2bf9.
Summary
Implement refetching of alerts by ID.
Issue
Fixes #6224
Unit tests
Added with stub services
Documentation
None needed
Changelog
N/A
Bumping the serialization version id
N/A