Changes between Version 21 and Version 22 of TracStatsPlugin


Ignore:
Timestamp:
Jul 3, 2016, 8:09:24 AM (8 years ago)
Author:
figaro
Comment:

Added configuration features from project page

Legend:

Unmodified
Added
Removed
Modified
  • TracStatsPlugin

    v21 v22  
    55== Description
    66
    7 The TracStatsPlugin adds a Stats tab to the Trac project. Underneath this tab can be found statistics about subversion, wiki, and ticket system.
     7This plugin adds a Stats tab to the Trac project that shows project statistics about subversion, wiki, and ticket system.
    88
    99Key features:
     
    2929    * Latest tickets reported, changed
    3030 * Drill down by author or path within the repository for more information.
    31  * Works with SQLite, MySQL, and PostgreSQL database backends.
     31
     32This plugin works with SQLite, MySQL and PostgreSQL database backends. This plugin has been tested with Subversion, Mercurial and Git version control systems.
    3233
    3334== Source
     
    5051}}}
    5152
     53== Configuration
     54
    5255The `STATS_VIEW` permission is used to control access to the statistics pages.
     56
     57In addition, an optional "project root" within your repository can be configured as the base for all projects and source code statistics:
     58
     59{{{#!ini
     60[stats]
     61root = path/to/projects
     62}}}
     63
     64If you use Git, ie the GitPlugin for Trac, and are not able to see any of the code statistics, you likely need to configure it to cache the repository to make it work:
     65
     66{{#!ini
     67[git]
     68cached_repository = true
     69persistent_cache = true
     70}}}
     71
     72You might need to run `trac-admin <project-env> repository resync <reponame>` after the change.
    5373
    5474== Example
     
    5676Some screenshots from a recent export of the Trac repository, showing a few of the features:
    5777
     78'''Project statistics'''
     79
    5880[[Image(stats.png)]]
     81
     82'''File statistics'''
     83
    5984[[Image(stats-files.png)]]
     85
     86'''Tag cloud based on ticket activity'''
     87
    6088[[Image(stats-cloud.png)]]
    6189
    62 == Author/Contributors ==
     90== Author/Contributors
    6391
    6492'''Author:''' [wiki:mrjbq7] [[BR]]