Fix duplicate flows in dashboard tables caused by revisions#14580
Open
ayuxsh009 wants to merge 1 commit intokestra-io:developfrom
Open
Fix duplicate flows in dashboard tables caused by revisions#14580ayuxsh009 wants to merge 1 commit intokestra-io:developfrom
ayuxsh009 wants to merge 1 commit intokestra-io:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where dashboard tables using the
io.kestra.plugin.core.dashboard.data.Flowsdata source displayed duplicate entries for the same flow when multiple revisions existed.Previously, the Flows data source returned all revisions of each flow, which caused one logical flow to appear multiple times in table charts. This change ensures that only the latest revision of each flow is returned, so each flow appears exactly once in dashboards.
🔗 Related Issue
Closes #14506
🎨 Frontend Checklist
This PR does not include any frontend changes.
🛠️ Backend Checklist
📝 Additional Notes
Root Cause
When using the Flows dashboard data source, the
fetchData()andfetchValue()methods queried directly from the flows table, which stores one row per revision. This caused each flow to appear multiple times in dashboard tables.Solution
Both methods were updated to query from
fromLastRevision(true)instead ofjdbcRepository.getTable(), applying the existing window-function-based filter that returns only the latest revision of each flow.Testing
Verification Screenshot*
After editing the same flow multiple times (creating multiple revisions), the

“All Flows” dashboard table now shows only one row for the flow (latest revision),
confirming that duplicate entries are no longer displayed.