Realtime-Port-Authority icon indicating copy to clipboard operation
Realtime-Port-Authority copied to clipboard

Rapidly selecting and deselecting routes with no data floods user with error messages

Open mikeantonacci opened this issue 4 years ago • 1 comments

If you hover over the bus selection and rapidly select and deselect routes that do not currently have tracking data, you can create a backed up stream of error messages that will all eventually come through, flooding the user with a confusing sequential history of their bus selections in the form of error messages.

E.g. At 1:00 AM, select the 6 and the 7. Deselect the 6. Select the 6. Deselect the 7 Select the 7. Deselect both. Select the 7 then the 6.

You'll slowly get all the error messages for all the intermediate states, f No tracking data available for routes: 6 No tracking data available for routes: 7 No tracking data available for routes: 6, 7 No tracking data available for routes: 7 No tracking data available for routes: 6, 7 No tracking data available for routes: 6, No tracking data available for routes: 6, 7 No tracking data available for routes: 7 No tracking data available for routes: 6, 7

The delay is such that there's no correlation between what's currently selected and what error message displays, which can be very confusing.

mikeantonacci avatar May 18 '20 05:05 mikeantonacci

Self-assigning this one, can probably be fixed with some Rx operator to filter out some of these intermediate states.

mikeantonacci avatar May 18 '20 05:05 mikeantonacci