Skip to content

perf(workflows): Batch ActionAlertRuleTriggerAction lookup in WorkflowEngineActionSerializer#111763

Merged
kcons merged 1 commit into
masterfrom
kcons/justtheone
Mar 27, 2026
Merged

perf(workflows): Batch ActionAlertRuleTriggerAction lookup in WorkflowEngineActionSerializer#111763
kcons merged 1 commit into
masterfrom
kcons/justtheone

Conversation

@kcons
Copy link
Copy Markdown
Member

@kcons kcons commented Mar 27, 2026

Avoids a query per action, and makes further refactors to improve batching more effective.

@kcons kcons requested a review from ceorourke March 27, 2026 23:25
@kcons kcons requested a review from a team as a code owner March 27, 2026 23:25
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 27, 2026

class WorkflowEngineActionSerializer(Serializer):
def get_attrs(
self, item_list: Sequence[Action], user: User | RpcUser | AnonymousUser, **kwargs: Any
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just for my own learning -- do you happen to know what the difference between Sequence, Collection, and list would be for mypy?

@kcons kcons enabled auto-merge (squash) March 27, 2026 23:33
@kcons kcons merged commit b3a1c72 into master Mar 27, 2026
64 of 65 checks passed
@kcons kcons deleted the kcons/justtheone branch March 27, 2026 23:46
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants