giranm/pd-live-react

[Task] Replace pdParallelFetch with custom batched Axios calls

Closed this issue · 1 comments

Summary

As part of investigating #175, we observed that pdParallelFetch is requesting far too many incidents outside the prescribed amount. This ticket is raised to refactor getIncidents() such that we create an array of Axios requests which can be batched and called in parallel, while respecting the max incidents limit.

Impacted Code

const fetchedIncidents = yield pdParallelFetch('incidents', params);

Merged #198 into develop - closing.