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.
In #2011006: Default local tasks provided by Views are broken, we fixed Views to distinguish between a default task and its parent when providing routes.
The Views UI listing page should also link to parent pages, not the default task.
Comment | File | Size | Author |
---|---|---|---|
#29 | vdc-2016939-29.patch | 11.47 KB | dawehner |
#26 | vdc-2016939-26.patch | 11.74 KB | dawehner |
#26 | interdiff.txt | 1.47 KB | dawehner |
#20 | vdc-2016939-20.patch | 11.74 KB | dawehner |
#19 | vdc-2016939-19.patch | 11.97 KB | dawehner |
Comments
Comment #1
tim.plunkettOkay, here's the fix with tests. Basically, instead of examining the display config directly, we call the pre-existing method that lets it decide what the path is.
And since we just fixed the logic of that method, everything is peachy.
Comment #2
tim.plunkett@damiankloip pointed me to #2012882: Move getDisplaysList() out of View storage class to ViewListController, and suggested I follow its lead. I agree.
I had to move some test coverage from ViewStorageTest to this new test method (since the view entity no longer has a method to find its displays paths).
Comment #3
dawehnerNice stuff!
I try to figure out why there can't be a unit test instead and I can't think of one.
Should be String::checkPlain() now.
Comment #4
tim.plunkettLet's just fix the class.
Comment #6
xjm#4: vdc-2016939-4.patch queued for re-testing.
Comment #7
damiankloip CreditAttribution: damiankloip commentedThat looks good to me.
Comment #8
alexpottNeeds a reroll
Comment #9
tim.plunkettRerolled after #2012882: Move getDisplaysList() out of View storage class to ViewListController
Comment #11
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #13
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #15
pcambra#9: vdc-2016939-9.patch queued for re-testing.
Comment #17
tim.plunkett#9: vdc-2016939-9.patch queued for re-testing.
Comment #19
dawehnerJust some additional mocking is required to add a test for that.
Comment #20
dawehnerLet me fix the use statements fast.
Comment #21
tim.plunkett#20: vdc-2016939-20.patch queued for re-testing.
Comment #22
damiankloip CreditAttribution: damiankloip commentedSeems vaguely related, but ok :) These things need to be switched out anyway.
The view entity ('instance' also maybe)?
Additional space
We go to desperate measures to unit test a method nowadays!
I don't think this message is really what's being tested?
Comment #23
dawehnerThe point is that the message is just shown/displayed if the test failed.
Comment #24
damiankloip CreditAttribution: damiankloip commentedYep, but it still seems like it's not really what the test is going. No rendering involved.
Comment #25
dawehnerIf we can't come up with a better title, let's drop it?
Comment #26
dawehnerFixed the points.
Comment #27
tim.plunkettThose fixes are clearer. Thanks for the awesome test!
Comment #28
alexpottNeeds a reroll..
Comment #29
dawehnerRerolled.
Comment #30
tim.plunkettThanks, reroll is good.
Comment #31
alexpottCommitted 2f872b8 and pushed to 8.x. Thanks!
Manually tested all looks good