First time here? Check out the FAQ!
4

Tag subscription statistics commands
 

I would like to see a couple of commands that would help me gather information on tag usage.

Tag subscription Statistics
For every tags in the system, dump the number of users that have the tag marked as interesting and ingored.
This would allow an admin to know what tags are being followed (as opposed to how the questions are classified).

manage.py tag-sub-stats
Tag              Interesting  Ignore
===============  ===========  ======
centOS                2         0
fedora                22        5
...

User Tags Usage
For every user in the system, prints out the list of ignored and followed tags

manage.py tag-user-list
User              Tags
===============  ======
joe              Int: red-hat fedora centOS 
                 Ign: ubuntu suse
bob              Int: ubuntu
                 Ign: fedora

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
Benoit's avatar
875
Benoit
asked 14 years ago

Comments

Shall be done, thanks.
Evgeny's avatar Evgeny (14 years ago)
see more comments

1 Answer

1

Made a simple command get_tag_stats (in revision 0.6.61) to be used with one of the options - either -t - per tag or -u - per user. The output format is a little different, I think yours is better for the 'tag-user-list'. I can fix that if you like.

The command is also described at the documentation page (browser cache may need to be purged - still need to fix the caching of doc pages).

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
link

Comments

1
That's fantastic! In fact, yours is better since some users have a large list of tags. Thanks
Benoit's avatar Benoit (14 years ago)
see more comments