Changes between Version 8 and Version 9 of AnalyzePlugin


Ignore:
Timestamp:
Dec 11, 2011 2:49:04 AM (3 years ago)
Author:
robguttman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnalyzePlugin

    v8 v9  
    126126 
    127127 * {{{can_analyze(self, report)}}} - returns {{{True}}} if this analysis can analyze the given report 
    128  * {{{get_solutions(self, db, request args)}}} - return a dict of {{{name}}} and {{{data}}} fields, or a list of these that define how to fix the detected issue. 
     128 * {{{get_solutions(self, db, args)}}} - return a dict of {{{name}}} and {{{data}}} fields, or a list of these that define how to fix the detected issue. 
    129129 
    130 where {{{data}}} is any serializable (to JSON) python object that contains all of the data needed to automatically fix the problem.  If this {{{data}}} object is a dict of ticket fields and their new values (or a list of these), then the default {{{fix_issue()}}} method will automatically apply the fix upon user command.  If your fix is more involved, you can override this method: 
     130where {{{args}}} are the request args and {{{data}}} is any serializable (to JSON) python object that contains all of the data needed to automatically fix the problem.  If this {{{data}}} object is a dict of ticket fields and their new values (or a list of these), then the default {{{fix_issue()}}} method will automatically apply the fix upon user command.  If your fix is more involved, you can override this method: 
    131131 
    132132 * {{{fix_issue(self, db, data, author)}}} - fix the issue using the data that was returned earlier from {{{get_solutions()}}}.