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

🐛 Source Jira: fix timezone issue #48838

Merged
merged 5 commits into from
Dec 9, 2024
Merged

Conversation

maxi297
Copy link
Contributor

@maxi297 maxi297 commented Dec 6, 2024

What

Fixes https://github.com/airbytehq/oncall/issues/7008

How

By considering the timezone when creating the str representation of what we send to the API. Indeed, when calling dt.strftime(format), the timezone information is just dropped if not mentioned which leads the interpolation with timestamp like this one to not have the timezone information as well.

I checked quickly and we seem to always be building all the queries using interpolation and not with RequestOptionProvider start_time_option which therefore should be safe to change for the whole connector.

User Impact

Using incremental syncs should lead to less duplication and no data loss

Before code change

As we can see, it creates the same request with epoch 1732877091000 that correspond to 2024-11-29T10:44:51.887 UTC regardless of the timezone in the state

After code change

As we can see, the values are all different now as they consider the timezone when performing the requests.

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 6:55pm

Copy link
Contributor

@yardencarmeli yardencarmeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this with Jira version v3.4.1-dev.18c2e5d364, and it successfully retrieved only the last entry as expected (when creating two new entries it pulled the last updated one + new entries).
Good to go on my end.

Copy link
Contributor

@brianjlai brianjlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@maxi297 maxi297 merged commit 217906f into master Dec 9, 2024
35 checks passed
@maxi297 maxi297 deleted the oncall-7008/fix-timezone-issue branch December 9, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/jira
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants