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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jastraat created an issue. See original summary.

fractile81’s picture

Looking 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 in entity_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.

fractile81’s picture

Patch attached that adds a condition to the view query when using a relationship. Appears to fix this problem.

fractile81’s picture

Status: Active » Needs review

  • amateescu committed 30453c9 on 8.x-1.x authored by fractile81
    Issue #2718237 by fractile81: Views 'Limit to a specific entity queue'...
amateescu’s picture

Status: Needs review » Fixed

Committed to 8.x-1.x. Great work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

johnpicozzi’s picture

Along 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?

josebc’s picture

I 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

josebc’s picture