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-6628] DAG auto-complete now suggests from all acessible DAGs #7251

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

robinedwards
Copy link
Contributor

@robinedwards robinedwards commented Jan 24, 2020

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.

Issue link: AIRFLOW-6628

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

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Jan 24, 2020
airflow/www/views.py Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Jan 27, 2020

Codecov Report

Merging #7251 into master will decrease coverage by <.01%.
The diff coverage is 76.19%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #7251      +/-   ##
=========================================
- Coverage   86.81%   86.8%   -0.01%     
=========================================
  Files         893     893              
  Lines       42193   42208      +15     
=========================================
+ Hits        36629   36639      +10     
- Misses       5564    5569       +5
Impacted Files Coverage Δ
airflow/www/views.py 76.19% <76.19%> (-0.1%) ⬇️

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 0ec2774...0e47b61. Read the comment docs.

@robinedwards robinedwards force-pushed the feature/auto-complete-endpoint branch 2 times, most recently from 684299e to ea40e7f Compare January 31, 2020 15:20
UPDATING.md Outdated Show resolved Hide resolved
@potiuk
Copy link
Member

potiuk commented Feb 2, 2020

Please rebase to latest master @robinedwards - we had a failing master drama and there is much higher chance the build will succeed. We have still some intermittent errors, but there should be less often.

@robinedwards
Copy link
Contributor Author

Rebased @potiuk all green, nice work on fixing master!

@robinedwards robinedwards force-pushed the feature/auto-complete-endpoint branch 7 times, most recently from fe05f2b to f8ace25 Compare February 23, 2020 09:10
The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.
@ashb ashb changed the title [AIRFLOW-6628] Fix search auto complete behaviour [AIRFLOW-6628] DAG auto-complete now suggests from all acessible DAGs Feb 24, 2020
@ashb ashb merged commit 1a9d218 into apache:master Feb 24, 2020
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
…apache#7251)

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.
kaxil added a commit that referenced this pull request Mar 31, 2020
…#7251)

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.

cherry-picked from 1a9d218
kaxil added a commit that referenced this pull request Mar 31, 2020
…#7251)

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.

cherry-picked from 1a9d218
kaxil added a commit that referenced this pull request Mar 31, 2020
…#7251)

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.

cherry-picked from 1a9d218
kaxil added a commit that referenced this pull request Apr 1, 2020
…#7251)

The auto complete on the dag search box utilises the page search context
which prevents auto completing dags which dont match the current query.

On the dags page with no search provided it executes a query that loads
every dag_id in the system to pass to the typeahead widget. On systems
with a lot of dags this makes the page large and slow.

Add a JSON endpoint to provide correct auto complete behaviour and
reduce page load time.

cherry-picked from 1a9d218
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants