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

Adding print postfix for print formatting. #782

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

sydseter
Copy link
Collaborator

@sydseter sydseter commented Sep 15, 2024

In this pull-request:

@cw-owasp Jef Mejivis and me are working on the new cornucopia website. https://cornucopia-mvp.vercel.app/

We want to be able to pull the mapping data directly from OWASP/cornucopia to build urls that can take the user to information about the ASVS requirements etc. In order to be able to parse the data in the simple way, it would be great if we can fetch the references without the dash used as a range as that requires quite a bit of logic on the backend to parse and interpret. I have therefor added an additional postfix "_print" property, where appropriate, to ensure that the cards that are printed still shows the requirement map as a range where notated.
I also fixes some issues that was left after we corrected the (C) cornucopia card codes and have ensured that both the 1.22 and 2.00 version aligns in regards to the new _print postfix "property".

It's unlikely that this property will be used outside this repository, this way, the code for parsing will be easier to maintain. It will simplify the input validation as well and will make consumption of the data outside the repository easier.

@sydseter sydseter requested a review from rewtd September 15, 2024 13:21
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
github-actions bot added a commit that referenced this pull request Sep 15, 2024
Copy link
Collaborator

@rewtd rewtd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: LGTM.

@sydseter sydseter changed the title Adding print prefix for print formatting. Adding print postfix for print formatting. Sep 15, 2024
@rewtd
Copy link
Collaborator

rewtd commented Sep 16, 2024

This can be merged now too thanks to the updated CODEOWNERS @sydseter

@sydseter sydseter merged commit b9c2d18 into master Sep 16, 2024
12 checks passed
@cw-owasp
Copy link
Collaborator

Great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants