Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Change Request] Increase limit of incidents available upon request #143

Closed
giranm opened this issue Jul 21, 2022 · 1 comment · Fixed by #198
Closed

[Change Request] Increase limit of incidents available upon request #143

giranm opened this issue Jul 21, 2022 · 1 comment · Fixed by #198
Labels
change request Change Request
Milestone

Comments

@giranm
Copy link
Owner

giranm commented Jul 21, 2022

Summary

#132 introduced a change to hardcode a maximum limit of 200 incidents retrieved by the UI.

export const MAX_INCIDENTS_LIMIT = 200;

The intention of this change was to ensure that users don't hit PagerDuty's API rate limit (HTTP 429 errors), which yielded empty data in the incident table.

Upon introduction of enhancement #131, we are also retrieving all alerts for each incident, resulting in a total of 2X + X/100 API calls per X number of incidents - effectively increasing the number of API calls done.

To put this into user perspective, querying 200 incidents takes approximately 40 seconds to populate in the UI, including notes and alert data.

Proposed Changes

There are a couple of options we can address here - ultimately it depends on what the optimal user experience would be:

  • Expose MAX_INCIDENTS_LIMIT as an environment variable
  • Make MAX_INCIDENTS_LIMIT a user configurable setting, which is more desirable for individual users

Challenges

Increasing MAX_INCIDENTS_LIMIT increases the number of API calls needed on the initial fetch; large number of incidents will need further throttling and take much longer to populate in the UI.

@giranm giranm added the change request Change Request label Jul 21, 2022
@giranm giranm added this to the Beta milestone Jul 21, 2022
@giranm giranm moved this to Todo in PagerDuty Live Jul 25, 2022
@giranm giranm moved this from Todo to Triage in PagerDuty Live Jul 27, 2022
@giranm giranm moved this from Triage to In Progress in PagerDuty Live Aug 6, 2022
@giranm giranm moved this from In Progress to Code Review in PagerDuty Live Aug 7, 2022
@giranm giranm linked a pull request Aug 7, 2022 that will close this issue
@giranm giranm moved this from Code Review to Done in PagerDuty Live Aug 7, 2022
@giranm
Copy link
Owner Author

giranm commented Aug 7, 2022

Merged #198 into develop - closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Change Request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant