-
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(ui): add label filter to template workflow. Fixes #6300 #6955
Conversation
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #6955 +/- ##
==========================================
- Coverage 48.54% 48.53% -0.02%
==========================================
Files 265 265
Lines 19263 19263
==========================================
- Hits 9352 9349 -3
- Misses 8859 8861 +2
- Partials 1052 1053 +1
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.
LGTM.
@alexec Can you quick look at this PR?
@@ -9,9 +9,9 @@ export class WorkflowTemplateService { | |||
.then(res => res.body as models.WorkflowTemplate); | |||
} | |||
|
|||
public list(namespace: string) { | |||
public list(namespace: string, labels: string[]) { |
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.
minor - you could use default here, something like:
public list(namespace: string, labels : string[] = []) {
const suggestions = new Array<string>(); | ||
templates | ||
.filter(wf => wf.metadata.labels) | ||
.forEach(wf => { |
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.
minor - could use .map(wf => wf.metadata.labels)
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com> Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Fixes #6300
Untitled_.Oct.18.2021.12_14.AM.mp4
Tips:
git commit --signoff
.make pre-commit -B
to fix codegen or lint problems.