Comments (2)
I would like to extend this to "general tag management features for moderators". In addition to renaming tags, one should also be able to zap tags which shouldn't exist.
from askbot-devel.
I looked at the code for askbot and this is referred to as a tag synonym:
https://github.com/ASKBOT/askbot-devel/search?q=TagSynonym
see also this question on the forums:
https://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 callsrename_tags_id
.create_tag_synonyms
- creates aTagSynonym
then callsrename_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 usecall_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:
- user suggests a synonym,
- somewhere down the line, and administrator approves the request,
- upon clicking approve, the celery task is started.
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):
- in site, admin would go to tags list,
- click on a tag to change,
- form to rename the tag.
Things I saw were missing:
- adding information about a tag (
Post
withpost_type == tag_wiki
),- as long as you create a question with a tag, it creates it / associates the tag, and couldn't see where you edit the tag info / description / synonyms.
- no template / url for accessing a tag wiki,
- when clicking on the tag list, then on a tag, it takes you to the questions tagged with it, and there are no links to the tag wiki.
- no template for tag synonyms, link to synonyms is also missing from the tags template
from askbot-devel.
Related Issues (20)
- Hostname should accept localhost HOT 1
- Static should not copy all files.
- Login page shows 404. HOT 2
- Publish release 0.11.3 HOT 11
- Unable to import osqa content by using the command `askbot_add_osqa_content` HOT 20
- Login system seems broken with emails HOT 5
- Adopt imports to allow usage of newer jinja HOT 2
- Incorrect Dependency Handle for django-appconf HOT 1
- Strings have changed for translation
- LDAP login error
- OpenID Connect login HOT 9
- Error when user has custom avatar
- Status of brazilian portuguese translation HOT 2
- Timeline for supporting Django 4.2? HOT 2
- there is an issue in unsubscribe when user matching email is not found
- Post matching query does not exist on answer revision page.
- 'WSGIRequest' object has no attribute 'HEAD'
- value too long for type character varying(200) on edit user profile post request
- question rss feed: Control characters are not supported in XML 1.0
- facebook login does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from askbot-devel.