Add servicelinker enrichment step to experimental import pipeline#775
Merged
Add servicelinker enrichment step to experimental import pipeline#775
Conversation
Insert servicelinker between Antu pre-validation and Ashur filtering. On success, the enriched NeTEx file replaces the original in the internal bucket before Ashur proceeds. On failure, the pipeline continues with the original file (graceful degradation). Enabled in dev only for now.
Store the enriched file at the servicelinker exchange path in the internal bucket instead of overwriting the original. This ensures the nightly job always re-enriches from the clean operator-provided data and picks up any changes in stop coordinates or provider config.
Read generateMissingServiceLinksForModes from ChouetteInfo and serialise it as a comma-separated ServiceLinkModes PubSub attribute before triggering servicelinker. Empty set signals no generation; null omits the header so servicelinker falls back to generating for all modes (backward compat).
…ink modes When generateMissingServiceLinksForModes is an explicitly empty set, bypass the servicelinker pubsub round-trip and route directly to ashur. Avoids unnecessary GCS copies and network calls for providers that should never have service links generated.
erlendev
requested changes
Feb 23, 2026
src/main/java/no/rutebanken/marduk/routes/experimental/ExperimentalImportHelpers.java
Outdated
Show resolved
Hide resolved
...java/no/rutebanken/marduk/routes/experimental/ServicelinkerEnrichmentStatusRouteBuilder.java
Outdated
Show resolved
Hide resolved
...java/no/rutebanken/marduk/routes/experimental/ServicelinkerEnrichmentStatusRouteBuilder.java
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Insert servicelinker between Antu pre-validation and Ashur filtering. On success, the enriched NeTEx file replaces the original in the internal bucket before Ashur proceeds. On failure, the pipeline continues with the original file (graceful degradation). Enabled in dev only for now.