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

refactor: Removing all dependency to Guard.NET. #465

Merged
merged 32 commits into from
Jan 16, 2025

Conversation

joachimgoris
Copy link
Contributor

@joachimgoris joachimgoris commented Dec 31, 2024

As per issue 463. This PR removes all dependency on Guard.NET. All checks done by Guard.NET have been replaced with if checks.

Closes #463

Copy link

netlify bot commented Dec 31, 2024

Deploy Preview for arcus-webapi canceled.

Name Link
🔨 Latest commit bf4a3b5
🔍 Latest deploy log https://app.netlify.com/sites/arcus-webapi/deploys/6788f9fc8a390800089a37b2

@joachimgoris joachimgoris changed the title Removing all dependency to Guard.NET. refactor: Removing all dependency to Guard.NET. Dec 31, 2024
@joachimgoris joachimgoris marked this pull request as ready for review December 31, 2024 15:57
Copy link
Member

@stijnmoreels stijnmoreels left a comment

Choose a reason for hiding this comment

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

Thx a lot for your work on this and your investment in Arcus! Greatly appriciated.
It's a big PR, so I'll write some comments here that are related to tons of files here:

  • It's a Micorosft code style to place a blank linke between curly braces and the next (non-curly brace) line. Now, all the if statements are glued togehter, which conflicts the current style in the repo.
  • In method overloads, we previously had several 'paranoia' checks which duplicated things. Especially now that we are responsible for the checks, it might be better to opt for a centralized approach and only check the values where there are used. It helps with clarity, too.
  • There are a lot of places where argument names are set. I believe in lots of these cases, that is unnecessary.

@joachimgoris
Copy link
Contributor Author

@stijnmoreels I believe I've made all the changes you've requested in your comments. Could you be so kind to review the PR again?
Thank you

Copy link
Member

@fgheysels fgheysels left a comment

Choose a reason for hiding this comment

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

Thanks for this! I think we can complete this PR very soon; there's just some (minor) change request on the readability of a particular change.

Copy link
Member

@stijnmoreels stijnmoreels left a comment

Choose a reason for hiding this comment

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

Thx for this!

@joachimgoris
Copy link
Contributor Author

@stijnmoreels or @fgheysels I don't have write access to the repository so I'm not allowed to merge my own PR's 😄

@fgheysels
Copy link
Member

@stijnmoreels or @fgheysels I don't have write access to the repository so I'm not allowed to merge my own PR's 😄

Let me do it for you, thanks again for your contribution and hope to see you again in the (near) future :)

@fgheysels
Copy link
Member

It looks like we have some failing unittests. Can you have a look at it @joachimgoris ?

@joachimgoris
Copy link
Contributor Author

@fgheysels unit tests are fixed.

@fgheysels fgheysels merged commit 7062a7b into arcus-azure:main Jan 16, 2025
9 checks passed
@joachimgoris joachimgoris deleted the joachim/463 branch January 16, 2025 12:30
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.

Phase out the use of Guard.NET
3 participants