-
Notifications
You must be signed in to change notification settings - Fork 843
Users: Add new page to display private viewers #46000
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
base: trunk
Are you sure you want to change the base?
Users: Add new page to display private viewers #46000
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Code Coverage SummaryCoverage changed in 1 file.
1 file is newly checked for coverage.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
…-wp-admin-dashboard
| // Helper function to fetch a single batch of invites. | ||
| const fetchInvitesBatch = async ( offset: number ) => { | ||
| const path = addQueryArgs( `/sites/${ window.wpcomPrivateViewers.siteId }/invites`, { | ||
| offset, | ||
| number: batchSize, | ||
| status: 'all', | ||
| role: window.wpcomPrivateViewers.viewerRole, | ||
| } ); | ||
| return await wpcomRequest< { invites: Invite[]; found: number } >( { | ||
| path, | ||
| apiVersion: '1', | ||
| } ); | ||
| }; |
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.


Fixes DOTSITE-14
Proposed changes:
Registers a new "Users > Private Viewers" on private sites where users can view and manage the viewers that have access to the site:
Since integrating the viewers in wp-admin/users.php screen is not worth it given the complexity required (see 171239-ghe-Automattic/wpcom), this PR explores a separate table as a middle ground solution.
Other information:
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No
Testing instructions: