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

[Gutenberg] Add enableCaching param to fetch request in edit post activity #14529

Merged
merged 9 commits into from
May 12, 2021

Conversation

fluiddot
Copy link
Contributor

@fluiddot fluiddot commented Apr 26, 2021

gutenberg PR: WordPress/gutenberg#31186
gutenberg-mobile PR: wordpress-mobile/gutenberg-mobile#3419

This PR introduces the param enableCaching in the fetch request method of the edit post activity to allow Gutenberg to control caching of the network requests.

To test:
Check testing instructions in the gutenberg PR.

Regression Notes

  1. Potential unintended areas of impact

These changes should only affect Gutenberg-mobile so I don't foresee any potential unintended areas of impact apart from that one.

  1. What I did to test those areas of impact (or what existing automated tests I relied on)

I verified that the requests made from Gutenberg-mobile were cached or not depending on the enableCaching param.

Additionally, this code is tested within this unit test.

  1. What automated tests I added (or what prevented me from doing so)

None.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@fluiddot fluiddot added [Type] Enhancement Gutenberg Editing and display of Gutenberg blocks. gutenberg-mobile labels Apr 26, 2021
@fluiddot fluiddot self-assigned this Apr 26, 2021
@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Apr 26, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Apr 26, 2021

You can test the changes on this Pull Request by downloading the APK here.

@fluiddot fluiddot marked this pull request as ready for review April 30, 2021 11:00
Copy link
Contributor

@jd-alexander jd-alexander left a comment

Choose a reason for hiding this comment

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

@fluiddot fluiddot added this to the 17.4 milestone May 12, 2021
@@ -7,7 +7,7 @@ buildscript {
ext.kotlin_ktx_version = '1.2.0'
ext.wordPressUtilsVersion = '1.40.0'
ext.detektVersion = '1.15.0'
ext.gutenbergMobileVersion = 'v1.52.0'
ext.gutenbergMobileVersion = 'develop-b34dd4a03c462e285aab5a391ebf84799fbba48b'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jd-alexander I'd like to confirm with you that this is the proper way to set the Gutenberg Mobile ref before merging this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

@fluiddot yes it. Once you have verified that the editor binary has been built on S3 you are good to go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I confirmed that the editor binary was uploaded, in fact, all checks are 🟢 in the commit.

Ok, thank @jd-alexander for confirming it, I'll merge it 🎊 !

@fluiddot fluiddot merged commit 023998a into develop May 12, 2021
@fluiddot fluiddot deleted the gutenberg/add/fetch-request-enable-caching branch May 12, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Editing and display of Gutenberg blocks. [Type] Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants