Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Oct 28, 2025

I think this is a pattern we should follow for at least all 'listing' endpoint. Those are subject to db query explosion related to lazy query emitted at serialization time.

This add extra number of queries check for public asset related endpoint.

This allowed to identify a missing loading option too and will prevent future problem if someone add an attribute or a piece of code that create the n+1 queries problem.

Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Thanks for adding this guard!

@pierrejeambrun pierrejeambrun merged commit 942063a into apache:main Oct 30, 2025
116 checks passed
@pierrejeambrun pierrejeambrun deleted the add-query-guard-for-public-assets branch October 30, 2025 09:23
@github-actions
Copy link

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 942063a v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Oct 30, 2025
@pierrejeambrun
Copy link
Member Author

Manual backport #57543

pierrejeambrun added a commit that referenced this pull request Oct 30, 2025
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Nov 10, 2025
Copilot AI pushed a commit to jason810496/airflow that referenced this pull request Dec 5, 2025
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 backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants