Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2018 at 20:29 UTC
Updated:
20 Aug 2019 at 06:09 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
davps commentedComment #3
tstoecklerYes, this is a clear oversight. Patch looks perfect. We need some tests for this, though. That shouldn't be too hard, though, we already have
EntityViewsDataTest::testGetViewsDataWithEntityOperations()for example, so I think we can either expand that or add a new similar method.Comment #6
efpapado commentedWould something like this be considered enough as a test?
Comment #7
efpapado commentedSet to "needs review" and remove tag "needs tests"
Comment #8
efpapado commentedActually this should be the correct one, if the test is acceptable.
Comment #9
tstoecklerThanks @efpapado, the test looks great. To prove that it does what it says, can you upload a patch with just the test? That should then fail. That would be great.
Comment #10
efpapado commentedOK
Comment #11
davps commented@efpapado Test #10 doesn't cover described case, because the entity used in test is revisionable. Test #10 passes for all entities with/without revisions.
Let's try this test and patch.
Comment #13
efpapado commentedVery nice! I think I can set it to RTBC now :)
Comment #16
tstoecklerTestbot is retesting the wrong patch, so here's a re-upload.
Comment #18
larowlanCommitted 3a87d23 and pushed to 8.8.x. Thanks!
C/p to 8.7.x