Skip to content

fix(workflow_engine): Skip deescalating condition for groups without open periods#116802

Merged
malwilley merged 3 commits into
masterfrom
malwilley/skip-deescalating-no-open-period
Jun 3, 2026
Merged

fix(workflow_engine): Skip deescalating condition for groups without open periods#116802
malwilley merged 3 commits into
masterfrom
malwilley/skip-deescalating-no-open-period

Conversation

@malwilley
Copy link
Copy Markdown
Member

Ref ISWF-2785

The deescalating condition handler was raising a DataConditionEvaluationException when evaluating groups that don't have open periods (which only includes error issues). This is a known behavior, so no need to raise an exception.

This adds an early return of False for issue types that don't create open periods (checked via should_create_open_periods).

We should also follow up with some better documentation of this condition so users aren't confused (although I doubt many users care about this working for error issues since it happens so infrequently compared to metric issues).

malwilley added 2 commits June 2, 2026 10:00
…open periods

Group types that do not create open periods (e.g. error groups) were
hitting the "No open period found" exception path and emitting noisy
info logs. Return False early for these group types so the condition
behaves as "not applicable" instead of a known evaluation error.

The existing DataConditionEvaluationException is preserved for group
types that should have open periods but are missing one, keeping the
useful data-integrity signal.
@malwilley malwilley requested a review from a team as a code owner June 3, 2026 19:14
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 3, 2026

ISWF-2785

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 3, 2026
@malwilley malwilley merged commit 1e28599 into master Jun 3, 2026
64 checks passed
@malwilley malwilley deleted the malwilley/skip-deescalating-no-open-period branch June 3, 2026 21:47
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.

2 participants