mik-laj commented on a change in pull request #13117:
URL: https://github.com/apache/airflow/pull/13117#discussion_r546444580
##########
File path:
airflow/providers/google/cloud/example_dags/example_cloud_memorystore.py
##########
@@ -161,7 +161,7 @@
set_acl_permission = GCSBucketCreateAclEntryOperator(
task_id="gcs-set-acl-permission",
bucket=BUCKET_NAME,
- entity="user-{{
task_instance.xcom_pull('get-instance')['persistenceIamIdentity']"
+ entity="user-{{
task_instance.xcom_pull('get-instance')['persistence_iam_identity']"
Review comment:
The word list is not provided explicitly, but we may try to guess these
names when comparing types with similar names in the new version of the
library, but this will require creating a large key mapping from one version of
the library to the new library. This key list is also not fixed as new
versions of libraries may contain new keys.
This has its limitation. If we only replace dict keys based on a predefined
list of keys, we can accidentally modify user values as well, because Google
libraries not often, but sometimes also store values from the user as a key.
https://github.com/googleapis/googleapis/blob/eabe7c0fde64b1451df6ea171b2009238b0df07c/google/cloud/datacatalog/v1/tags.proto#L79
https://github.com/googleapis/googleapis/blob/eabe7c0fde64b1451df6ea171b2009238b0df07c/google/cloud/redis/v1/cloud_redis.proto#L276
For this not to happen, we may collect such cases as path, but we will still
have to maintain them.
PS. Google uses the snake_case convention in protobuff, so with this change,
Google tried to standardize all field names.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]