Hello

Problem/Motivation

I am configuring the cache for Open Atrium and I need Flag 7.x-3.x and Open Atrium has 7.x-2.1+3-dev. The module that needs it is Authcache 7.x-2.0-beta4+6-dev that is the recommended. Since I am going to try to use the submodule Authcache Flag, I will report if I have any problem.

Proposed resolution

Update to that version.

Remaining tasks

Testing that has not problems and make the pacth.

User interface changes

None.

API changes

None, but changing the version.

CommentFileSizeAuthor
#5 oa_core-update_flag_3-2474195-5.patch944 bytesmpotter
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

candelas’s picture

I just saw in the releasse that for upgrading:

The upgrade from Flag 7.x-2.x to 7.x-3.x must be made in isolation of any other module upgrades, as other upgrades will cause database errors due to Flag's tables being renamed. #1870300: Upgrade from Flag 2.x to Flag 3.x can fail if other update hooks clear cache

candelas’s picture

Title: Update to Flags 7.x-3.6 » Update to Flag 7.x-3.6
Issue summary: View changes

Correcting my English

candelas’s picture

drush updb
 Flag  7300  Rebuild the class registry due to classes moving files.                 
 Flag  7301  Rename {flag_content} table to {flagging} and {flags} table to {flag}.  
 Flag  7302  Rename database columns on the {flag} table.                            
 Flag  7303  Rename database columns on the {flagging} table.                        
 Flag  7304  Rename database columns on the {flag_counts} table.                     
 Flag  7305  Convert flag roles to permissions.                                      
 Flag  7306  Convert flag view modes settings.
Do you wish to run all pending updates? (y/n): y
Performed update: flag_update_7300                                                                                                [ok]
Performed update: flag_update_7301                                                                                                [ok]
Performed update: flag_update_7302                                                                                                [ok]
Performed update: flag_update_7303                                                                                                [ok]
Performed update: flag_update_7304                                                                                                [ok]
Performed update: flag_update_7305                                                                                                [ok]
Performed update: flag_update_7306                                                                                                [ok]
Flags which are defined in code with hook_flag_default_flags() or Features need to be re-exported.                                [status]
'all' cache was cleared.                                                                                                          [success]
Finished performing updates.    
candelas’s picture

I don't know how to solve
Flags which are defined in code with hook_flag_default_flags() or Features need to be re-exported.

so I revert to the previous version and wait if someone can give advice.

mpotter’s picture

Most of Atrium was already upgraded to use Flag 3.x in the previous 7.x-2.611 release. However, the API change for hook_flag becoming hook_flag_flag and hook_flag_unflag was missed. This patch fixes that.

mpotter’s picture

Status: Active » Fixed

Committed to 38dc30f.

mpotter’s picture

NOTE: Other fixes for Flag 3.x are in the patch for #2842518: Command buttons shown for archived sections and in the latest dev version of the Trash Flag module (will be release 1.1 soon)

Status: Fixed » Closed (fixed)

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