Skip to content

PM-4879 throw error on disabled workflow#1757

Merged
vas3a merged 4 commits intodevfrom
PM-4879_throw-error-on-disabled-workflow
Apr 20, 2026
Merged

PM-4879 throw error on disabled workflow#1757
vas3a merged 4 commits intodevfrom
PM-4879_throw-error-on-disabled-workflow

Conversation

@vas3a
Copy link
Copy Markdown
Collaborator

@vas3a vas3a commented Apr 20, 2026

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-4879

What's in this PR?

This pull request adds validation to prevent saving or launching a challenge if any assigned AI workflow has been disabled. It introduces a new check in the ChallengeEditorForm to fetch the current state of assigned AI workflows and block the action with an appropriate error message if any are disabled. The changes are covered by new tests to ensure correct behavior.

  • Added getDisabledAiWorkflowForActionError function to check if any assigned AI workflow is disabled by fetching workflow data and comparing against reviewers' assignments. (ChallengeEditorForm.tsx)
  • Integrated this validation into the save and launch logic, blocking the action and displaying a specific error message if a disabled workflow is found. (ChallengeEditorForm.tsx)

Open in Devin Review

devin-ai-integration[bot]

This comment was marked as resolved.

@vas3a vas3a merged commit e663de6 into dev Apr 20, 2026
6 checks passed
@vas3a vas3a deleted the PM-4879_throw-error-on-disabled-workflow branch April 20, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant