Ticket query renderer extension point
|Reported by:||Peter Suter||Owned by:|
I propose adding a new extension point
class ITicketQueryRenderer(Interface): """Extension point interface for components that add HTML renderers of ticket query results.""" def get_ticket_query_formats(self): """Return a list of `(format, format_label)` tuples.""" def render_ticket_query(self, context, query, query_string, tickets, format): """Render the ticket query in the specified format."""
The query page could then allow selecting one of the available implementations from a dropdown and display the query results in various different ways.
The existing tables view could become the default implementation. The existing progress bars from the roadmap could provide a second implementation. New third-party plugins could provide further alternate views like pie charts, burndown charts, Kanban boards etc.
The roadmap could perhaps also reuse these renderers to display the milestones in the various ways.
The TicketQuery plugin could also use these renderers, selected by the existing
format parameter (which already allows
(Third-party visualization plugins already exist of course, but this extension point would allow them to be instantly deeply integrated with both the ticket query system, and the roadmap, make them usable in any wiki content via macro for free.)
Possibly the batch editing could be separated out.
The existing ITicketGroupStatsProvider extension point could perhaps eventually be deprecated and removed. In its current form it seems to enable only very limited possibilities, potentially also provided by this new extension point.
Change History (26)
by , 4 years ago
by , 21 months ago
by , 19 months ago