-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FEATURE: [2.2] [AdminBundle] #15888 Introduce sylius:admin-user:delete CLI Command #15889
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
FEATURE: [2.2] [AdminBundle] #15888 Introduce sylius:admin-user:delete CLI Command #15889
Conversation
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
|
PHPStan still fails.. will check! |
98ca674 to
99b32dc
Compare
|
I adjusted the behavior again. Its more conviniend do delete the user by the given username instead of the e-mail address. Will squash my commits to one after i implemented any possible feedback. |
Rafikooo
left a comment
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.
Hello @crydotsnake. Thank you for your recent contributions. As with the PR for the admin users listing, it would be beneficial to include tests 🕺
src/Sylius/Bundle/AdminBundle/Console/Command/DeleteAdminUserCommand.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Console/Command/DeleteAdminUserCommand.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Console/Command/DeleteAdminUserCommand.php
Outdated
Show resolved
Hide resolved
|
Rebase needed 🕺 |
Already noticed. Will take care :) |
3a9779d to
a651c81
Compare
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@Rafikooo Rebase finished :) ! |
de21f29 to
a2aaaf8
Compare
a2aaaf8 to
5e0f38c
Compare
Hello Rafał! I added the unit test 🙂! |
src/Sylius/Bundle/AdminBundle/Console/Command/DeleteAdminUserCommand.php
Outdated
Show resolved
Hide resolved
98f14c2 to
ceb92f2
Compare
|
FYI: I rebased the branch 🙂 |
ceb92f2 to
7b9d771
Compare
TASK: delete user by given username instead of email TASK: add confirmation question before deleting the administrator account TASK: delete duplicate service entry for DeleteAdminUserCommand TASK: allow command to also run non-interactive TASK: apply PHP CS fixes TASK: inject and use AdminUserInterface instead of UserInterface TASK: allow deleting the user by the email only instead of the username TASK: add unit test for DeleteAdminUserCommand TASK: [AdminBundle] add env name="COLUMNS" too phpunit.xml.dist
7b9d771 to
1193038
Compare
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/tests/Console/Command/DeleteAdminUserCommandTest.php
Outdated
Show resolved
Hide resolved
7889a59 to
9bf76a0
Compare
This change introduced the new CLI Command:
This deletes an admin backend user by the given email.
Its also possible to run the command non-interactive: