Skip to content

Conversation

@ockham
Copy link
Contributor

@ockham ockham commented Feb 19, 2024

What?

WIP. Potential follow-up to #59021.

Why?

For more consistency in some of our helpers.

How?

By stripping the mock Navigation root block from the return value of block_core_navigation_insert_hooked_blocks.

The downside is that it's now less consistent with block_core_navigation_set_ignored_hooked_blocks_metadata. We might want to figure out a way around that; possibly by inlining the latter into the function that calls it.

Testing Instructions

See e.g. #59021.

@ockham ockham added [Feature] Block API API that allows to express the block paradigm. [Type] Code Quality Issues or PRs that relate to code quality [Block] Navigation Affects the Navigation Block labels Feb 19, 2024
@ockham ockham self-assigned this Feb 19, 2024
@ockham
Copy link
Contributor Author

ockham commented Feb 19, 2024

cc/ @tjcafferkey -- Curious if you think this makes sense or if we should abandon it 🙂

@github-actions
Copy link

Flaky tests detected in 5207cac.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7960966803
📝 Reported issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Navigation Affects the Navigation Block [Feature] Block API API that allows to express the block paradigm. [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants