Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Anonymous (not verified)
Created:
12 Apr 2014 at 14:17 UTC
Updated:
9 Mar 2022 at 12:27 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
Anonymous (not verified) commentedComment #2
andypostNot sure about @todo and type => tag, but the patch at least allows open settings form
PS: Faced in #1498660: Refactor taxonomy entity properties to multilingual
Comment #3
andyposta bit more fixes
PS: no idea how to write test
Comment #4
Anonymous (not verified) commentednot everything needs a test.
Comment #5
alexpott@ivanjaros: yes not everything needs a test but something that exposes a list of views to users does.
Comment #6
alexpottOh and recreating this error is easy.
admin/structure/views/nojs/handler/VIEW_ID/default/relationship/tid_representativeyou'll see the bug plain as day.Comment #7
andypostThere's 2 views tests named
RelationshipRepresentativeNodeTestthey uses
test_groupwise_termandtest_groupwise_userviewsComment #8
alexpottre #7 but the tests never visit the configuration forms so we don;t have test coverage of the bug.
Comment #9
jhodgdonThis is a critical issue, or at least Major. If you go to Views UI and try to view the settings for a GroupwiseMax relationship field (such as Representative Node for a Taxonomy Term view), you get a fatal PHP error.
And yes it needs a test.
Comment #10
marthinal commentedWorking on the test.
Comment #11
marthinal commentedThe test "test_groupwise_term_ui" basically is a copy of "test_groupwise_term".
This is a first attempt :) . There's an Exception when we apply the changes. (Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "cache.views_results"." at /Users/josemanuelrodriguez/workspace/drupal8/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php line 303)
Comment #12
marthinal commentedMissing the view, sorry.
Comment #15
marthinal commentedAbout the Exception (#11) we can avoid it removing the line "\Drupal::cache('views_results')->delete($cid);"
So we need to test this too.
I was talking about this bug with tstoeckler and we are not sure if we really need it...
Comment #16
marthinal commentedI was talking with dawhener and let's use "cache.data" instead.
Comment #18
marthinal commentedAdded test for the cache.
Comment #19
dawehnerAwesome!
+1
oh wow, this is damn old code!
Comment #20
alexpottCommitted 2c11d0e and pushed to 8.0.x. Thanks!