Closed (fixed)
Project:
Taxonomy Autotagger
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
5 Feb 2009 at 17:55 UTC
Updated:
21 Aug 2018 at 03:31 UTC
Jump to comment: Most recent
Comments
Comment #1
sdrycroft commentedThis depends on the order that the modules are executed. It's not a huge performance hit (if any) to call the function, so I'll be leaving it in.
Comment #2
Anonymous (not verified) commentedIt is always a performance hit. If a node contains 10 taxonomies then there are 10 rows deleted and 10 rows added for each call to taxonomy_node_save(). The taxonomy_node_save() is called and should only be called by the taxonomy module. Since taxonomy is later in the alphabet sort than autotag the default module weight of zero ensures that autotag will run before the taxonomy module by default. The caveat would be that those who know how to modify the module weight need to know that autotag must run before taxonomy. This isn't a feature request, it is code improvement that must happen. Therefore, I'm stating that your ``by-design'' is incorrect design.
Comment #3
sdrycroft commentedComment #4
Anonymous (not verified) commentedYou force me to create a duplicate module just for this issue. Can we come to consensus on this?
Comment #5
sdrycroft commentedAutotag is actually weighted as taxonomy weight +10. This is so that it can alter the taxonomy form fields using hook_form_alter. You therefore can't set a node's taxonomy simply using $node->taxonomy, and relying on the taxonomy module (it has already been executed by the time autotag_nodeapi is executed).
Comment #6
Anonymous (not verified) commentedAh, I didn't know that. Would you be willing to split the UI and the DB functions into separate modules? I have no reason to use the UI parts of this module. I do have a reason to autotag the feedapi data I receive. Because all of the data for the site is created by feedapi with the potential for several hundred feeds I need the auto tagger to be as efficient as possible. The UI module would then be weighted +10 and the DB module would weighted with the default. Then my original idea would be valid.
Comment #7
sdrycroft commentedComment #8
Anonymous (not verified) commentedNot accepting this feature will force me to fork your work. We really don't want to do that.
Comment #9
sdrycroft commentedFork away fella, fork away!