Skip to content

refactor: Replace _handle_request elif chains with a handler registry #65827#68106

Draft
JH-A-Kim wants to merge 11 commits into
apache:mainfrom
JH-A-Kim:refactor-handle_request-with-handler-registry
Draft

refactor: Replace _handle_request elif chains with a handler registry #65827#68106
JH-A-Kim wants to merge 11 commits into
apache:mainfrom
JH-A-Kim:refactor-handle_request-with-handler-registry

Conversation

@JH-A-Kim
Copy link
Copy Markdown

@JH-A-Kim JH-A-Kim commented Jun 5, 2026


Description

Closes #65827

This pull request aims to refactor _handle_request elif chains with a handler registry.

WIP

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Sonnet 4.6] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@JH-A-Kim JH-A-Kim force-pushed the refactor-handle_request-with-handler-registry branch 2 times, most recently from e220072 to 849d275 Compare June 5, 2026 22:18
@JH-A-Kim JH-A-Kim force-pushed the refactor-handle_request-with-handler-registry branch from 8d75303 to 4de5af1 Compare June 6, 2026 02:32
JH-A-Kim added 5 commits June 5, 2026 22:03
… tests

client is now a required field in WatchedSubProcess so we now have to pass a mock to satisfy the constructor
handle_mask_secret does not use the client field but it requires the client:Client because it needs to satisfy the uniform handler contract stipulated by the registry dispatcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace _handle_request elif chains with a handler registry

1 participant