You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/19 12:42:04 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #15940: Correctly implement autocomplete early return

uranusjr commented on a change in pull request #15940:
URL: https://github.com/apache/airflow/pull/15940#discussion_r635199998



##########
File path: airflow/www/views.py
##########
@@ -4162,7 +4162,7 @@ def class_permission_name(self):
         """Returns appropriate permission name depending on request method name."""
         if request:
             action_name = request.view_args.get("name")
-            _, method_name = request.url_rule.endpoint.split(".")
+            _, method_name = request.url_rule.endpoint.rsplit(".", 1)

Review comment:
       Oops, this is unrelated and should have been submitted separately. A trivial cleanup though so probably OK to have it here.




-- 
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:
users@infra.apache.org