mark tags as aliases
Ability to mark certain tags as aliases of other tags so it is treated as the same tag when doing searches etc would be very useful
Ability to mark certain tags as aliases of other tags so it is treated as the same tag when doing searches etc would be very useful
note: karma=1 is too low to post links - will fix later.
I looked at the code for askbot and this is referred to as a tag synonym:
github.com/ASKBOT/askbot-devel/search?q=TagSynonym
This questions also covers synonyms a bit:
askbot.org/en/question/2773/who-pre-sets-the-tags-admin-or-users/
.
There are 3 management commands you can use:
rename_tags_id
- updates all questions tagged, changing its tags with new ones.rename_tags
- takes 2 sets of tags (old and new), looks them up and calls rename_tags_id
.create_tag_synonyms
- creates a TagSynonym
then calls rename_tags
to update questions.Different approaches are possible (ranked in order of complexity):
add a form to the Tag
admin interface with new name for a tag, and use call_command
from django.core.management import call_command
call_command('create_tag_synonyms', *args, **options)
add a celery task in askbot/tasks.py
which would do the same, and rather than calling the command from the admin UI (and freeze for minutes potentially since this would be synchronous), you would just kick off a celery task which would do it for you. Job is done in the background, UI is still snappy, everybody is happy.
add admin approval workflow on top of that:
The benefit of that approach is that you would have a better audit trail.
add an admin workflow on top of that (not referring to django admin panel):
Things I saw were missing:
Post
with post_type == tag_wiki
),
To enter a block of code:
Comments