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

Site Editor: fix loading order on Dotcom after 8.9.0 update #45360

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

vindl
Copy link
Member

@vindl vindl commented Sep 2, 2020

Changes proposed in this Pull Request

Fixes the broken site editor on Dotcom by making sure that experiment option is
overridden on time.

Testing instructions

  1. Make sure that you are using the site with Gutenberg edge sticker.
  2. Apply the generated patch and make sure that the site editor loads.

@vindl vindl added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Sep 2, 2020
@vindl vindl self-assigned this Sep 2, 2020
@matticbot
Copy link
Contributor

@vindl vindl requested review from a team and ockham September 2, 2020 15:36
@matticbot
Copy link
Contributor

Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com
Please ensure your changes work on WordPress.com before merging.

D48970-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2

@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@Copons
Copy link
Contributor

Copons commented Sep 2, 2020

I've applied the patch and sandboxed a site with core-site-editor-enabled and gutenberg-edge stickers.

In the front end I see dozens of these errors:

[Suppressed] Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 1 in wp-content/plugins/gutenberg-core/8.9.0-rc.1/lib/block-supports/index.php on line 63

While the Site Editor (wp-admin/admin.php?page=gutenberg-edit-site) doesn't load, I think because it gets stuck with this request:

https://public-api.wordpress.com/wp/v2/sites/{ siteId }/types/null

@vindl
Copy link
Member Author

vindl commented Sep 2, 2020

While the Site Editor (wp-admin/admin.php?page=gutenberg-edit-site) doesn't load, I think because it gets stuck with this request:

@Copons I think this is a separate issue unrelated to loading order. I tried reverting the relevant Gutenberg loading change on a sandbox and edge stickered site and it's still happening.

@Copons
Copy link
Contributor

Copons commented Sep 2, 2020

While the Site Editor (wp-admin/admin.php?page=gutenberg-edit-site) doesn't load, I think because it gets stuck with this request:

@Copons I think this is a separate issue unrelated to loading order. I tried reverting the relevant Gutenberg loading change on a sandbox and edge stickered site and it's still happening.

You're right.
I've tried removing gutenberg-edge and the null request happens all the same, but the site editor loads fine. 🤔

@vindl
Copy link
Member Author

vindl commented Sep 2, 2020

I've tried removing gutenberg-edge and the null request happens all the same, but the site editor loads fine. 🤔

There are probably multiple issues. 😕

@jeyip
Copy link
Contributor

jeyip commented Sep 2, 2020

While the Site Editor (wp-admin/admin.php?page=gutenberg-edit-site) doesn't load, I think because it gets stuck with this request:

https://public-api.wordpress.com/wp/v2/sites/{ siteId }/types/null

Looking into this now. If anyone else is investigating as well, I'd love to hop on a video call together. :)

@ockham
Copy link
Contributor

ockham commented Sep 2, 2020

I've applied the patch and sandboxed a site with core-site-editor-enabled and gutenberg-edge stickers.

In the front end I see dozens of these errors:

[Suppressed] Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 1 in wp-content/plugins/gutenberg-core/8.9.0-rc.1/lib/block-supports/index.php on line 63

This is fixed by WordPress/gutenberg#24677, which is included in the final v8.9.0 (but wasn't in the Release Candidate).

Edit: We've now updated Edge to v8.9.0, so those errors should be gone now.

Copy link
Contributor

@Addison-Stavlo Addison-Stavlo left a comment

Choose a reason for hiding this comment

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

Approving this change as it does seem to fix the issue with when this is executed. The other issues seem like they may be a separate task.

Looking at the other issue further, I seem to have one site that is loading perfectly fine after this change and another that is going into the site editor and never fully loading. Same errors on each 🤷‍♀️

@vindl
Copy link
Member Author

vindl commented Sep 2, 2020

Thanks @Addison-Stavlo, I'll merge this for now and we can continue looking into further errors.

@vindl vindl merged commit b8ccf41 into master Sep 2, 2020
@vindl vindl deleted the fix/site-editor-loading branch September 2, 2020 20:47
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[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.

6 participants