Skip to content

Conversation

@m1racoli
Copy link
Contributor

@m1racoli m1racoli commented Feb 19, 2024

The field access_token_acquired_at is specific to gcloud-aio's Token class and will be used on subsequent calls of get with an offset-naive datetime insternally. Therefore we cannot use offset-aware instances of datetime here.

related: #37138

@Taragolis


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

The field `access_token_acquired_at` is specific to gcloud-aio's Token
class and will be used on subsequent calls of `get` with an offset-naive
datetime insternally. Therefore we cannot use offset-aware instances of
datetime here.
@m1racoli m1racoli force-pushed the fix-acquire-access-token branch from 9c45881 to 08ab9ec Compare February 19, 2024 10:56
m1racoli and others added 2 commits February 19, 2024 12:21
Co-authored-by: Andrey Anshin <Andrey.Anshin@taragol.is>
Let others know about things to consider when upgrading the major
version of gcloud-aio-auth.
@uranusjr uranusjr merged commit 011cd3d into apache:main Feb 20, 2024
- apache-airflow>=2.6.0
- apache-airflow-providers-common-sql>=1.7.2
- asgiref>=3.5.2
# When upgrading the major version of gcloud-aio-auth we want to make sure to
Copy link
Contributor

Choose a reason for hiding this comment

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

Is something block us from upgrading version now?

Copy link
Contributor Author

@m1racoli m1racoli Feb 20, 2024

Choose a reason for hiding this comment

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

Generally speaking, no. I suppose a bit more care is needed when doing so, as it affects a range of async code of the provider. Also not sure yet how it affects the other gcloud-aio packages.

@m1racoli m1racoli deleted the fix-acquire-access-token branch February 20, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants