Skip to content

Single capability request call

Daniel Nemergut requested to merge single_capability_request_call into main

The active requests page was polling the capability service twice every time and again after clicking on a filter or changing the selected capability. This reduces the number of calls to once per poll.

Note: My lack of JS observable/observer knowledge shows here and I couldn't manage to get the trackActiveRequests event to capture an update to sortedActiveRequests$ after my changes. I'll continue to poke at it but I've already wasted a good chunk of time trying to get filters to apply without reloading the page.

Before (2 requests per poll): Screen_Shot_2023-07-21_at_10.18.14_AM

After (1 request per poll): Screen_Shot_2023-07-21_at_10.18.50_AM

Merge request reports