I'm using the latest dev code, so relationships are possible in views.
However, I have a required relationship on a specific queue in a site that has multiple queues.
The expected behavior would be that only items in that queue would appear in the view given that the relationship has a specific queue selected.
However, all items from all queues appear in the results.
I found a work-around to this by adding a filter on '(Content queue) Entity subqueue: Queue' and selecting the specific queue again there.
This is not expected behavior though.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | patch-subqueue_relationship_condition.diff | 1.1 KB | fractile81 |
Comments
Comment #2
fractile81 commentedLooking at the Views query, the relationship doesn't appear to be filtering on the entityqueue's bundle. I wonder if this is due to bundle being in
entity_subqueue__items, but not inentity_subqueue?I'm just getting into D8 here at DrupalCon, but I want to dive in and help turn this alpha into a release. Unless I notice someone else chip in, I'm going to just keep cracking away at figuring this out.
Comment #3
fractile81 commentedPatch attached that adds a condition to the view query when using a relationship. Appears to fix this problem.
Comment #4
fractile81 commentedComment #6
amateescu commentedCommitted to 8.x-1.x. Great work!
Comment #8
johnpicozziAlong the same lines here I am using the D8 Alpha4 version of the module and I am not able to have views exclude nodes that appear in a node queue. I have a view that I want to pull in everything other than what's in the queue and if I add the relationship (not requiring it for all) and then add a filter for appears in queue equal to no. The view doesn't return any results. Am I doing something wrong?
Comment #9
josebc commentedI noticed another symptom for this issues, this is related to the way entityqueue relates to a certain queue
ill will open a different issues and reference it here
Comment #10
josebc commented