Hi

When exporting nodequeues, the subqueue count is still exported along with it, resulting in the nodequeue always being overridden.

There seems to have been introduced a condition around unsetting the nodequeue subqueue count here: https://www.drupal.org/node/1338000.

We do not have the smartqueue-module installed or enabled, so it seems that there are other modules that provide the subqueue count as a part of the nodequeue. It should never be a problem just unsetting it, as that will not fail even if it is not there.

The original unset of the subqueue count was introduced here: https://www.drupal.org/node/1666548

Comments

meghait created an issue. See original summary.

mian3010’s picture

StatusFileSize
new532 bytes

Attached patch

john cook’s picture

Status: Active » Needs review
john cook’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new19.57 KB
new11.75 KB

If tested this manually and got the following results:

Before

After

Looking at the patch, it's just removing a conditional around an unset command to clean up the array that is output. As // We don't care how many subqueues are in here and they get created automatically, I don't believe this would cause problems elsewhere.

The test bot is having trouble running the tests, but I'm going to mark it as RTBC anyway and wait for the tests to fail/pass later.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: nodequeue_subqueue-2552511-2.patch, failed testing. View results

john cook’s picture

Issue tags: +Needs reroll

The patch failed to apply, so adding “needs reroll” tag.

john cook’s picture

Issue tags: -Needs reroll
StatusFileSize
new584 bytes

Just rerolled the patch by mian3010 in comment #2.

john cook’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 7: nodequeue_subqueue-2552511-7.patch, failed testing. View results

john cook’s picture

Status: Needs work » Needs review
StatusFileSize
new1022 bytes
new143.82 KB

As the subqueues parameter is now left out of the export, the test needed changing to remove this data from the test case.

The other errors appear to be coming from Nodequeue, hence the "Waiting for branch to pass" messages in the test queue.

Excerpt from the end of the test run showing exception from Nodequeue and successful test revert test:

renatog’s picture

Status: Needs review » Reviewed & tested by the community

#10 really makes sense

renatog’s picture

Status: Reviewed & tested by the community » Fixed

committed to the dev branch

Thank you so much

  • RenatoG committed 8f19c02 on 7.x-1.x authored by John Cook
    Issue #2552511 by John Cook, mian3010, RenatoG: Nodequeue subqueue count...

Status: Fixed » Closed (fixed)

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