Hello,

Indymedia linksunten (http://linksunten.indymedia.org) migrated from nodequeue module to flag, flag weights and draggable views. We wrote a migration module which might help people who want to migrate their nodequeues to global flags, too. Find the module attached to this posting.

We found two problems with flag weights:
1. The size of the weight field in the database is tinyint (-128 to 127) which is much too small. The horrible ui of nodequeue when it comes to big queues was the main reason to migrate to flag module.
2. The patch in #550008: Default weight on flag does not respect global flags.

We addressed both issues and attached patches which fix the problem for us.

Now we have to test if our flag_solr_bias module (which is mainly a port of the relevant parts of the nodequeue module) works as expected then we can disable nodequeue module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lyricnz’s picture

On the size of the flag weight, you have a point. However, there are a couple of issues with the patch:

- 'length' doesn't apply to int types (use size)

- default value for int fields should be 0 not '0'

- need to update hook_schema_alter also, so that schemas still match. should not modify existing/old hook_update_x (since they won't be run for existing installs)

- need to update existing table structures in a hook_update_xx not just change the base install (otherwise existing installs won't be updated)

lyricnz’s picture

Applied weight-width patches http://drupal.org/cvs?commit=480624

lyricnz’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Port to d7

lyricnz’s picture

Status: Active » Fixed

Applied to head.

Status: Fixed » Closed (fixed)

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