giranm/pd-live-react

[Change Request] Implement auto-refresh period

giranm opened this issue · 1 comments

Summary

On some rare occasions, it appears that PD Live does not show the latest incident data in the UI.
While we have made every precaution to ensure scalability/usability, there are edge cases of hanging browser sessions, API rate limit, dropped API calls, etc, which fail to show the latest data in the UI.

Proposed Change

Implement a configurable period to auto-refresh data in PD Live (i.e. incidents, notes, and alerts) by augmenting:

  • src/redux/settings
  • src/redux/incidents/sagas.js
  • src/components/SettingsModal/SettingsModalComponent.js

For example, if a 5 minute refresh period was configured, then PD Live will re-attempt to retrieve incidents, notes, and alerts in the background and then patch the existing dataset.

Merged #206 - closing.