Skip to content
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

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

tczhao
Copy link
Member

@tczhao tczhao commented Oct 17, 2021

Fixes #6300

Untitled_.Oct.18.2021.12_14.AM.mp4

Tips:

  • Maybe add you organization to USERS.md.
  • Your PR needs to pass the required checks before it can be approved. If the check is not required (e.g. E2E tests) it does not need to pass
  • Sign-off your commits to pass the DCO check: git commit --signoff.
  • Run make pre-commit -B to fix codegen or lint problems.
  • Say how how you tested your changes. If you changed the UI, attach screenshots.
  • If changes were requested, and you've made them, then dismis the review to get it looked at again.
  • You can ask for help!

Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
@codecov
Copy link

codecov bot commented Oct 17, 2021

Codecov Report

Merging #6955 (4489e3e) into master (67fe87b) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
cmd/argoexec/commands/emissary.go 50.35% <0.00%> (-1.44%) ⬇️
cmd/argo/commands/get.go 58.30% <0.00%> (-0.59%) ⬇️
workflow/controller/operator.go 71.13% <0.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67fe87b...4489e3e. Read the comment docs.

@sarabala1979 sarabala1979 self-assigned this Oct 18, 2021
Copy link
Member

@sarabala1979 sarabala1979 left a 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[]) {
Copy link
Contributor

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 => {
Copy link
Contributor

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)

@alexec alexec merged commit e1fe5b5 into argoproj:master Oct 19, 2021
@sarabala1979 sarabala1979 mentioned this pull request Oct 21, 2021
24 tasks
kriti-sc pushed a commit to kriti-sc/argo-workflows that referenced this pull request Oct 24, 2021
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(UI) Add search/filter functionality to the Workflow Templates page
4 participants