-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Observed behavior
The error message "Error fetching GTFS entities via GraphQL [...] ERROR relation .stops/routes does not exist" is shown while the /alerts page is loading. This can happen when a feed version gets deleted but for some reason not all tables in that namespace get deleted.
Expected behavior
No error message is shown while loading the /alerts page.
Steps to reproduce the problem
- Open a feed source.
- Possible scenarios
a. Find the lastest feed version with the published status set to "Published".
b. Import a feed version. Then in Mongo, edit the feed source (FeedSourcecollection) by adding apublishedVersionIdfield to the corresponding document, with field value equal to the namespace of the imported feed version. - Possible scenarios
a. Delete the feed version above using the UI (Delete Feed Version).
b. To simulate a partial feed version delete: Using a PostgreSQL client, delete theroutesandstopstables of the namespace indicated by thepublishedVersionId. Optionally, delete in Mongo that feed version from theFeedVersioncollection. - Open/Refresh the
/alertspage. - Observe the error message mentioned above are shown, or, if you picked scenario 3a, a GraphQL error message with "No rows found" in the details.
Any special notes on configuration used
Requires:
- MTC extension with the alerts module and external feed publishing service configured,
- Alerts from the RTD system
- In "MTC Properties" (
ExternalFeedSourcePropertycollection), theAgencyIdattribute and value must be set for the feed source to test. - in
server.yml, changeapplication->public_urltohttp://localhost:4000.
Version of datatools-server and datatools-ui if applicable (exact commit hash or branch name)
mtc-deploy branch.
Metadata
Metadata
Assignees
Labels
No labels