Skip to content

feat: add GraphQL filter for vehicles at non-virtual stations#850

Closed
testower wants to merge 1 commit intomasterfrom
feature/filter-vehicles-at-non-virtual-stations-in-api
Closed

feat: add GraphQL filter for vehicles at non-virtual stations#850
testower wants to merge 1 commit intomasterfrom
feature/filter-vehicles-at-non-virtual-stations-in-api

Conversation

@testower
Copy link
Copy Markdown
Collaborator

When the ingestion property include-vehicles-assigned-to-non-virtual-stations is enabled, vehicles at non-virtual stations are no longer filtered during ingestion. This adds a corresponding opt-in filter to the GraphQL API so clients can still exclude those vehicles by default.

The new includeVehiclesAtNonVirtualStations argument is available on both the vehicles query and subscription. Its default value is configurable via org.entur.lamassu.graphql.default-include-vehicles-at-non-virtual-stations (defaults to false).

When the ingestion property include-vehicles-assigned-to-non-virtual-stations
is enabled, vehicles at non-virtual stations are no longer filtered during
ingestion. This adds a corresponding opt-in filter to the GraphQL API so
clients can still exclude those vehicles by default.

The new includeVehiclesAtNonVirtualStations argument is available on both
the vehicles query and subscription. Its default value is configurable via
org.entur.lamassu.graphql.default-include-vehicles-at-non-virtual-stations
(defaults to false).
@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

❌ Patch coverage is 63.46154% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.06%. Comparing base (73d3300) to head (df9fef4).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...ql/subscription/VehicleSubscriptionController.java 25.00% 7 Missing and 2 partials ⚠️
...aphql/subscription/filter/VehicleUpdateFilter.java 69.23% 2 Missing and 2 partials ⚠️
...amassu/service/SpatialIndexIdGeneratorService.java 66.66% 1 Missing and 2 partials ⚠️
.../lamassu/graphql/query/VehicleQueryController.java 60.00% 1 Missing and 1 partial ⚠️
...org/entur/lamassu/cache/VehicleSpatialIndexId.java 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #850      +/-   ##
============================================
- Coverage     80.19%   80.06%   -0.14%     
- Complexity     1521     1530       +9     
============================================
  Files           204      204              
  Lines          5702     5745      +43     
  Branches        371      384      +13     
============================================
+ Hits           4573     4600      +27     
- Misses          903      912       +9     
- Partials        226      233       +7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@testower testower closed this Apr 8, 2026
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.

1 participant