Add core/users ability#774
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #774 +/- ##
=============================================
+ Coverage 76.71% 77.68% +0.97%
- Complexity 1828 1941 +113
=============================================
Files 87 88 +1
Lines 7764 8205 +441
=============================================
+ Hits 5956 6374 +418
- Misses 1808 1831 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What?
core/usersability with single-user lookup byid,user_email,user_login, oruser_nicename.roles,has_published_posts,page,per_page, andfields; omitted REST input defaults to empty collection mode.user_login,user_email,user_nicename,user_url, anduser_registered, to align with Core’s existingcore/get-user-infoability.get_option( 'show_avatars' ).Testing
php -l includes/Abilities/Users/Users.phpphp -l includes/Main.phpphp -l tests/Integration/Includes/Abilities/Users/UsersTest.phpvendor/bin/phpcs --standard=phpcs.xml.dist includes/Abilities/Users/Users.php includes/Main.php tests/Integration/Includes/Abilities/Users/UsersTest.phpvendor/bin/phpstan analyse --memory-limit=1G includes/Abilities/Users/Users.php tests/Integration/Includes/Abilities/Users/UsersTest.phpnpx wp-scripts lint-js tests/e2e/specs/abilities/core-users.spec.jsnpm run test:php -- --filter UsersTestnpm run test:e2e -- tests/e2e/specs/abilities/core-users.spec.js --project=chromiumgit diff --check