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

Code tidying, challenge difficulty refactor, removal of unnecessary code #789

Merged
merged 12 commits into from
Apr 28, 2023

Conversation

nbaars
Copy link
Collaborator

@nbaars nbaars commented Apr 26, 2023

What kind of changes does this PR include?

  • Fixes or refactors
  • A new challenge
  • Additional documentation
  • Something else

Description

Small refactoring commits to clean up the code.

Relations

References

Checklist:

  • All the contributions made are solely the work of me and my co-authors
  • I tested the changes in this PR (if applicable)
  • I added unit tests to ensure my change works (when change in Java or on front-end code)
  • The PR passes pre-commit hooks and automated tests

@commjoen
Copy link
Collaborator

Thank you! Hope to test & review it soon :-)

pom.xml Show resolved Hide resolved
@commjoen commjoen changed the title Update Code tidying, challenge difficulty refactor, removal of unnecessary code Apr 27, 2023
@commjoen
Copy link
Collaborator

commjoen commented Apr 27, 2023

There are some spot bugs left at https://github.com/OWASP/wrongsecrets/actions/runs/4819756896/jobs/8583373048?pr=789 :-) can you please have a look at them? Then we can merge 🚀

Nanne Baars added 12 commits April 28, 2023 14:45
The endpoints are picked up automatically and don't need extra configuration. Added test to verify all expected endpoints are present in the json response for OpenAPI.
Introduce descriptive enums to difficulty of a challenge. Furthermore, move some logic regarding displaying the difficulty level to Java.
In all cases the method throws an exception so let's inline it directly in the method.
Also format the pom file accordingly.
Copy link
Collaborator

@commjoen commjoen left a comment

Choose a reason for hiding this comment

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

Thank you @nbaars !

@commjoen commjoen merged commit ec24b00 into master Apr 28, 2023
14 checks passed
@commjoen commjoen deleted the update branch April 28, 2023 21:01
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.

None yet

2 participants