Code Monkey home page Code Monkey logo

tracticketgraph's Introduction

TracTicketGraph

A graph illustrating ticket changes over time for Trac 0.12/1.0.

The plugin is also available on PyPI.

tracticketgraph's People

Contributors

csnover avatar mikesherov avatar neonstalwart avatar rjollos avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tracticketgraph's Issues

UTC vs user time and worked tickets

I made some changes that will allow the change in time not to affect the tickets as well as the visualization of the "worked" tickets.

Plus I also added some functionality like:

  • display 30, 60, 120, 365 days (30 default)
  • the legend is outside the grab
  • ability to stack the graph
  • clicking on a label on the legend will hide that part of the graph
  • fixed the open tickets to be based on the end of the day for that day and not on the next day

My pull is here:
https://github.com/EffEPi/TracTicketGraph

Ticketgraph lets you enter a much too high number of days

The ticketgraph will show the last 90 days by default which is perfectly fine. But you are able to enter bigger numbers like 10000. In my test I could not go further than 738632 on https://core.trac.wordpress.org/ticketgraph?days=738632. Amazing to see the bunch of closed tickets around the year 200! I'd expect the graph to simply show all he has instead of going back in time, if you enter numbers like these.

Regarding Ticket: https://core.trac.wordpress.org/ticket/58388

They told me to come here.

Looks like this can easily be patched around
\ticketgraph\ticketgraph.py, L. 98

days_back = req.args.getint('days', self.default_daysback)

by something like

max_days_back = 3000  # Maximum number of days allowed

days_back = req.args.getint('days', self.default_daysback)

if days_back > max_days_back:
    days_back = max_days_back

Legend doesn't need "tickets" in all the lables

Since the graph is labeled "Ticket Graph", I think it's highly redundant to have the four labels in the legend be "Closed tickets", "New tickets", "Reopened tickets" and "Open tickets". Striking 'ticket' from each of these makes it more concise, and obscures less of the graph data.

Uncaught TypeError: Cannot read property 'msie' of undefined

Seeing this error with Trac 1.2.1:

jquery.flot.min.js:1 Uncaught TypeError: Cannot read property 'msie' of undefined
    at c (jquery.flot.min.js:1)
    at new B (jquery.flot.min.js:1)
    at Function.C.plot (jquery.flot.min.js:1)
    at HTMLDocument.<anonymous> (ticketgraph.js:10)
    at j (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.J (jquery.js:2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.