-
Notifications
You must be signed in to change notification settings - Fork 844
(WIP) VideoPress: Make VideoPress depend on site connection instead of individual user Jetpack connections #46274
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?
Conversation
…Jetpack connections
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
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 🤖 🔴 Action required: Please add missing changelog entries for the following projects: Use the Jetpack CLI tool to generate changelog entries by running the following command: Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 1 file.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
paulopmt1
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.
Thanks for working on this @leonardost. I'm happy you're prioritizing one of your learning goals!
I was able to successfully add a video in Gutenberg as a new Editor user without connecting to Jetpack from that new test user, which is great:
With that Editor permission, I cannot access Jetpack > VideoPress, which I believe is expected:
When I use this new user in the Administrator permission, I can access Jetpack > VideoPress, but cannot upload videos there or edit the current ones:
Can we also modify that check to allow the edition as we did in the Gutenberg block?
I was about to propose to solve the same issue for the VideoPress interface, but it seems we intentionally changed that here. More conetxt: p9dueE-69D-p2
So if that was intentional, why this Gutenberg block change works fine?
Can we test @leonardost if we could also update this logic to not check the user is connected?
Fixes #39034
Proposed changes:
This PR update the VideoPress Gutenberg block to not gate uploads depending on individual user Jetpack connections. If the underlying site is connected to WPCOM and has the VideoPress plan, all users of that site should be able to upload videos to VIdeoPress regardless if they're individually connected to WPCOM or not.
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
update/make-videopress-depend-on-site-connection-instead-of-individual-userbranch selected for Jetpack VideoPress