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

Add support for Story block rendering (part 3): rename refactor #2706

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Oct 10, 2020

This PR contains needed work to rename component to BlockMediaUpdateProgress (see Automattic/jetpack#17456)

Related PRs:

Gutenberg: WordPress/gutenberg#26005

Jetpack: Automattic/jetpack#17456

WPAndroid: wordpress-mobile/WordPress-Android#13101

To test:

These changes aim at having a more generalized naming of methods that allow them to signify they are indeed reusable.
Given the Story block intrinsically is a collection of files represented by an object array named mediaFiles,we're giving collectively these names to the related method, for example
onStoryCreatorRequestListener has been renamed to onMediaFilesEditorLoadRequestListener, given from Gutenberg the mediaFiles array gets passed on so it can be modified externally and then be replaced back once done editing.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Oct 10, 2020

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

Copy link
Contributor

@etoledom etoledom left a comment

Choose a reason for hiding this comment

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

Approved via Automattic/jetpack#17456 (review) and WordPress/gutenberg#26005 (review)

Since this CI error also happens on the target branch, let's merge and solve the issue on the target branch itself 👍

@mzorz mzorz merged commit 57f2618 into try/jetpack-stories-block-on-done Oct 14, 2020
@mzorz mzorz deleted the try/jetpack-stories-block-on-done-refactor branch October 14, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants