Skip to content

[One workflow] Filter run modal using workflow triggers#272058

Open
yngrdyn wants to merge 2 commits into
elastic:mainfrom
yngrdyn:execution-modal-filtering
Open

[One workflow] Filter run modal using workflow triggers#272058
yngrdyn wants to merge 2 commits into
elastic:mainfrom
yngrdyn:execution-modal-filtering

Conversation

@yngrdyn
Copy link
Copy Markdown
Contributor

@yngrdyn yngrdyn commented May 31, 2026

Relates to https://github.com/elastic/security-team/issues/16717.

Summary

The Run Workflow and Test Workflow modals no longer show every trigger tab on every workflow. Tabs are derived from triggers declared in the workflow definition. Manual and Historical are always shown when the workflow defines triggers. Initial tab selection and permission fallbacks are constrained to tabs that remain visible, so users are not left on a hidden tab after RAC or capability changes.

What changed

Tab visibility rules

Tab Shown when
Alert Workflow includes an alert trigger
Event Workflow includes custom event-driven triggers (extension trigger types, e.g. cases.created)
Document Workflow includes a manual trigger
Manual Always
Historical Always

When the definition is missing or has no triggers, all tabs are still shown (unchanged behavior for incomplete or legacy callers).

🎥 Demo

Screen.Recording.2026-05-31.at.23.27.27.mov

@yngrdyn yngrdyn self-assigned this May 31, 2026
@yngrdyn yngrdyn requested a review from a team as a code owner May 31, 2026 21:29
@yngrdyn yngrdyn added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels May 31, 2026
@botelastic botelastic Bot added the Team:One Workflow Team label for One Workflow (Workflow automation) label May 31, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 31, 2026

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #16 - stateful-classic / workflows_ui / local-stateful-classic - Workflow execution - Test runs - should show the test execute modal Event tab and trigger events table
  • [job] [logs] Scout Lane #16 - stateful-classic / workflows_ui / local-stateful-classic - Workflow execution - Test runs - should show the test execute modal Event tab and trigger events table

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
workflowsManagement 2.5MB 2.5MB +463.0B

History

cc @yngrdyn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:One Workflow Team label for One Workflow (Workflow automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants