Skip to content

ref(features): Extract registered batch handler evaluation - #123179

Open
cvxluo wants to merge 1 commit into
masterfrom
cvxluo/extract-registered-batch-handler-evaluation
Open

ref(features): Extract registered batch handler evaluation#123179
cvxluo wants to merge 1 commit into
masterfrom
cvxluo/extract-registered-batch-handler-evaluation

Conversation

@cvxluo

@cvxluo cvxluo commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Move the existing project handler loop into a shared helper. This helps us reuse the logic in batch_has in a followup. Also widen actor annotations to match existing usage

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 31, 2026
@cvxluo
cvxluo force-pushed the cvxluo/extract-registered-batch-handler-evaluation branch from 08189d9 to 2f35863 Compare August 31, 2026 18:21
@cvxluo
cvxluo marked this pull request as ready for review August 31, 2026 18:54
@cvxluo
cvxluo requested a review from a team August 31, 2026 18:54
Comment thread src/sentry/features/manager.py Outdated
actor: User | RpcUser | AnonymousUser | None,
*,
remaining: set[Project],
result: dict[Project, bool | None],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this method return the mutated dict as well? Relying entirely on parameter mutation feels like a more confusing design than returnning values would.

@kenzoengineer kenzoengineer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mainly jsut moving code around

Return project decisions and evaluation status from a shared helper.

Preserve has_for_batch defaults and partial results on handler errors.

Widen actor annotations to match the existing public APIs.

Co-authored-by: Claude <noreply@anthropic.com>
@cvxluo
cvxluo force-pushed the cvxluo/extract-registered-batch-handler-evaluation branch from 2f35863 to 0216a44 Compare August 31, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants