Skip to content

Conversation

@miklcct
Copy link
Contributor

@miklcct miklcct commented Nov 4, 2024

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

@miklcct miklcct requested a review from a team as a code owner November 4, 2024 17:15
@codecov
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.94%. Comparing base (ee53e50) to head (9871533).
Report is 8 commits behind head on dev-2.x.

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.
📢 Have feedback on the report? Share it here.

@leonardehrenfried
Copy link
Member

Please add a test.

@leonardehrenfried leonardehrenfried changed the title implement alert node query Implement alert node query in GTFS GraphQL API Nov 5, 2024
vesameskanen
vesameskanen previously approved these changes Nov 6, 2024
assertEquals(STOP_ID, filteredAlerts.get(0).getId());
}

@Test
Copy link
Member

@leonardehrenfried leonardehrenfried Nov 6, 2024

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.

@leonardehrenfried leonardehrenfried merged commit 12f5771 into opentripplanner:dev-2.x Nov 6, 2024
5 checks passed
t2gran pushed a commit that referenced this pull request Nov 6, 2024
@miklcct miklcct deleted the alert-relay branch November 26, 2024 16:16
@t2gran t2gran added this to the 2.7 (next release) milestone Jan 29, 2025
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.

Cannot refetch alert using Relay id

4 participants