Skip to content

Fix pool PATCH validation with partial update_mask bodies - #73921

Closed
garvit-arora wants to merge 1 commit into
apache:mainfrom
garvit-arora:fix/73768-pool-patch-update-mask
Closed

garvit-arora wants to merge 1 commit into
apache:mainfrom
garvit-arora:fix/73768-pool-patch-update-mask

Conversation

@garvit-arora

Copy link
Copy Markdown
Contributor

Summary

  • Merge existing pool ORM values before BasePool validation when update_mask is used
  • Add API test for PATCH with update_mask=slots on a non-default pool

closes: #73768

Test plan

  • Added parametrized API test for partial pool PATCH with update_mask
  • Run airflow-core pool API tests in Breeze

Pool PATCH with update_mask=slots no longer requires include_deferred and the pool name for non-default pools.

closes: apache#73768

Generated-by: Cursor
@boring-cyborg

boring-cyborg Bot commented Sep 29, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@garvit-arora

Copy link
Copy Markdown
Contributor Author

Closing as duplicate of 1fanwang#32 — same fix with more complete test coverage. See #73768.

@garvit-arora

Copy link
Copy Markdown
Contributor Author

Thanks @1fanwang — I saw your note on #73768 and reviewed your fork PR (1fanwang#32). It already covers the same fix with a fuller e2e reproducer and bulk-update cases, so I am closing this one to avoid duplicate review effort. Happy to help test or review when you open it against apache/airflow.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pool PATCH with update_mask still requires include_deferred and the pool name

1 participant