diff --git a/.github/workflows/image-build.yaml b/.github/workflows/image-build.yaml index 261d01674a..3e67b3fcf2 100644 --- a/.github/workflows/image-build.yaml +++ b/.github/workflows/image-build.yaml @@ -21,6 +21,7 @@ jobs: image_name: "tackle2-ui" containerfile: "./Dockerfile" architectures: '[ "amd64", "arm64", "ppc64le", "s390x" ]' + extra-args: "--ulimit nofile=4096:4096" secrets: registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }} registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }} diff --git a/client/src/app/utils/rules-utils.ts b/client/src/app/utils/rules-utils.ts index 3c460d6587..e9bdb5f6ea 100644 --- a/client/src/app/utils/rules-utils.ts +++ b/client/src/app/utils/rules-utils.ts @@ -21,8 +21,8 @@ export const parseRules = (file: IReadFile): ParsedRule => { const yamlList = Array.isArray(yamlDoc) ? yamlDoc : [yamlDoc]; const yamlLabels = Array.from( new Set( - yamlList?.flatMap((parsedLine) => { - return parsedLine?.labels ? parsedLine?.labels : []; + yamlList?.flatMap((parsedRule) => { + return parsedRule?.labels ? parsedRule?.labels : []; }) || [] ) ); @@ -32,7 +32,8 @@ export const parseRules = (file: IReadFile): ParsedRule => { target: allLabels?.targetLabel, otherLabels: allLabels?.otherLabels, allLabels: allLabels?.allLabels, - total: 0, + total: + yamlList?.filter((parsedRule) => parsedRule?.ruleID)?.length ?? 0, ...(file.responseID && { fileID: file.responseID, }),