Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
follow up of #2004086: The Request service must be synthetic (as per #27)
Problem
The views executable factory ensures that the request is injected.
We no longer need to try/catch whether a request exists.
Proposed solution
Get rid of the try catch.
Comment | File | Size | Author |
---|---|---|---|
#10 | 2059003-views_request-9.patch | 1.19 KB | vijaycs85 |
Comments
Comment #1
dawehnerWhat should not depend on the request?
Comment #1.0
dawehnerUpdated issue summary.
Comment #2
tstoecklerI think the problem is in Drupal/views/Plugin/views/display/DisplayPluginBase::getHandlers()
Comment #3
dawehnerI guess you talk about that ...
Comment #4
znerol CreditAttribution: znerol commentedNow that #2261181: Always pass in the request into the view executable is in, can we close this issue?
Comment #5
vijaycs85Hope this issue is still valid as we need to remove the @todo and the try...catch block?
Comment #7
vijaycs855: 2059003-views_request-5.patch queued for re-testing.
Comment #8
dawehnerYeah we can indeed remove the try/catch statement.
Comment #10
vijaycs85reroll...
Comment #12
vijaycs85Reg#11: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 536870912 bytes) in /var/lib/drupaltestbot/sites/default/files/checkout/core/lib/Drupal/Core/Database/Connection.php on line 336
FATAL Drupal\system\Tests\Entity\EntityCrudHookTest: test runner returned a non-zero error code (255).
Comment #14
vijaycs85back to RTBC as per #8
Comment #15
chx CreditAttribution: chx commentedComment #16
tim.plunkettComment #17
alexpottHmmm yet the patch is rtbc :)
Comment #18
dawehner.
Comment #19
alexpottCommitted 9eba380 and pushed to 8.x. Thanks!