-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
[AIRFLOW-3233] Fix deletion of DAGs in the UI #4069
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4069 +/- ##
==========================================
- Coverage 76.67% 75.91% -0.76%
==========================================
Files 199 199
Lines 16186 15961 -225
==========================================
- Hits 12410 12117 -293
- Misses 3776 3844 +68
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add unit tests for this?
What is the difference in value of dag_id
vs dag.dag_id
? Which view was failing?
@@ -191,11 +191,11 @@ <h2>DAGs</h2> | |||
</a> | |||
|
|||
<!-- Delete --> | |||
<a href="{{ url_for('airflow.delete', dag_id=dag.dag_id) }}" | |||
onclick="return confirmDeleteDag('{{ dag.safe_dag_id }}')"> | |||
<!-- Use dag_id instead of dag.dag_id, because the DAG might not exist in the webserver's DagBag --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: this includes the comment in thee HTML which we don't need. If you think the comment is useful then:
<!-- Use dag_id instead of dag.dag_id, because the DAG might not exist in the webserver's DagBag --> | |
{# Use dag_id instead of dag.dag_id, because the DAG might not exist in the webserver's DagBag #} |
Should be possible to test this by creating a Dag object in the DB and ensuring the correct delete link appears in the output |
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR #3531) 2. [AIRFLOW-3233](PR #4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR #3531) 2. [AIRFLOW-3233](PR #4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR #3531) 2. [AIRFLOW-3233](PR #4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Related Commits: 1. [AIRFLOW-2657](PR apache#3531) 2. [AIRFLOW-3233](PR apache#4069) Added for both www/ and www_rbac
Make sure you have checked all steps below.
Jira
Description
Currently deleting DAGs that exist on the scheduler but not the webserver is not possible because the DAG id in the deletion URL comes from the webserver DAG object.
e.g. http://localhost:8080/delete?dag_id= instead of http://localhost:8080/delete?dag_id=example_kubernetes_executor
Tests
UI Fix, tested both RBAC and regular.
Commits
Documentation
Code Quality
flake8