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

Remove WP_DEBUG from local-env till WP 6.3 is released #7591

Merged
merged 5 commits into from Jul 18, 2023

Conversation

thelovekesh
Copy link
Collaborator

@thelovekesh thelovekesh commented Jul 17, 2023

Summary

Fix failing E2E tests after Gutenberg 16.2.1 release.

Checklist

  • My code is tested and passes existing tests.
  • My code follows the Engineering Guidelines (updates are often made to the guidelines, check it out periodically).

@github-actions
Copy link
Contributor

github-actions bot commented Jul 17, 2023

Plugin builds for a9338e1 are ready 🛎️!

Copy link
Member

@westonruter westonruter left a comment

Choose a reason for hiding this comment

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

LGTM

@westonruter westonruter added this to the v2.4.2 milestone Jul 17, 2023
@thelovekesh thelovekesh force-pushed the fix/failing-e2e-tests branch 4 times, most recently from 8147a67 to d001e7b Compare July 18, 2023 12:11
bin/local-env/start.sh Outdated Show resolved Hide resolved
Comment on lines +69 to +75
/*
* Disable interactivity API on core/navigation block.
* Currently this support is added by Gutenberg plugin, but it will be a part of WP 6.3 as well.
*
* @TODO: Need to revisit once Interactivity API is landed in WP Core.
*/
add_filter( 'gutenberg_should_block_use_interactivity_api', '__return_false' );
Copy link
Member

Choose a reason for hiding this comment

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

If this is added here, then the inverse should be done in unregister_embed.

Nevertheless, the gutenberg_should_block_use_interactivity_api filter passes a second argument which is the block name. Should this be checked to only disable the Navigation block?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nevertheless, the gutenberg_should_block_use_interactivity_api filter passes a second argument which is the block name. Should this be checked to only disable the Navigation block?

Do we need interactivity API enabled on any block in our case? Since this API will be added in more blocks and those modifications could be problematic, I believe we should keep it disabled for all blocks.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good

Comment on lines +111 to +114

# @TODO: Remove it once Gutnberg 16.3 is released.
# wp plugin install gutenberg --activate --force --quiet
wp plugin activate gutenberg --quiet
Copy link
Member

Choose a reason for hiding this comment

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

While not critical since this is temporary, the wp plugin install command also allows you to pass a URL to a ZIP file. So this could have been done instead of modifying start.sh:

Suggested change
# @TODO: Remove it once Gutnberg 16.3 is released.
# wp plugin install gutenberg --activate --force --quiet
wp plugin activate gutenberg --quiet
# @TODO: Remove it once Gutnberg 16.3 is released.
# wp plugin install gutenberg --activate --force --quiet
wp plugin install https://amp-wp.org/wp-content/uploads/2023/07/gutenberg.zip --activate --force --quiet

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tried it but it was adding a suffix in the plugin name something like gutenberg-Ad5fe and it was problematic.

@westonruter westonruter merged commit 0b158f6 into develop Jul 18, 2023
38 checks passed
@westonruter westonruter deleted the fix/failing-e2e-tests branch July 18, 2023 16:41
@westonruter westonruter modified the milestone: v2.4.2 Jul 18, 2023
@westonruter westonruter added the Changelogged Whether the issue/PR has been added to release notes. label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelogged Whether the issue/PR has been added to release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants