Skip to content

Commit

Permalink
Correctly parse updated_at timestamps from OpsGenie
Browse files Browse the repository at this point in the history
when paginating alerts using cursor-based pagination.

The OpsGenie API will truncate the `updated_at` timestamp of alerts where the timestamp falls exactly on the second.

This change extends the list of accepted cursor-based timestamp formats to include a format without fractions of seconds to correctly handle the response in this circumstance.

See more details:
airbytehq#35020
  • Loading branch information
dipth committed Feb 8, 2024
1 parent 2a323cc commit 0f852ae
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ definitions:
cursor_field: updatedAt
cursor_datetime_formats:
- "%Y-%m-%dT%H:%M:%S.%fZ"
- "%Y-%m-%dT%H:%M:%SZ"
datetime_format: "%s"
start_datetime:
datetime: "{{ config['start_date'] }}"
Expand Down

0 comments on commit 0f852ae

Please sign in to comment.