Skip to content

travisfischer/SetFromConfigPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SetFromConfigPlugin

We wrote this Trac plugin because we needed a way to provision and maintain multiple Trac instances via configuration management like salt-stack or puppet. This Trac plugin extends the trac-admin utility to provide the 'set from config' command. This command makes it possibly to declare ticket priority, severity, resolution, ticket_type, and component options in the Trac config (trac.ini) instead of using the interactive admin web panel or trac-admin tools.

This plugin requires a section labeled [set-from-config-plugin] in the projects trac.ini. If this section is missing, this plugin will not perform any changes.

The following shows a complete and valid configuration snippet:

[set-from-config-plugin]

priority = P1,P2,P3,P4,P90x
severity = High,Medium,Low,Blocker
resolution = fixed,wont-fix,cancelled,invalid,works-for-me,release,
ticket_type = task,bug,project,ad-hoc,request,qa

component_owner = username 
component = webapp/www,webapp/blog,iphone/buttons,iphone/fonts

If an option, like severity, is missing from the configuration section, it is skipped. Any options added to this section that are not mentioned above will be ignored.

Warning:

Always back up your database before trying new plugins. The SetFromConfigPlugin alters a Trac project's database to reflect the option listed.

If an option entry is:

  • in the database but not in the configuration, it will be removed.
  • not in the database but is in the configuration, it will be added.

This plugin has great test coverage. : )

About

Trac SetFromConfigPlugin set priority, severity, resolution, ticket_type, and component from trac.ini instead of trac-admin commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%