Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
17 Jan 2013 at 13:19 UTC
Updated:
29 Jul 2014 at 21:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damiankloip commentedProbably needs tests too.
Comment #2
dawehnerThere are just nitpicks:
ups :)
This should be better protected
Should we just ignore it, if it's not needed/used here?
Isn't the label already runned through t()?
A comment might be helpful.
Comment #4
damiankloip commentedThanks for the review! Here are those changes, see interdiff.
Comment #5
damiankloip commentedSorry, complete fail on the protected properties, here we go.
Comment #7
damiankloip commentedComment #8
dawehnerUps
Comment #9
damiankloip commentedHere are some tests too, I have also modified entity_test module to use a bundle too.
Comment #11
damiankloip commentedNeed to fix the other tests that rely on entity_test module.
Comment #12
dawehnerYou might be able to improve that comment.
Additional isn't the type a scalar value, like "test_1" aka. a string?
I'm wondering whether we could use unit tests for that.
He, at least that's honest :)
Comment #13
damiankloip commentedI have re worked this to use node instead for now. Adding a bundle to entity_test module requires quite alot of work with alot of tests having to be changed.
Here is the handler with tests using node as the base table, and some custom bundles. I think this means we can't use unittests too, which is a shame.
What do you think?
Comment #14
dawehnerLet's get that in, we have tests.
We can always try to rework existing tests to use DrupalUnitTests
Comment #15
chx commentedWhy are you calling the bundle filter entity type filter? You are not filtering on entity type (that wouldn't make any sense!)
Comment #16
chx commentedSorry x-post but also , IMO this is CNW.
Comment #17
damiankloip commentedYep, fair comments. I have changed the filter class to Bundle, and also the test class to FilterEntityBundleTest.
Comment #18
dawehnerNoone knows yet what will happen if we have proper typed data support in views, but for now this looks really good!
Comment #19
dawehnerFix title
Comment #20
chx commentedThat's great.( I almost got a heart attack from the earlier title thinking Views invented some super base that can be filtered on entity type. Phew.)
Comment #21
damiankloip commentedAHAHA :) Sorry about that...
Comment #22
dawehnerSo that's what people always wanted to have: support for UNION.
Comment #23
catchLooks great. I had to write one of these in Drupal 7 for a custom entity type and couldn't believe it didn't exist there. Committed/pushed to 8.x.
Comment #24
damiankloip commentedSuper.
Comment #25
tim.plunkettThis was never retested after #1822458: Move dynamic parts (view modes, bundles) out of entity_info(), and broke HEAD.
git revert 44cedfa
Comment #26
webchickRolled back.
Comment #27
webchickComment #28
damiankloip commentedHere is a patch that unbreaks it.
Comment #29
damiankloip commentedok, a new patch.
Comment #30
damiankloip commentedoops
Comment #32
damiankloip commented#29: 1891214-29.patch queued for re-testing.
Comment #33
dawehnerI guess we can move that back to RTBC?
Comment #34
catch#29: 1891214-29.patch queued for re-testing.
Comment #35
catchLet's try that again. Committed/pushed to 8.x.