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

Only return active assets in API by default #47962

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Mar 19, 2025

Similar to the list dags endpoint, the list assets endpoint now has a query param 'only_active' that defaults to true (i.e. only show active assets). You can set this to false for the endpoint to also show inactive (deleted from code) assets.

Fix #47810
Fix #47830 since only one asset with the same URI would show in the UI now

Sorry @tyrellcurry for stealing this, I want to get this in for 3.0.0b4 scheduled for tomorrow.

Similar to the list dags endpoint, the list assets endpoint now has a
query param 'only_active' that defaults to true (i.e. only show active
assets). You can set this to false for the endpoint to also show
inactive (deleted from code) assets.
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Mar 19, 2025
@uranusjr uranusjr merged commit b1144ec into apache:main Mar 19, 2025
91 checks passed
@uranusjr uranusjr deleted the asset-only-show-active branch March 19, 2025 18:23
tyrellcurry pushed a commit to tyrellcurry/airflow that referenced this pull request Mar 21, 2025
Similar to the list dags endpoint, the list assets endpoint now has a
query param 'only_active' that defaults to true (i.e. only show active
assets). You can set this to false for the endpoint to also show
inactive (deleted from code) assets.
agupta01 pushed a commit to agupta01/airflow that referenced this pull request Mar 21, 2025
Similar to the list dags endpoint, the list assets endpoint now has a
query param 'only_active' that defaults to true (i.e. only show active
assets). You can set this to false for the endpoint to also show
inactive (deleted from code) assets.
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Mar 22, 2025
Similar to the list dags endpoint, the list assets endpoint now has a
query param 'only_active' that defaults to true (i.e. only show active
assets). You can set this to false for the endpoint to also show
inactive (deleted from code) assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.
Projects
None yet
2 participants