fix(flyteadmin): keep description entity types separate - #7958
Merged
popojk merged 3 commits intoSep 4, 2026
Merged
Conversation
Description entity keys include the resource type, but get and list queries omitted it. Tasks and workflows with the same identifier could therefore return the wrong description or appear in the same list. Signed-off-by: 1fanwang <1fannnw@gmail.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7958 +/- ##
==========================================
- Coverage 57.29% 56.50% -0.79%
==========================================
Files 931 772 -159
Lines 58305 52285 -6020
==========================================
- Hits 33405 29545 -3860
+ Misses 21843 19975 -1868
+ Partials 3057 2765 -292
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: 1fanwang <1fannnw@gmail.com>
kumare3
approved these changes
Sep 4, 2026
popojk
enabled auto-merge (squash)
September 4, 2026 10:17
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.
Why are the changes needed?
When a task and workflow share the same project, domain, name, and version, requesting the workflow description can return the task's description. Listing workflow descriptions can also return both rows.
Description rows use
resource_typeto distinguish those entities, but Flyteadmin's get and list queries did not filter on that column. After this change, both operations return only the requested type.What changes were proposed in this pull request?
Add
resource_typeto the description entity get and list filters. Requests with an unspecified list type keep the existing behavior.How was this patch tested?
The regression uses the real manager, repository, GORM query path, and an in-memory SQLite table containing a task and workflow with the same identifier.
Raw logs
Base
d8b6a3b49ec3with the regression test:This branch:
Labels
fixed
Check all the applicable boxes