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

[AIRFLOW-3233] Fix deletion of DAGs in the UI #4069

Merged
merged 1 commit into from
Nov 17, 2018

Conversation

aoen
Copy link
Contributor

@aoen aoen commented Oct 19, 2018

Make sure you have checked all steps below.

Jira

  • My PR addresses the following Airflow Jira issues and references them in the PR title.

Description

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:
    UI Fix, tested both RBAC and regular.

Commits

  • My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • When adding new operators/hooks/sensors, the autoclass documentation generation needs to be added.

Code Quality

  • Passes flake8

@codecov-io
Copy link

codecov-io commented Oct 19, 2018

Codecov Report

Merging #4069 into master will decrease coverage by 0.75%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
airflow/operators/docker_operator.py 0% <0%> (-97.65%) ⬇️
airflow/operators/slack_operator.py 0% <0%> (-97.37%) ⬇️
airflow/operators/s3_to_hive_operator.py 0% <0%> (-94.02%) ⬇️
airflow/security/kerberos.py 0% <0%> (-71.43%) ⬇️
airflow/operators/latest_only_operator.py 25% <0%> (-65%) ⬇️
airflow/operators/subdag_operator.py 70.96% <0%> (-19.36%) ⬇️
airflow/operators/python_operator.py 81.98% <0%> (-13.05%) ⬇️
airflow/utils/file.py 76% <0%> (-8%) ⬇️
airflow/operators/hive_operator.py 80.76% <0%> (-5.77%) ⬇️
airflow/executors/dask_executor.py 0% <0%> (-2%) ⬇️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e703d6b...71bb5c2. Read the comment docs.

Copy link
Member

@ashb ashb left a 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 -->
Copy link
Member

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:

Suggested change
<!-- 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 #}

@ashb
Copy link
Member

ashb commented Nov 6, 2018

Should be possible to test this by creating a Dag object in the DB and ensuring the correct delete link appears in the output

@ashb ashb merged commit 3107bcb into apache:master Nov 17, 2018
tmiller-msft pushed a commit to cse-airflow/incubator-airflow that referenced this pull request Nov 27, 2018
XD-DENG added a commit to XD-DENG/airflow that referenced this pull request Dec 2, 2018
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
kaxil pushed a commit that referenced this pull request Dec 2, 2018
Related Commits:
1. [AIRFLOW-2657](PR #3531)
2. [AIRFLOW-3233](PR #4069)

Added for both www/ and www_rbac
kaxil pushed a commit that referenced this pull request Dec 2, 2018
Related Commits:
1. [AIRFLOW-2657](PR #3531)
2. [AIRFLOW-3233](PR #4069)

Added for both www/ and www_rbac
elizabethhalper pushed a commit to cse-airflow/incubator-airflow that referenced this pull request Dec 7, 2018
elizabethhalper pushed a commit to cse-airflow/incubator-airflow that referenced this pull request Dec 7, 2018
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
aliceabe pushed a commit to aliceabe/incubator-airflow that referenced this pull request Jan 3, 2019
aliceabe pushed a commit to aliceabe/incubator-airflow that referenced this pull request Jan 3, 2019
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
kaxil pushed a commit that referenced this pull request Jan 9, 2019
Related Commits:
1. [AIRFLOW-2657](PR #3531)
2. [AIRFLOW-3233](PR #4069)

Added for both www/ and www_rbac
ashb pushed a commit to ashb/airflow that referenced this pull request Jan 10, 2019
ashb pushed a commit to ashb/airflow that referenced this pull request Jan 10, 2019
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Jan 23, 2019
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Jan 23, 2019
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Jul 29, 2019
wmorris75 pushed a commit to modmed/incubator-airflow that referenced this pull request Jul 29, 2019
Related Commits:
1. [AIRFLOW-2657](PR apache#3531)
2. [AIRFLOW-3233](PR apache#4069)

Added for both www/ and www_rbac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants