Skip to content
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

[RNMobile] Fix inserting item from media library #29476

Merged
merged 4 commits into from
Mar 22, 2023

Conversation

fluiddot
Copy link
Contributor

@fluiddot fluiddot commented Mar 15, 2023

Closes wordpress-mobile/gutenberg-mobile#5572.

⚠️ This PR depends on the following PRs:

Proposed changes:

  • When inserting an item from the media library, the VideoPress ID is passed via the metadata parameter of Media. Before this PR we were getting the value directly from the Media object.

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

N/A

Does this pull request change what data or activity we track or use?

N/A

Testing instructions:

NOTE: For testing this change it's required to use the changes from the PRs referenced above.

  1. Open the app.
  2. Go to a Simple site (videos uploaded in Simple sites are automatically added to VideoPress)
  3. Go to the Media screen.
  4. Upload a video.
  5. Create/open a post.
  6. Add VideoPress block.
  7. Select "WordPress Media Library" option.
  8. Select the uploaded video.
  9. Observe that the placeholder is no longer displayed.
  10. Preview the post.
  11. Observe that the block is displayed and that the video can be played.

@fluiddot fluiddot added [Type] Bug When a feature is broken and / or not performing as intended [Package] VideoPress labels Mar 15, 2023
@fluiddot fluiddot self-assigned this Mar 15, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 15, 2023

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 15, 2023

Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run

bin/jetpack-downloader test jetpack rnmobile/videopress-fix-insert-from-media-library

to get started. More details: p9dueE-5Nn-p2

@fluiddot fluiddot requested review from jhnstn and SiobhyB March 15, 2023 12:54
@fluiddot fluiddot marked this pull request as ready for review March 15, 2023 15:16
Base automatically changed from rnmobile/videopress-upload-file to trunk March 16, 2023 15:07
jhnstn
jhnstn previously approved these changes Mar 17, 2023
Copy link
Member

@jhnstn jhnstn left a comment

Choose a reason for hiding this comment

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

Looks like ad65404 is the first new commit in the PR.

That change looks good to me. I can re-approve once the branch is synced back up with trunk.

@fluiddot fluiddot force-pushed the rnmobile/videopress-fix-insert-from-media-library branch from dc5009e to dd134e9 Compare March 17, 2023 19:01
@fluiddot
Copy link
Contributor Author

Looks like ad65404 is the first new commit in the PR.

@jhnstn Good catch. Yeah, that commit is the actual change of this PR. I've rebased this branch with trunk so now the PR should only show that change.

That change looks good to me. I can re-approve once the branch is synced back up with trunk.

I'm afraid you'd need to re-approve it because your previous review will be dismissed. Thanks!

Copy link
Contributor

@nunyvega nunyvega left a comment

Choose a reason for hiding this comment

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

LGTM!

@fluiddot fluiddot merged commit ab85e1f into trunk Mar 22, 2023
@fluiddot fluiddot deleted the rnmobile/videopress-fix-insert-from-media-library branch March 22, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] VideoPress [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video uploads using the media library
3 participants