-
Notifications
You must be signed in to change notification settings - Fork 63
Add count to execution repo interfaces #464
Conversation
Signed-off-by: Andrew Dye <[email protected]>
Signed-off-by: Andrew Dye <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
Codecov Report
@@ Coverage Diff @@
## master #464 +/- ##
==========================================
+ Coverage 61.51% 61.59% +0.07%
==========================================
Files 157 157
Lines 11248 11305 +57
==========================================
+ Hits 6919 6963 +44
- Misses 3612 3619 +7
- Partials 717 723 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Andrew Dye <[email protected]>
f2b0ec8
to
bb956c9
Compare
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.
looks great! thanks for adding all the clean-up too
…erface Signed-off-by: Andrew Dye <[email protected]>
Signed-off-by: Andrew Dye <[email protected]>
Fyi, created flyteorg/flyte#2814 for previously failing Check Go Generate. Looks like an inconsistency between go 1.18 and 1.19. |
Congrats on merging your first pull request! 🎉 |
TL;DR
Add a
Count
interface and implementation toExecutionRepo
,NodeExecutionRepo
, andTaskExecutionRepo
. This allows counting executions matching a filter set without needing to materialize the list.Type
Are all requirements met?
Complete description
Workflow, node, and task execution states are stored in a GORM DB. This change adds a
Count
interface toExecutionRepo
,NodeExecutionRepo
, andTaskExecutionRepo
to query the count of executions efficiently (instead of materializing the list and summing). The interface acceptsInlineFilters
andMapFilters
, similar to theList
interfaces and theListResourceInput
param.Relevant unit tests added.
This change also
make goimports
, which led to updates in a number of unrelated filesTracking Issue
NA
Follow-up issue
NA