To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #570 (closed enhancement: fixed)

Opened 17 months ago

Last modified 7 months ago

Categories should be able to merge by renaming one to another

Reported by: rickybanister Owned by: dordille
Priority: critical Milestone: 1.5
Component: apostrophePlugin Version: trunk
Keywords: 1.5rc Cc: johnnyoffline
Symfony version: 1.4

Description

This has been completed at the project level for a specific project. The ability to merge categories by renaming should be moved into the trunk.

Change History

Changed 17 months ago by rickybanister

  • keywords 1.5rc added

Changed 17 months ago by rickybanister

We should add an Apostrophe modal confirmation message.

Before executing a merge it should check and ask:

"The tag "blah" already exists. Do you want to merge these tags?
(Merge Tags) (Cancel)

Changed 17 months ago by rickybanister

  • priority changed from major to critical

Changed 17 months ago by rickybanister

  • type changed from defect to enhancement

Changed 17 months ago by rickybanister

  • owner changed from dordille to tboutell
  • status changed from new to assigned

This should also be accounted for in the Tags admin.

Changed 16 months ago by geoffd

  • owner changed from tboutell to dordille

Dan, please update this ticket and close if it is done.

Changed 16 months ago by dordille

  • status changed from assigned to closed
  • resolution set to fixed

Both categories and tags have merging implemented now. Merging happens automatically when you rename a category or tag to an already existing one. All objects linked to these objects are merged together.

Changed 7 months ago by tboutell

  • status changed from closed to reopened
  • resolution fixed deleted

This got built but it looks like a listener was never added to the blog plugin. I'm doing that now.

Changed 7 months ago by tboutell

  • status changed from reopened to closed
  • resolution set to fixed

This works now in [3920] [3921] [3922]

Dan created a great infrastructure for this but it never made it to the blog plugin. I also extended it to the people plugin since MO needs that.

All plugins that add tables that are related to categories must listen to the a.merge_category event. For an easy way to respond to it, look at the apostrophePeoplePluginConfiguration and PluginaPersonToACategoryTable classes. Note that this code correctly handles tricky situations such as merging A to B where both categories already have the person in question.

Note: See TracTickets for help on using tickets.