giranm / pd-live-react

An open-source, real-time, unified console to view and manage PagerDuty incidents.
https://giranm.github.io/pd-live-react/
MIT License
10 stars 10 forks source link

[Bug] Responder users fail to retrieve correct incidents under API #175

Open giranm opened 2 years ago

giranm commented 2 years ago

Summary

This incident has been raised to identify and fix behaviours with calls to PagerDuty's API against two user types.

The implication of this bug means that responder users initially fetch the wrong incident dataset filled with duplicates, which are then removed on UI refresh from polling log_entries, furthermore showing another incorrect number of incidents for given query.

Current Behaviour

Global Admin

Responder

Expected Behaviour (Responder)

Suggested Workaround

TESTED: Default to older pd.all("/incidents") method to fetch incidents using a linear pagination method

giranm commented 2 years ago

Working with @martindstone on debugging this issue - it looks like PD Live's call to PD API returns duplicates for responder users.

However, when replicating this using native REST calls with Postman, we are seeing no duplicates in the responses.

giranm commented 2 years ago

On further investigation, this looks to be an environmental issue with PagerDuty itself and not PD Live. We have escalated this with PagerDuty engineering and will await further updates; unfortunately there is no workaround apart from granting users Global Admin base roles which is less than ideal.