MobilityData / gtfs-realtime-validator

Java-based tool that validates General Transit Feed Specification (GTFS)-realtime feeds
Other
41 stars 10 forks source link

Enable multiple users to see same feed history #78

Open isabelle-dr opened 2 years ago

isabelle-dr commented 2 years ago

Issue by mpcrossley Jun 18, 2020 Originally opened as https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/383


Summary:

I would like to have one instance that multiple users can load up to see all history and logs.

Steps to reproduce:

I start the docker image, point settings to static GTFS and RT feeds, and the http://localhost:8080/monitoring.html link shows validation / tests just fine. total iterations is 16.

I open a new incognito window, go to the same URL, and I see the "Running Time" as 0h 0m 0s, and no results.

Expected behavior:

Ideally, anyone visiting the site should be able to see the ongoing running validation without having to load their own validation each time they go to the site. In effect, I want to be able to have a persistent instance that multiple people can just go in and see the current iteration and the history.

Observed behavior:

I open a new incognito window, go to the same URL, and I see the "Running Time" as 0h 0m 0s, and no results.

Platform:

Docker, chrome.

isabelle-dr commented 2 years ago

Comment by barbeau Jul 20, 2020


@mpcrossley We made the decision when implementing the web UI for this project that even though there is a single monitoring thread internally for each feed (i.e., we don't archive the same GTFS-RT endpoint more than once), each user should have their own view of that feed. This means currently the view of the feed starts at "0h 0m 0s" for each user even if monitoring the same feed.

I could certainly see other use cases where you want multiple users to see the same monitoring and error history. This should be possible without too many changes to the project, and I'd certainly love to see an option exist for this project where you could configure this - possibly a UI option that would allow users to click to see the history before they started monitoring it.

We're not actively working on the web UI of this project now, but contributions are certainly accepted if you or someone else would like to work on this.