Changes between Version 19 and Version 20 of AnalyzePlugin
- Timestamp:
- Dec 11, 2011, 5:25:41 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AnalyzePlugin
v19 v20 129 129 130 130 * {{{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 definehow 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. 132 132 133 133 where {{{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: