Active
Project:
Rules
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Dec 2011 at 23:40 UTC
Updated:
5 Jul 2012 at 14:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
derhasi commentedA slightly modified new action, without the node_load().
Patch attached ;)
Comment #2
itangalo commentedI'm not sure about this one.
It makes sense to have a light-weight alternative to loading a bunch of nodes, but since it is now possible to use VBO to load lists of entities I think it makes more sense to use VBO. (I actually want to remove the load-nodes-with-views action from RB, now that it exists elsewhere.)
I don't know how VBO returns the stuff to Rules. Hopefully it is already a light-weight list – and then this is a non-issue. If it is a list of fully loaded nodes, then this needs a bit of thinking.
Comment #3
derhasi commentedUnfortunately VBO does an entity load:
$entities = entity_load($vbo->get_entity_type(), $ids);.But providing a similar action would sure be possible (as the entity id will always be an integer).
Should we move that issue to VBO or would you provide that action in RB?
Comment #4
itangalo commentedHm, ok – then it makes sense to add this functionality to RB (and hopefully ship it to a stable module in the future).
It would certainly be great to have this for any entity type – just as you suggest.
Comment #5
derhasi commentedOk, there's a patch for RB (with vbo as dependency for the whole "get entity type and column part).
I'll provide one later for VBO and post it as separate issue to VBO.
Comment #6
derhasi commentedThere's the VBO issue #1385222: Rules action to load all entity IDs of a view.
Comment #7
itangalo commentedAwesome!
I'm following the issue over at VBO, and if that one doesn't get accepted I think this should go into RB.
derhasi++
Comment #8
dawehnerWhat about using $view->query->get_result_entities($result), this would allow to use this with search api automatically.
Comment #9
mitchell commentedViews Rules fixes this feature request. bojanz said he will deprecate VBO's load a views list rule, and Itangalo recommended VBO over rb_views/rb_views.
We still need to update the docs to reflect this feature. I don't care that it's a separate module, I think it should be the canonical tool for the job (comments?). What's left is for Rules to account for Rules UI Factory, which I suspected #1493612: Components: set properties within plugins did, but am not sure anymore; more reviews are required.