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

Finish refactor of DAG resource name helper #15511

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

jedcunningham
Copy link
Member

This finishes moving prefixed_dag_id into airflow.security.permissions.resource_name_for_dag.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Apr 23, 2021
@@ -63,8 +63,8 @@
DAG_PERMS = {ACTION_CAN_READ, ACTION_CAN_EDIT}


def permission_name_for_dag(dag_id):
"""Returns the permission name for a DAG id."""
def resource_name_for_dag(dag_id):
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the right name for this, pretty sure. Input @jhtimmins?

Copy link
Contributor

Choose a reason for hiding this comment

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

Missed this. Yup!

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Apr 26, 2021
@kaxil kaxil merged commit 0b4c67d into apache:master Apr 26, 2021
@kaxil kaxil deleted the resource_name_for_dag branch April 26, 2021 21:28
kaxil pushed a commit to astronomer/airflow that referenced this pull request Apr 26, 2021
This finishes moving `prefixed_dag_id` into `airflow.security.permissions.resource_name_for_dag`.

(cherry picked from commit 0b4c67d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants