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

Update toolkit plugin to v2.7 #46018

Closed
wants to merge 4 commits into from
Closed

Conversation

noahtallen
Copy link
Contributor

@noahtallen noahtallen commented Sep 29, 2020

Changes proposed in this Pull Request

Update toolkit plugin to v2.7.

Includes these changes (see https://github.com/Automattic/wp-calypso/commits/master/apps/editing-toolkit)

cc @roo2 @arcangelini @krymson24

Testing instructions

  • Ensure the above PRs work on both simple and atomic sites.

@noahtallen noahtallen self-assigned this Sep 29, 2020
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 29, 2020
@noahtallen noahtallen added the Editing Toolkit For issues and PRs that affect the Editing Toolkit plugin label Sep 29, 2020
@matticbot
Copy link
Contributor

matticbot commented Sep 29, 2020

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

D50376-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

This diff should not be used any longer. see the diff at the end of the page instead.

@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.

@glendaviesnz
Copy link
Contributor

glendaviesnz commented Sep 29, 2020

@noahtallen what is the normal process if we get another change backed up behind an editing toolkit update? eg. we have another Newspack block update to bring in - is it easier to just merge this first and then create another PR to bring that in? PR for this version update at #46023

@noahtallen
Copy link
Contributor Author

Nope, I think we can go ahead and bring that update into this PR, given it's mainly about updating newspack anyways! I haven't had time to test this yet, so anyone can feel free to incorporate, test and ship this along with that update :)

arcangelini
arcangelini previously approved these changes Sep 30, 2020
Copy link
Contributor

@arcangelini arcangelini left a comment

Choose a reason for hiding this comment

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

Tested, looks good to me. Thanks @noahtallen

@glendaviesnz glendaviesnz force-pushed the update/toolkit-plugin-2.7 branch from de72fc2 to b2197d2 Compare September 30, 2020 19:45
@noahtallen noahtallen force-pushed the update/toolkit-plugin-2.7 branch from 0de3bd1 to f77df87 Compare September 30, 2020 20:53
Copy link
Contributor Author

@noahtallen noahtallen left a comment

Choose a reason for hiding this comment

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

The teamcity unit tests in D50376-code are consistently indicating an issue in the wpcom blog posts rest API controller, so we cannot move forward with this until that's fixed.

@glendaviesnz
Copy link
Contributor

glendaviesnz commented Sep 30, 2020

@arcangelini looks like the broken tests may be related to Automattic/newspack-blocks@dd69bc2, commenting out some of this got rid of at least 3 of the failing tests

@arcangelini
Copy link
Contributor

Oof, ok I am pinging @laurelfulford because it looks like she worked on that PR. Hopefully this isn't caused by the one line of code I added min-width: 0; hahaha.

@laurelfulford
Copy link
Contributor

Thanks for the ping on this! I'm far from an expert on Teamcity tests, but I did some digging:

Two of the errors look like they have to do with the rest fields that have been added since the last update to the Newspack Blocks -- the tests don't expect them to be there.test_get_item_schema() needs to be updated to account for 2 more fields, and test_get_post_edit_context_properties() needs to be updated to include the names of the fields, newspack_blocks_post_format, and newspack_post_sponsors. Here's an example from a past update: 208502-wpcom.

The date errors I'm less sure about -- did they stop happening when the Newspack Blocks update was removed, too?

@noahtallen
Copy link
Contributor Author

For the time being, I will have to revert the newspack update. We need to create a new PR which updates newspack, and make sure that we merge updates to the WordPress.com unit tests at the same time as we deploy the WordPress.com code which includes the newspack update.

I'm reverting because I'm unsure how long it will take to sort out the tests, and there a lot of unreleased fixes to the editing toolkit plugin.

@jeffersonrabb
Copy link
Contributor

For the time being, I will have to revert the newspack update. We need to create a new PR which updates newspack, and make sure that we merge updates to the WordPress.com unit tests at the same time as we deploy the WordPress.com code which includes the newspack update.

Hi @noahtallen I'm looking into updating those tests but it will be a little while, so reverting is a good strategy for now.

@noahtallen noahtallen force-pushed the update/toolkit-plugin-2.7 branch from f77df87 to dbb0a88 Compare October 8, 2020 19:19
@noahtallen noahtallen dismissed arcangelini’s stale review October 8, 2020 19:24

the code is out of date, and we are no longer including newspack changes

Copy link
Contributor Author

@noahtallen noahtallen left a comment

Choose a reason for hiding this comment

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

Everything is testing well for me on both simple and atomic sites, so I think this is ready to go 👍

@apeatling apeatling self-requested a review October 8, 2020 20:15
apeatling
apeatling previously approved these changes Oct 8, 2020
@noahtallen
Copy link
Contributor Author

NOTE: avoid deploying again until performance issues are addressed.

@noahtallen noahtallen force-pushed the update/toolkit-plugin-2.7 branch from 98617b9 to 431cde0 Compare October 8, 2020 22:37
@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.

D50900-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

@noahtallen
Copy link
Contributor Author

superseded by #46444

@noahtallen noahtallen closed this Oct 14, 2020
@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 Oct 14, 2020
@sirreal sirreal deleted the update/toolkit-plugin-2.7 branch January 14, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Editing Toolkit For issues and PRs that affect the Editing Toolkit plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants