the actions integration calls nodequeue_queue_add() which does not exist AFAICT. I think we mean nodequeue_subqueue_add() but now we need to know what subqueue to put the node into.

what i really want is a smartqueue aware action that automatically puts a node into the applicable subqueues. i would think that this file did that since it was born for nodequeue2 but it doesn't. shall i just write this? any thoughts before i go on?

CommentFileSizeAuthor
#6 mw.patch7.98 KBmoshe weitzman
#5 mw.patch10.31 KBmoshe weitzman
#3 mw.patch6.07 KBmoshe weitzman

Comments

merlinofchaos’s picture

Yea, I moved the actions stuff into its own file, but I never updated it for the new API. It's one of the things holding up the 2.0 release, actually, as I keep forgetting this needs to be done.

moshe weitzman’s picture

Assigned: Unassigned » moshe weitzman

Assigning self. The plan is to ship with the current actions and also an action for automatically assigning nodes to all smartqueues to which they are eligible.

moshe weitzman’s picture

Title: actions call undefined function » Update actions integration for v2
Category: bug » task
Status: Active » Needs work
StatusFileSize
new6.07 KB

OK, this patch is very close. It lets admins assign multiple queues into which the node should be submitted. The node will automatically be placed into all the smartqueues for which is it eligible. Needs some more testing, so I classify as 'needs work'.

moshe weitzman’s picture

Priority: Normal » Critical
Status: Needs work » Needs review

This one is ready for review. The only blemish I know of is that the 'add to queues' action wipes any preexisting node assignments before creating new ones. Thus existing position info in a queue is lost. This could be fixed in a subsequent patch, I think.

Upgrade to critical so we don't release before fixing this.

moshe weitzman’s picture

StatusFileSize
new10.31 KB

A bit more robust if node is not eligible for any queues.

moshe weitzman’s picture

StatusFileSize
new7.98 KB

Adding an array cast in smartqueue_taxonomy_nodequeue_subqueues() for compatibility with non multiple vocabularies.

Needs review please.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! Looks pretty decent. I don't currently have actions installed, so this was only a visual review but I'm happy with the code I see.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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