-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(server): archivedWf add namePrefix search. Fixes #6743 #6801
feat(server): archivedWf add namePrefix search. Fixes #6743 #6801
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6801 +/- ##
==========================================
+ Coverage 48.55% 48.56% +0.01%
==========================================
Files 265 265
Lines 19220 19228 +8
==========================================
+ Hits 9332 9338 +6
+ Misses 8839 8837 -2
- Partials 1049 1053 +4
Continue to review full report at Codecov.
|
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.
The use case here appears to be that the leading part of the name should match an expression.
To achieve this, you need name like 'prefix-%'
condition.
I think this should be a separate query parameter name prefix
and this is only used with like ${prefix}%
. You'll need a new func named hasPrefix
similar to nameEquals
.
Do we have an index on name? Can you please check?
we don't have index on name
would you recommend to |
yes. what about the labels table? |
97109ba
to
b4f3334
Compare
Hi @alexec , any further comments? |
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've reviewed the code and this is a breaking change, but we can modify it to remove the breaking change.
We should continue to support name=
, via list.Option.fieldSelector=metadata.name
and add namePrefix
as another option to.
message ListArchivedWorkflowsRequest {
k8s.io.apimachinery.pkg.apis.meta.v1.ListOptions listOptions = 1;
string namePrefix = 2;
}
That means where we had name
we now want name
and namePrefix
. If both are supplied, which would be odd, both must pass.
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
b4f3334
to
c6776d2
Compare
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Awesome. Looks a lot neater like this. Great work! |
…rgoproj#6801) Signed-off-by: Tianchu Zhao <evantczhao@gmail.com> Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Fixes #6743
Tips:
git commit --signoff
.make pre-commit -B
to fix codegen or lint problems.