Problem/Motivation
Shortcut is being removed. We should not depend on that in BigPipe testing. BigPipePlaceholderTestCases.php:148 onwards tests a shortcut module path.
Steps to reproduce
Proposed resolution
Do not depend on shortcut paths in Bigpipe.
Additionally it turned out that even though the shortcut path was tested, shortcut was not even enabled and due to lack of testing of the embeddedHtmlResponse this was masked. So adding additional assertions for that too.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
LLM disclosure
LLM was used to identify and resolve this issue, was human reviewed though.
| Comment | File | Size | Author |
|---|
Issue fork drupal-3614948
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3614948-remove-use-of
changes, plain diff MR !16553
Comments
Comment #2
gábor hojtsyComment #4
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #5
quietone commentedComment #6
gábor hojtsyIntriguingly I did not find where the test enabled the Shortcut module to begin with, so this may be a "false pass" either way :) Could use review from someone that knows about bigpipe :)
Comment #7
smustgrave commentedFrom what I can tell testBigPipe never checks the contents of the embeddedHtmlResponse from BigPipePlaceholderTestCases. So it could be anything and it probably won't fail. Do we leave as is with this fix or update the tests to do more?
Comment #8
gábor hojtsyAdded an assertion method for the hash and embeddedHtmlResponse, let's see how this works.
Comment #9
gábor hojtsyComment #10
smustgrave commentedLooking good, super small comments on the MR.
Comment #11
gábor hojtsyResolved those. Awaiting fresh test results :) Hope no random fails :D
Comment #12
smustgrave commentedThose JavaScript tests are everywhere. But feedback appears to be addressed here. Thanks!
Comment #15
catchCommitted/pushed to main and 11.x, thanks!