Skip to content

Conversation

lucass-barreto
Copy link

This PR addresses the bug where 'SELECT' type inputs configured in a scheduled trigger were ignored during backfill executions, causing the flow to use the default flow input instead of the trigger's input value.

The fix is applied in the frontend logic (FlowRun.vue) and ensures that:

  1. The execution payload correctly merges this.selectedTrigger.inputs (the trigger's defaults) with the user's final selection (this.inputsNoDefaults).
  2. The user's selection always overrides the trigger's default, using spread operator logic.

Closes #10627

…#10627)

Fixes an issue where 'SELECT' type inputs defined in a scheduled trigger were ignored during backfill, causing the flow to use the default flow input instead of the trigger's input value.

The bug was in the frontend (FlowRun.vue) where the execution payload was not merging the inputs correctly.

The fix ensures that:
- Inputs from the trigger (`this.selectedTrigger.inputs`) are included in the payload.
- The user's final selection from the modal (`this.inputsNoDefaults`) always overrides the trigger's default, using the spread operator logic:

inputs: this.selectedTrigger?.inputs ? { ...this.selectedTrigger.inputs, ...this.inputsNoDefaults } : this.inputsNoDefaults,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To review

Development

Successfully merging this pull request may close these issues.

Backfill: Scheduled trigger inputs are ignored for SELECT type, defaulting to flow-level input instead

1 participant