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

BugFix: DAG trigger via UI error in RBAC UI #8411

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

kaxil
Copy link
Member

@kaxil kaxil commented Apr 17, 2020

resolves #8247


Make sure to mark the boxes below before creating PR: [x]


In case of fundamental code change, 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 UPDATING.md.
Read the Pull Request Guidelines for more information.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Apr 17, 2020
@kaxil kaxil added this to the Airflow 1.10.11 milestone Apr 17, 2020
@@ -1062,6 +1062,7 @@ def trigger(self, session=None):
conf=conf
)

dag = dagbag.get_dag(dag_id)
Copy link
Member

Choose a reason for hiding this comment

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

Lol what? Do we have no tests of this?

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 only errors if the Webserver does not have access to Dag Files (like was mentioned in the issue when the DAGs dir was not mounted to Webserver).

We might have tests to see when the config is enabled this still works but we might not have tests to check the Webserver doesn't have access to Dag file.

Have kept the PR in draft so that I can add some tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ashb I have added the tests to cover this case.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add these tests to Master too once this PR is merged

@kaxil kaxil removed the area:webserver Webserver related Issues label Apr 19, 2020
@kaxil kaxil changed the title BugFix: DAG trigger via UI error in RBAC UI BugFix: DAG trigger via UI error in RBAC U Apr 19, 2020
@kaxil kaxil changed the title BugFix: DAG trigger via UI error in RBAC U BugFix: DAG trigger via UI error in RBAC UI Apr 19, 2020
@kaxil kaxil added area:serialization area:webserver Webserver related Issues labels Apr 19, 2020
@kaxil kaxil marked this pull request as ready for review April 20, 2020 23:43
@kaxil kaxil merged commit cf43394 into apache:v1-10-test Apr 21, 2020
@kaxil kaxil deleted the v1.10.10-ff branch April 21, 2020 16:43
kaxil added a commit to astronomer/airflow that referenced this pull request May 4, 2020
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:serialization area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants