Skip to content

Comments

[AIRFLOW-6360] 'Recent tasks' stats only show non-completed dagruns o…#6944

Closed
tooptoop4 wants to merge 3 commits intoapache:masterfrom
tooptoop4:AIRFLOW-6360
Closed

[AIRFLOW-6360] 'Recent tasks' stats only show non-completed dagruns o…#6944
tooptoop4 wants to merge 3 commits intoapache:masterfrom
tooptoop4:AIRFLOW-6360

Conversation

@tooptoop4
Copy link
Contributor

@tooptoop4 tooptoop4 commented Dec 29, 2019

…ption

Make sure you have checked all steps below.

Jira

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:

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.
    • All the public functions and the classes in the PR contain docstrings that explain what it does
    • If you implement backwards incompatible changes, please leave a note in the Updating.md so we can assign it to a appropriate release

@codecov-io
Copy link

codecov-io commented Dec 29, 2019

Codecov Report

Merging #6944 into master will decrease coverage by 0.01%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6944      +/-   ##
==========================================
- Coverage    84.7%   84.69%   -0.02%     
==========================================
  Files         680      680              
  Lines       38556    38566      +10     
==========================================
+ Hits        32659    32662       +3     
- Misses       5897     5904       +7
Impacted Files Coverage Δ
airflow/www/views.py 75.63% <62.5%> (-0.46%) ⬇️
airflow/utils/log/file_processor_handler.py 88% <0%> (+2.66%) ⬆️

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 7d97d16...126977d. Read the comment docs.

Copy link

@drsantos20 drsantos20 left a comment

Choose a reason for hiding this comment

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

Hi @tooptoop4 do we already have tests for these changes?

@tooptoop4
Copy link
Contributor Author

@drsantos20 i couldn't see a test for original task_stats functionality, as this change is guarded by opt-in config then no impact for existing users

@potiuk
Copy link
Member

potiuk commented Dec 29, 2019

@tooptoop4 -> Still the tests are targeting the "future" rather than the past.

We often cherry-pick some changes to 1.10 now + we want to make sure that we can refactor Airflow in the future without having to run tests manually, so we are now fairly strict in requiring tests for new functionalities - even if there were missing tests in the past. If you want to add new functionality, we expect you add tests, sorry :(.

# 0 means never get forcibly logged out
force_log_out_after = 0

# 'Recent Tasks' stats will show for old DagRuns if True
Copy link
Member

@mik-laj mik-laj Dec 31, 2019

Choose a reason for hiding this comment

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

Hi. Can you add some documentation? We do not yet have a document describing the configuration options of the webserver. Would you like to create it? If not, that's fine and you can also create a new document in the howto directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see #7037

@tooptoop4 tooptoop4 closed this Jan 4, 2020
@tooptoop4
Copy link
Contributor Author

superseded by #7037

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.

5 participants