-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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] Update setup media picker helper #50398
Conversation
Size Change: 0 B Total Size: 1.38 MB ℹ️ View Unchanged
|
c6c852e
to
ea21fd8
Compare
url: url ?? localUrl, | ||
id: id ?? localId, |
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.
Note that now if the media item has url
and id
properties, they will be used instead of local ones.
Flaky tests detected in b2d74c9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4937294018
|
c10fb91
to
d0dba7f
Compare
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.
This change has been approved via #50399 (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.
Tested via wordpress-mobile/gutenberg-mobile#5735 and confirm the changes look good to me. 👏 👏
d0dba7f
to
b2d74c9
Compare
What?
Update the media picker helper to support more functionality.
Why?
This is needed for tests being worked on Gutenberg Mobile: wordpress-mobile/gutenberg-mobile#5734.
How?
The following updates have been made:
multiple
option asfalse
, when calling backmediaPickerCallback
it will return the media item instead of an array. This is needed for components that expect only an item to be returned.metadata
property when notifying a succeeded upload.Testing Instructions
These changes can be tested via wordpress-mobile/gutenberg-mobile#5735. Specifically, this change is used here.
Testing Instructions for Keyboard
N/A
Screenshots or screencast
N/A