From 9ceb223f14cf886a28a5cd2cbf0ecc92cdf82324 Mon Sep 17 00:00:00 2001 From: yohamta Date: Tue, 30 Aug 2022 11:54:00 +0900 Subject: [PATCH] admin-web: fix filtering issue --- admin/src/components/molecules/DAGTable.tsx | 2 +- examples/example_2.yaml | 75 +++++++++++---------- 2 files changed, 39 insertions(+), 38 deletions(-) diff --git a/admin/src/components/molecules/DAGTable.tsx b/admin/src/components/molecules/DAGTable.tsx index 6071e842b..fb63aed8b 100644 --- a/admin/src/components/molecules/DAGTable.tsx +++ b/admin/src/components/molecules/DAGTable.tsx @@ -170,7 +170,7 @@ const defaultColumns = [ filterFn: (props, _, filter) => { const data = props.original!; if (data.Type != DAGDataType.DAG) { - return false; + return true; } const tags = data.DAGStatus.DAG.Tags; const ret = tags?.some((tag) => tag == filter) || false; diff --git a/examples/example_2.yaml b/examples/example_2.yaml index 3e49c951d..b341e3c85 100644 --- a/examples/example_2.yaml +++ b/examples/example_2.yaml @@ -1,38 +1,39 @@ -group: example group -env: - LOG_DIR: ${HOME}/logs -logDir: ${LOG_DIR} -params: foo bar -steps: - - name: "check precondition" - command: echo start - preconditions: - - condition: "`echo $1`" - expected: foo - - name: "print foo" - command: echo $1 - depends: - - "check precondition" - - name: "print bar" - command: echo $2 - depends: - - "print foo" - - name: "failure and continue" - command: "false" - continueOn: - failure: true - depends: - - "print bar" - - name: "print done" - command: echo done! - depends: - - "failure and continue" -handlerOn: - exit: - command: echo finished! - success: - command: echo success! - failure: - command: echo failed! - cancel: +group: example group +env: + LOG_DIR: ${HOME}/logs +logDir: ${LOG_DIR} +params: foo bar +tags: daily +steps: + - name: "check precondition" + command: echo start + preconditions: + - condition: "`echo $1`" + expected: foo + - name: "print foo" + command: echo $1 + depends: + - "check precondition" + - name: "print bar" + command: echo $2 + depends: + - "print foo" + - name: "failure and continue" + command: "false" + continueOn: + failure: true + depends: + - "print bar" + - name: "print done" + command: echo done! + depends: + - "failure and continue" +handlerOn: + exit: + command: echo finished! + success: + command: echo success! + failure: + command: echo failed! + cancel: command: echo canceled! \ No newline at end of file