-
Notifications
You must be signed in to change notification settings - Fork 815
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
VideoPress, Invalid VP URL: Handle case when the URL doesn't contain VP GUID #42237
base: trunk
Are you sure you want to change the base?
Conversation
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 2 files.
Full summary · PHP report · JS report If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
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.
Overall, it works great! I just noted one minor scenario: when passing an invalid URL, it falls back to the first video returned from the endpoint, but in that case, it should display an invalid URL error.
projects/packages/videopress/changelog/fix-videopress-invalid-url
Outdated
Show resolved
Hide resolved
It's not 100% true; we are looking for a video by the file name. Eg. Am I still missing something? @phcp |
It was mostly for cases where |
@phcp, you were right. I've handled the described case. It's ready for re-review. |
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.
Changes are working as expected. Thanks for the fixes!
Fixes #34741
Proposed changes:
NOTE: This fix only handles files from the same site since the media search API works in the site context.
Other information:
Jetpack product discussion
#34741
Does this pull request change what data or activity we track or use?
Testing instructions:
Insert From URL
link andpaste the video's link
and submit.