Skip to content

Commit

Permalink
fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
avneesh-akto committed Apr 16, 2024
2 parents 5e03999 + 19e33ab commit f850f7f
Show file tree
Hide file tree
Showing 62 changed files with 3,599 additions and 1,039 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/beamerAndDiscord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,7 @@ jobs:
line = line.split('by', 1)[0].strip()
release_notes += f'<li>{line[1:]}</li>'
release_notes += '</ul>'
release_notes2 = '<p>More...</p>'
release_notes2 += '<ul></ul>'
release_notes2 += '<p>'
release_notes2 += '<a href=https://discord.com/invite/Wpc6xVME4s >'
release_notes2 += '</a>'
release_notes2 += '</p>'
release_notes2 += '<ul>'
release_notes2 += '<a href=https://discord.com/invite/Wpc6xVME4s ></a>'
release_notes2 += '<li><a href=https://discord.com/invite/Wpc6xVME4s ></a><a href=https://discord.com/invite/Wpc6xVME4s >Join Discord </a>to know more</li>'
release_notes2 += '<li>Star Akto on <a href=https://github.com/akto-api-security/akto>Github</a></li>'
release_notes2 += '</ul>'
release_notes2 = '<p></p>Have questions? Ask on <a href=https://discord.com/invite/Wpc6xVME4s >Discord</a> or our <a href=https://community.akto.io >Community page</a>'
release_notes = release_notes+release_notes2

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
wget -O fintech.json https://raw.githubusercontent.com/akto-api-security/akto/master/pii-types/fintech.json
wget -O filetypes.json https://raw.githubusercontent.com/akto-api-security/akto/master/pii-types/filetypes.json
- name: Prepare Dashboard UI
working-directory: ./apps/dashboard/
run: npm install && export RELEASE_VERSION=${{github.event.inputs.release_version}} && npm run build
- name: Prepare Dashboard polaris UI
working-directory: ./apps/dashboard/web/polaris_web
run: npm install && export RELEASE_VERSION=${{github.event.inputs.release_version}} && npm run build
Expand All @@ -51,8 +48,6 @@ jobs:
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: ap-south-1

- name: Deploy static site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/dist s3://dashboard-on-cdn/web/${{github.event.inputs.release_version}}/dist --delete
- name: Deploy polaris site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/polaris_web/web/dist s3://dashboard-on-cdn/polaris_web/${{github.event.inputs.release_version}}/dist --delete
- run: mvn package -Dakto-image-tag=${{ github.event.inputs.release_version }} -Dakto-build-time=$(eval "date +%s") -Dakto-release-version=${{github.event.inputs.release_version}}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/releaseOnlyUI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '17'
- name: Prepare Dashboard UI
working-directory: ./apps/dashboard/
run: npm install && export RELEASE_VERSION=${{github.event.inputs.release_version}} && npm run build
- name: Prepare Dashboard polaris UI
working-directory: ./apps/dashboard/web/polaris_web
run: npm install && export RELEASE_VERSION=${{github.event.inputs.release_version}} && npm run build
Expand All @@ -43,7 +40,5 @@ jobs:
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: ap-south-1

- name: Deploy static site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/dist s3://dashboard-on-cdn/web/${{github.event.inputs.release_version}}/dist --delete
- name: Deploy polaris site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/polaris_web/web/dist s3://dashboard-on-cdn/polaris_web/${{github.event.inputs.release_version}}/dist --delete
5 changes: 0 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
wget -O general.json https://raw.githubusercontent.com/akto-api-security/pii-types/master/general.json
wget -O fintech.json https://raw.githubusercontent.com/akto-api-security/akto/master/pii-types/fintech.json
wget -O filetypes.json https://raw.githubusercontent.com/akto-api-security/akto/master/pii-types/filetypes.json
- name: Prepare Dashboard UI
working-directory: ./apps/dashboard/
run: npm install && export RELEASE_VERSION=${{steps.docker_tag.outputs.IMAGE_TAG}} && npm run build
- name: Prepare Dashboard polaris UI
working-directory: ./apps/dashboard/web/polaris_web
run: npm install && export RELEASE_VERSION=${{steps.docker_tag.outputs.IMAGE_TAG}} && npm run build
Expand All @@ -47,8 +44,6 @@ jobs:
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY}}
aws-region: ap-south-1

- name: Deploy static site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/dist s3://dashboard-on-cdn/web/${{steps.docker_tag.outputs.IMAGE_TAG}}/dist --delete
- name: Deploy polaris site to S3 bucket
run: aws s3 sync ./apps/dashboard/web/polaris_web/web/dist s3://dashboard-on-cdn/polaris_web/${{steps.docker_tag.outputs.IMAGE_TAG}}/dist --delete

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ public HashSetStore(int maxCount) {
this.maxCount = maxCount;
}

private final Set<String> set = new HashSet<>();
private final Set<Integer> set = new HashSet<>();
@Override
public boolean contains(String val) {
return set.contains(val);
return set.contains(val.hashCode());
}

@Override
public boolean add(String val) {
if (set.size() >= maxCount) return false;
return set.add(val);
return set.add(val.hashCode());
}
}
Loading

0 comments on commit f850f7f

Please sign in to comment.