Skip to content

feat(ACI): Make ProjectRuleDetailsEndpoint DELETE method backwards compatible#109752

Merged
ceorourke merged 2 commits intomasterfrom
ceorourke/ISWF-2135
Mar 3, 2026
Merged

feat(ACI): Make ProjectRuleDetailsEndpoint DELETE method backwards compatible#109752
ceorourke merged 2 commits intomasterfrom
ceorourke/ISWF-2135

Conversation

@ceorourke
Copy link
Copy Markdown
Member

If we are directly passed a Workflow we need to delete it rather than expecting a dual written Rule.

@ceorourke ceorourke requested a review from a team as a code owner March 3, 2026 00:13
@linear
Copy link
Copy Markdown

linear bot commented Mar 3, 2026

- Actions - specify what should happen when the trigger conditions are met and the filters match.
"""
if features.has("organizations:workflow-engine-rule-serializers", project.organization):
if isinstance(rule, Workflow):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just a nicety change unrelated to the delete method

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 3, 2026
@ceorourke ceorourke requested a review from a team March 3, 2026 00:22
@ceorourke ceorourke merged commit 907fd1c into master Mar 3, 2026
77 checks passed
@ceorourke ceorourke deleted the ceorourke/ISWF-2135 branch March 3, 2026 18:11
ceorourke added a commit that referenced this pull request Mar 9, 2026
Try to look up the related `Rule` object and delete that as well if we
are passed a workflow to the issue alert rule delete method. In
#109752 I assumed we'd always be
getting a single written workflow but that may not always be the case.
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 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