Skip to content

fix(ui): remove deleted flow revision from dropdown immediately#14096

Merged
Piyush-r-bhaskar merged 1 commit into
kestra-io:developfrom
Iam-Karan-Suresh:fix/revision-dropdown-not-updating
Jan 12, 2026
Merged

fix(ui): remove deleted flow revision from dropdown immediately#14096
Piyush-r-bhaskar merged 1 commit into
kestra-io:developfrom
Iam-Karan-Suresh:fix/revision-dropdown-not-updating

Conversation

@Iam-Karan-Suresh

@Iam-Karan-Suresh Iam-Karan-Suresh commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

✨ Description

Fixes a frontend reactivity issue where deleting a flow revision required a full page refresh for the UI to update.

This PR updates FlowRevisions.vue to bind directly to the reactive flowStore.revisions state instead of maintaining a local static snapshot. As a result, the revisions dropdown now stays in sync automatically when revisions are added or removed.

Additionally, the Revisions dropdown logic now re-synchronizes correctly when the revisions list length changes.


🔗 Related Issue

closes #14054


🎨 Frontend Checklist

  • Code builds without errors (npm run build)
  • All existing E2E tests pass (npm run test:e2e)
  • UI behavior verified manually (revision disappears from dropdown immediately after delete)
  • Screenshots or video recordings attached showing the UI changes

📝 Additional Notes

Technical Details

The root cause was a broken reactivity chain:

  • FlowRevisions.vue was fetching revisions from the store but copying them into a local ref.
  • When a revision was deleted and the store updated, the local ref remained stale, causing the dropdown to display outdated data.

Changes made:

  • FlowRevisions.vue

    • Replaced local ref with computed(() => flowStore.revisions) to ensure live, reactive updates from the store.
  • Revisions.vue

    • Added a watcher on props.revisions.length to re-align selected indices when revisions are removed.

This ensures a single source of truth and prevents UI desynchronization without requiring a page refresh.

Screencast.from.2026-01-10.01-03-18.webm

@github-project-automation github-project-automation Bot moved this to To review in Pull Requests Jan 9, 2026
@MilosPaunovic MilosPaunovic added area/frontend Needs frontend code changes kind/external Pull requests raised by community contributors labels Jan 10, 2026
@Piyush-r-bhaskar Piyush-r-bhaskar force-pushed the fix/revision-dropdown-not-updating branch from 89f9dd9 to 0b9aed4 Compare January 12, 2026 11:08
@Piyush-r-bhaskar Piyush-r-bhaskar force-pushed the fix/revision-dropdown-not-updating branch from 0b9aed4 to 29d4f76 Compare January 12, 2026 12:20

@Piyush-r-bhaskar Piyush-r-bhaskar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Piyush-r-bhaskar Piyush-r-bhaskar merged commit d145081 into kestra-io:develop Jan 12, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Jan 12, 2026
@Iam-Karan-Suresh

Copy link
Copy Markdown
Contributor Author

Thanks for the review @MilosPaunovic @Piyush-r-bhaskar — appreciate it!

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

Labels

area/frontend Needs frontend code changes kind/external Pull requests raised by community contributors

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Flows] [Revision] Deleted flow revision still shows in dropdown until refresh

3 participants