Changes between Version 19 and Version 20 of AnalyzePlugin


Ignore:
Timestamp:
Dec 11, 2011, 5:25:41 AM (12 years ago)
Author:
Rob Guttman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnalyzePlugin

    v19 v20  
    129129
    130130 * {{{can_analyze(self, report)}}} - returns {{{True}}} if this analysis can analyze the given report
    131  * {{{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.
     131 * {{{get_solutions(self, db, args)}}} - return a dict of {{{name}}} and {{{data}}} fields, or a list of these, that each define a solution option for how to fix the detected issue.
    132132
    133133where {{{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: