potiuk commented on a change in pull request #13117:
URL: https://github.com/apache/airflow/pull/13117#discussion_r546346852



##########
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:
       Is the list of those modified fields known and fixed ? I guess it should 
be as it comes from the old version of library which is not going to be 
updated. I guess the values in Xcom come from another operator of ours, and 
they contain the values returned by `CloudMemorystoreGetInstanceOperator` - 
result of `MessageToDict` method call?
   
   I guess in this case we could -  potentially make it backwards-compatible by 
modifying the dictionary returned and copying the values with legacy field 
names?  How feasible it is ? Maybe in the new library there is already a fixed 
list of values or even a code that we could use to do it ?

##########
File path: airflow/providers/google/ADDITIONAL_INFO.md
##########
@@ -0,0 +1,62 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ -->
+
+# Migration Guide
+
+# Next

Review comment:
       I think we need to specify version here. And I think this is a very good 
way to make backwards incompatible changes here- by adding version number here 
that indicates what kind of changes we are talking about.




----------------------------------------------------------------
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]


Reply via email to