-
Notifications
You must be signed in to change notification settings - Fork 54
Detect if users already exists instead of failing. Fixes #431 #453
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
Conversation
00ad684 to
8c54049
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a single comment regarding adding a conditional compilation guard for use of the uzers crate.
40de1ba to
f0930cd
Compare
|
Wait, it needs to add the variant for Windows. Edit: Done. |
f0930cd to
742204e
Compare
|
I think one last thing, run cargo fmt so it'll pass the linter. Also looks like just a couple missing semi-colons. |
742204e to
c006187
Compare
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #453 +/- ##
==========================================
- Coverage 28.59% 27.07% -1.53%
==========================================
Files 85 83 -2
Lines 2301 2246 -55
==========================================
- Hits 658 608 -50
+ Misses 1643 1638 -5 ☔ View full report in Codecov by Sentry. |
c006187 to
a587faa
Compare
|
Added conditional check when importing |
|
Looks like it is good to go, thank you! Addition: Just noticed that this looks like its your first commit! Congrats and thank you once again! |
|
Yay! Thanks @martintc ! |
I'm submitting a
What is the current behaviour?
Action
user.addfails if the user already exists.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
Pass without fail if user already exists.
What is the motivation / use case for changing the behavior?
Should not be marked as a failing result.
Please tell us about your environment:
Version (
comtrya --version): ccdf5e1Operating system: FreeBSD 14