Closed (won't fix)
Project:
Migrate Extras
Version:
7.x-2.x-dev
Component:
Flag
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2013 at 12:55 UTC
Updated:
2 Feb 2016 at 15:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chr.fritschHere is the patch for flag 3. Flag 2 will also be supported
https://drupal.org/node/1922484 is also in these patch
Comment #2
ultimike@chr.fritsch,
Thanks for the patch. I just expanded it a bit to include support for flags on taxonomy terms. Patch attached.
Thanks,
-mike
Comment #3
DrupalChimp commentedThe count functionality was calling for a condition that entity_id = entity_type and so therefore not working. I have changed this to entity_id
Comment #4
pianomansam commentedI can confirm that the last patch works. I'm marking this as RTBC, but some action must be taken as the description for this module says it supports the flag module with no mention that the released vesion doesn't support the latest flag module!
Comment #5
kscheirerRTBC from me too, this patch worked great. It's a little awkward to have to specify the fid of the new flag you're importing, but otherwise worked great.
Comment #6
joachim commentedThose look like they are the wrong way round.
Not related to this patch, but deleting one of Flag module's tables does NOT look like a good idea to me!!!
Comment still uses the old ID field name.
Again, not related to this patch as the problem already exists, but it's not advised to write data to Flag tables directly -- you should be going via the API.
Comment #7
berenddeboer commentedjoachim raised only one valid point, addressed in attached patch.
Comment #8
joachim commentedI'm not sure which one you mean... both 1 and 3 are relevant here, aren't they? And 2 and 4 require a new issue filing -- otherwise successive migrations and rollbacks will totally mess up the flag_counts table.
Comment #9
jcandan commented@joachim, the delete statements do not remove tables; notice the condition statements which delete specific rows during rollback.
Since Migrate Extras recommends implementation within contributed modules, I've included a destination class from the Migrate Extras module into the Flag module (https://www.drupal.org/node/2503815#comment-10810836), and implemented this latest patch to handle version 3 and below of the Flag module.
Comment #10
joachim commentedI'm happy for work on this to carry on over on Flag module. This should be closed as won't fix.