Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Handle pagination in response from pagerduty #1

@sciurus

Description

@sciurus

If our query for acknowledged pagerduty incidents returns more than 100 results, we'll only look at the first 100. This mean statuspage and pagerduty would get out of sync. We should handle this by refetching results with higher offsets until there are no more, then returning them all.

https://v2.developer.pagerduty.com/docs/pagination

https://github.com/mozilla-services/pagerstatus/blob/master/chalicelib/pagerduty.py#L15-L27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions