-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
==========================================
+ Coverage 58.70% 59.97% +1.26%
==========================================
Files 168 168
Lines 16307 13383 -2924
==========================================
- Hits 9573 8026 -1547
+ Misses 5884 4506 -1378
- Partials 850 851 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Kevin Su <pingsutw@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the RFC we said we were going to have separate keys and values for labels, whereas the implementation in this PR we use flat values as the tags, right? It doesn't invalidate the overall approach (of having a many-to-many relationship) though.
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a couple of comments.
Signed-off-by: Kevin Su <pingsutw@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we have to worry about storage requirements at this point, so left a comment related to this.
Also, not sure if the queries to list executions are correct, so a couple comments in that area as well.
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments on how to handle the creation of tags (and potential duplicates).
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
* test Signed-off-by: Kevin Su <pingsutw@apache.org> * Execution tags Signed-off-by: Kevin Su <pingsutw@apache.org> * Add tags filter Signed-off-by: Kevin Su <pingsutw@apache.org> * Add execution tags table Signed-off-by: Kevin Su <pingsutw@apache.org> * update tests Signed-off-by: Kevin Su <pingsutw@apache.org> * nit Signed-off-by: Kevin Su <pingsutw@apache.org> * update Signed-off-by: Kevin Su <pingsutw@apache.org> * update Signed-off-by: Kevin Su <pingsutw@apache.org> * update migration Signed-off-by: Kevin Su <pingsutw@apache.org> * lint Signed-off-by: Kevin Su <pingsutw@apache.org> * use gorm size Signed-off-by: Kevin Su <pingsutw@apache.org> * Add tests Signed-off-by: Kevin Su <pingsutw@apache.org> * bump idl Signed-off-by: Kevin Su <pingsutw@apache.org> * bump idl Signed-off-by: Kevin Su <pingsutw@apache.org> * bump idl Signed-off-by: Kevin Su <pingsutw@apache.org> * address comment Signed-off-by: Kevin Su <pingsutw@apache.org> * Set tag_name column as unique Signed-off-by: Kevin Su <pingsutw@apache.org> * Add integration tests Signed-off-by: Kevin Su <pingsutw@apache.org> * Update the tests Signed-off-by: Kevin Su <pingsutw@apache.org> * nit Signed-off-by: Kevin Su <pingsutw@apache.org> * nit Signed-off-by: Kevin Su <pingsutw@apache.org> * BeforeCreate Signed-off-by: Kevin Su <pingsutw@apache.org> * Update migration ID Signed-off-by: Kevin Su <pingsutw@apache.org> * lint Signed-off-by: Kevin Su <pingsutw@apache.org> * bump idl Signed-off-by: Kevin Su <pingsutw@apache.org> * update migration id Signed-off-by: Kevin Su <pingsutw@apache.org> --------- Signed-off-by: Kevin Su <pingsutw@apache.org>
TL;DR
Add two tables (admin_tags, execution_admin_tags).
execution_admin_tags
is a join table containing admin_tags's ID and execution's ID.admin_tags
save all the tag names.To list executions that match specific tags, we will join the
execution
,execution_admin_tags
, andadmin_tags
tables.Type
Are all requirements met?
Complete description
Tracking Issue
flyteorg/flyte#3320
Blocked by flyteorg/flyteidl#414
Follow-up issue
NA