Visitar URL original
Test coverage on the autocomplete view by uranusjr · Pull Request #15943 · apache/airflow · GitHub
Skip to content

Test coverage on the autocomplete view - #15943

Merged
kaxil merged 2 commits into
apache:mainfrom
uranusjr:tests-www-improve-dagmodelview
Sep 9, 2021
Merged

kaxil merged 2 commits into
apache:mainfrom
uranusjr:tests-www-improve-dagmodelview

Conversation

@uranusjr

Copy link
Copy Markdown
Member

Continuing #15525. This does two things:

  1. Make all branches in the autocomplete view properly covered.
  2. Convert the DagModelView class into a non-model base view class, and rename it to AutocompleteView to reflect its usage. Nothing in the class (it has only one view function autocomplete) ever used any of the model-related features, so all dead code and should go away.

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
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.

@boring-cyborg boring-cyborg Bot added area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels May 19, 2021
@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from 2720791 to 1ea52ab Compare May 19, 2021 14:53
Comment thread airflow/www/views.py Resolved
@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from 1ea52ab to 694d45c Compare June 15, 2021 07:20
@uranusjr
uranusjr requested a review from ashb June 15, 2021 09:40
@kaxil

kaxil commented Jul 27, 2021

Copy link
Copy Markdown
Member

This one now has conflicts :(

@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from 694d45c to ca560bd Compare July 28, 2021 07:24
@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label Sep 3, 2021
@github-actions

github-actions Bot commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from ca560bd to ef946d5 Compare September 6, 2021 10:08
@uranusjr
uranusjr requested a review from bbovenzi as a code owner September 6, 2021 10:08
@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from ef946d5 to 80f9ccd Compare September 6, 2021 11:03
Nothing in the view ever used any of the model view features, so we
should convert it to a base implementation. This also "improves" the
coverage since the dead code are not covered.
@uranusjr
uranusjr force-pushed the tests-www-improve-dagmodelview branch from 80f9ccd to d2c9f8a Compare September 6, 2021 14:18
@kaxil
kaxil merged commit 969b239 into apache:main Sep 9, 2021
@uranusjr
uranusjr deleted the tests-www-improve-dagmodelview branch November 11, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants