Skip to content

Commit

Permalink
Merge branch 'main' into onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Mar 11, 2024
2 parents cd6ffa3 + 3e3d690 commit 35dfdba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 4 additions & 3 deletions client/src/app/utils/rules-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [];
}) || []
)
);
Expand All @@ -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,
}),
Expand Down

0 comments on commit 35dfdba

Please sign in to comment.