#58557 closed task (blessed) (fixed)
Backport: Navigation Fallbacks
Reported by: | get_dave | Owned by: | isabel_brison |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | gutenberg-merge has-patch has-unit-tests dev-reviewed |
Focuses: | Cc: |
Description (last modified by )
Tracking ticket for work to backport Navigation Fallbacks code.
See https://github.com/WordPress/gutenberg/issues/51077 and https://github.com/WordPress/wordpress-develop/pull/4891
Change History (31)
#2
@
18 months ago
- Milestone changed from Awaiting Review to 6.3
- Type changed from defect (bug) to enhancement
This ticket was mentioned in PR #4648 on WordPress/wordpress-develop by @get_dave.
18 months ago
#3
- Keywords has-patch added
@spacedmonkey commented on PR #4648:
18 months ago
#4
@getdave Friendly reminder, changes like this need unit tests. Please ensure to backport / add unit tests.
@get_dave commented on PR #4648:
18 months ago
#5
This will also need the unit tests that currently reside in:
- https://github.com/WordPress/gutenberg/blob/trunk/phpunit/class-wp-classic-to-block-menu-converter-test.php
- https://github.com/WordPress/gutenberg/blob/trunk/phpunit/class-wp-rest-navigation-fallback-controller-test.php
- https://github.com/WordPress/gutenberg/blob/trunk/phpunit/class-wp-navigation-fallback-gutenberg-test.php
@spacedmonkey commented on PR #4648:
18 months ago
#6
All classes, methods and function will need a @since 6.3.0
.
@get_dave commented on PR #4648:
18 months ago
#7
@getdave Friendly reminder, changes like this need unit tests. Please ensure to backport / add unit tests.
Yep thanks. We have a suite already and I'm working out how/where to port them now.
I'm also trying to work out whether this filter makes sense or if there is a centralise point of registration of schemas in Core where I can just inline this.
#8
follow-up:
↓ 9
@
18 months ago
Is anyone able to advise how I fix the failing tests?
tests/qunit/fixtures/wp-api-generated.js
Example - https://github.com/WordPress/wordpress-develop/actions/runs/5331982052/jobs/9660558806?pr=4648
@get_dave commented on PR #4648:
18 months ago
#10
Looks like I need to add a new mock here 🤔
@ramonopoly commented on PR #4648:
18 months ago
#11
I think maybe we just need to regenerate qunit/fixtures/wp-api-generated.js
?
npm run test:php -- --filter WP_Test_REST_Schema_Initialization
I'll take a look
This ticket was mentioned in PR #4713 on WordPress/wordpress-develop by @ramonopoly.
18 months ago
#12
- Keywords has-unit-tests added
Adds files relating to Navigation fallbacks for the block editor.
This PR brings https://github.com/WordPress/wordpress-develop/pull/4648 over in its entirity but with updated fixtures.
Props @getdave
Trac ticket: https://core.trac.wordpress.org/ticket/58557
@ramonopoly commented on PR #4648:
18 months ago
#13
With the updated fixtures in https://github.com/WordPress/wordpress-develop/pull/4713
LGTM
I'll have this one closed in favour of https://github.com/WordPress/wordpress-develop/pull/4713 and assign @getdave props
Thanks again, everyone!
@mikeschroder commented on PR #4648:
18 months ago
#14
Thank you!!
@isabel_brison commented on PR #4648:
18 months ago
#15
Closing in favour of https://github.com/WordPress/wordpress-develop/pull/4713
#16
@
18 months ago
- Type changed from enhancement to task (blessed)
Converting to a task as this can ship after beta 1 is released.
This ticket was mentioned in PR #4733 on WordPress/wordpress-develop by @ramonopoly.
18 months ago
#18
Following up on feedback from https://github.com/WordPress/wordpress-develop/pull/4713#pullrequestreview-1499992051
Let's use the found_posts property.
Props @mukeshpanchal27
Trac ticket: https://core.trac.wordpress.org/ticket/58557
@ramonopoly commented on PR #4733:
18 months ago
#19
Never mind, this doesn't work found_posts is 0 in the tests.
Will return for a follow up another time.
This ticket was mentioned in PR #4813 on WordPress/wordpress-develop by @get_dave.
17 months ago
#20
Updates original backport from https://core.trac.wordpress.org/ticket/58557 to also allow developers to opt out of the auto-creation of the fallback.
Why? Because if we automatically create something (even if it requires interaction with the WP site or editor) we should allow folks to opt out of that.
Trac ticket: https://core.trac.wordpress.org/ticket/58750
This ticket was mentioned in Slack in #core by mukeshpanchal27. View the logs.
17 months ago
#23
@
17 months ago
This ticket was discussed during the bug scrub. @get_dave @isabel_brison As we are on 6.3 RC1 day, is there anything left to do on this for 6.3, or is it ready to close?
This ticket was mentioned in PR #4891 on WordPress/wordpress-develop by @ramonopoly.
17 months ago
#25
Backports the following Gutenberg PR:
cc @scruffian @getdave
Trac ticket: https://core.trac.wordpress.org/ticket/58557
#27
@
17 months ago
- Keywords dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
#28
@
17 months ago
- Keywords dev-reviewed added; dev-feedback removed
PR approved for backport to branch 6.3 (second committer sign-off).
Adds files relating to Navigation fallbacks for the block editor.
Trac ticket: https://core.trac.wordpress.org/ticket/58557