-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6216 from HSLdevcom/deprecate-alert-translations
Deprecate old alert translations in the GTFS API and add language param to a few alert fields
- Loading branch information
Showing
5 changed files
with
120 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
82 changes: 30 additions & 52 deletions
82
application/src/test/resources/org/opentripplanner/apis/gtfs/expectations/alerts.json
This file contains 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
19 changes: 6 additions & 13 deletions
19
application/src/test/resources/org/opentripplanner/apis/gtfs/queries/alerts.graphql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
{ | ||
alerts { | ||
id | ||
alertHeaderText | ||
alertDescriptionText | ||
alertUrl | ||
# these translations are a bit questionable, the above fields are already translated into the | ||
# language selected in the request | ||
alertDescriptionTextTranslations { | ||
language | ||
text | ||
} | ||
alertHeaderTextTranslations { | ||
text | ||
language | ||
} | ||
headerDefault: alertHeaderText | ||
headerDe: alertHeaderText(language: "de") | ||
descriptionDefault: alertDescriptionText | ||
descriptionDe: alertDescriptionText(language: "de") | ||
urlDefault: alertUrl | ||
urlDe: alertUrl(language: "de") | ||
} | ||
} |