Skip to content

Improve the views module a bit#31661

Merged
uranusjr merged 5 commits into
apache:mainfrom
astronomer:views-improve
Jun 5, 2023
Merged

Improve the views module a bit#31661
uranusjr merged 5 commits into
apache:mainfrom
astronomer:views-improve

Conversation

@uranusjr

@uranusjr uranusjr commented Jun 1, 2023

Copy link
Copy Markdown
Member

This mostly involves making more SQL queries lazy by removing all(), and some collection-building loops into comprehensions. In only a few cases I made deeper changes such as rewriting filtering done in Python to SQL.

@boring-cyborg boring-cyborg Bot added the area:webserver Webserver related Issues label Jun 1, 2023
Comment thread airflow/www/views.py Outdated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is removed outright since the function is not used at all in the entire code base.

Comment thread airflow/www/views.py Outdated
@potiuk

potiuk commented Jun 4, 2023

Copy link
Copy Markdown
Member

needs test fixing, I am afraid

uranusjr and others added 3 commits June 5, 2023 12:40
This mostly involves making more SQL queries lazy by removing all(), and
some collection-building loops into comprehensions. In only a few cases
I made deeper changes such as rewriting filtering done in Python to SQL.
Co-authored-by: Jed Cunningham <[email protected]>
uranusjr added 2 commits June 5, 2023 12:45
No need to import markupsafe twice, once qualified and once not.
@uranusjr

uranusjr commented Jun 5, 2023

Copy link
Copy Markdown
Member Author

Hmm static check failure seems unrelated (unchanged files, also failed on main) so I’ll fix them in another PR.

@uranusjr
uranusjr merged commit 9095e68 into apache:main Jun 5, 2023
@uranusjr
uranusjr deleted the views-improve branch June 5, 2023 06:21
@eladkal eladkal added this to the Airflow 2.6.2 milestone Jun 8, 2023
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 8, 2023
@eladkal eladkal modified the milestones: Airflow 2.6.2, Airflow 2.7.0 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:webserver Webserver related Issues type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants