Skip to content

Conversation

@SH4LIN
Copy link
Contributor

@SH4LIN SH4LIN commented May 26, 2023

GitHub Issue: #160

  • Added the Check whether inputted role exist or not if not than warning is displayed.

@SH4LIN SH4LIN requested a review from a team as a code owner May 26, 2023 06:52
- Added $warn_user_only parameter in the validate_role() function.
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

Can you include some feature tests for this change? Here is some guidance on our pull request best practices, if it's helpful.

@SH4LIN
Copy link
Contributor Author

SH4LIN commented May 26, 2023

Can you include some feature tests for this change? Here is some guidance on our pull request best practices, if it's helpful.

Yes sure.

@SH4LIN
Copy link
Contributor Author

SH4LIN commented May 26, 2023

@danielbachhuber Other than the tests is solution right?

@danielbachhuber
Copy link
Member

Other than the tests is solution right?

@SH4LIN Yes, I think it's fine. It looks like the existing tests are passing, too.

@SH4LIN
Copy link
Contributor Author

SH4LIN commented May 26, 2023

@danielbachhuber I have added the functional test can you check it?

@SH4LIN SH4LIN requested review from danielbachhuber and wojsmol May 26, 2023 19:33
@SH4LIN
Copy link
Contributor Author

SH4LIN commented May 30, 2023

@danielbachhuber Can you check if the Functional tests are okay?

@danielbachhuber danielbachhuber changed the title Added the Invalid role check for the wp user update command Warn when an invalid role is provided for wp user update May 30, 2023
@danielbachhuber danielbachhuber added command:user Related to 'user' command command:user-update Related to 'user update' command labels May 30, 2023
@danielbachhuber
Copy link
Member

Can you check if the Functional tests are okay?

@SH4LIN The functional tests look great! Thanks for improving them 😊

@danielbachhuber danielbachhuber added this to the 2.5.1 milestone May 30, 2023
@danielbachhuber danielbachhuber merged commit 4c0b484 into wp-cli:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:user Related to 'user' command command:user-update Related to 'user update' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants