Coder Social home page Coder Social logo

Comments (16)

AlexMcArrow avatar AlexMcArrow commented on June 17, 2024

+1
Start date from 1970.
I think the problem is caused by the fact that "highcharts" receives incomplete (not valid) data.

from agiledwarf.

bcmedeiros avatar bcmedeiros commented on June 17, 2024

Same problem here... I can only get some chart when uncheck "Remaining estimate".
AlexMcArrow, maybe you're right, but what should be the complete data to highcharts?

from agiledwarf.

caiiiyua avatar caiiiyua commented on June 17, 2024

Any update for this issue ?
I got the same problem with you guys.

  1. Start date from 1970
  2. No chart is drew
  3. Disable remaining estimate could see some of task draw on the chart.

from agiledwarf.

rackom avatar rackom commented on June 17, 2024

Same for me, burn down is empty no matter what I do.

from agiledwarf.

aqwerf avatar aqwerf commented on June 17, 2024

I found the problem point, and fix it temporarily (assets/javascripts/burndown.js)
After that, burndown chart works well.

--- burndown.js.orig    2012-11-01 17:21:28.926688667 +0900
+++ burndown.js 2012-11-01 18:04:41.162685890 +0900
@@ -45,7 +45,7 @@
         {
             if (!tasks.hasOwnProperty(id))
                 continue;
-            tasks[id].created_on = Date.fromMysql(tasks[id].created_on);
+            tasks[id].sprints_tasks.created_on = Date.fromMysql(tasks[id].sprints_tasks.created_on);
         }
         // loop through changes
         for (i = 0, len = changes.length; i < len; )
@@ -59,7 +59,7 @@
             {
                 if (!tasks.hasOwnProperty(id))
                     continue;
-                var task = tasks[id];
+                var task = tasks[id].sprints_tasks;
                 // delete tasks, that was created after current date
                 if (task.created_on > dateTime)
                     delete tasks[id];
@@ -76,9 +76,9 @@
             while (dateTime == changeDate)
             {
                 if (changes[i].prop_key == 'done_ratio')
-                    tasks[changes[i].issueId].done_ratio = changes[i].value;
+                    tasks[changes[i].issueId].sprints_tasks.done_ratio = changes[i].value;
                 else
-                    tasks[changes[i].issueId].estimated_hours = changes[i].value;
+                    tasks[changes[i].issueId].sprints_tasks.estimated_hours = changes[i].value;
                 // next change
                 i++;
                 if (i >= len)

from agiledwarf.

rackom avatar rackom commented on June 17, 2024

After that fix I get this:

Could not copy /opt/redmine/plugins/AgileDwarf/assets/javascripts/burndown.js to /opt/redmine/public/plugin_assets/AgileDwarf/javascripts/burndown.js: Permission denied - /opt/redmine/public/plugin_assets/AgileDwarf/javascripts/burndown.js

And even after I put back changes still the same error.

EDIT: I have changed permissions on that file and now it is OK. But no chart displays at all now.
EDIT 2: Had to restart apache server, my fault.

from agiledwarf.

geoff-intellipharm avatar geoff-intellipharm commented on June 17, 2024

I added the the above fix by aqwerf and the charts at least display now just with no data on them.. they also start from 1970 so I am assuming that it is still broken somewhere. Does anyone know where it gets the data for this burn down? is it from the due dates set for the tasks?

Date.fromMysql = function(mysql) { if (typeof mysql != 'string') return null; // 2011/11/03 00:00:00 +0800 var t = mysql.split(/[\/ -:]/); // [Y, M, D] return Date.UTC(t[0], t[1] - 1, t[2]); };

After a bit of debugging I noticed that in the function above it returns the of the split var t incorrectly ... some of the dates passed to this function have the full UTC format with T and Z in them (i.e. 2012-11-02T12:04:00Z) perhaps it is this split that is not working correctly and hence passing invalid dates in the data for highcarts?

I don't have time to spend on fiddling with it but perhaps this might give someone some idea

from agiledwarf.

fleuryc avatar fleuryc commented on June 17, 2024

+1

from agiledwarf.

baumanno avatar baumanno commented on June 17, 2024

aqwerf's patch worked like a charm!
Apply patch (unfortunately it did'nt work with patch so had to do it manually) and restarted apache.

Thanks :)

from agiledwarf.

geoff-intellipharm avatar geoff-intellipharm commented on June 17, 2024

^^ can you state which version of redmine this patch worked with?

Thanks!

from agiledwarf.

baumanno avatar baumanno commented on June 17, 2024

Sure, we have Redmine 2.1 running and cloned AgileDwarf from here

from agiledwarf.

nrchandan avatar nrchandan commented on June 17, 2024

aqwerf's solution worked for me too! I modified the burndown.js manually and restarted redmine. Using latest redmine 2.2.3.

Now I have to look for solution to the tasks's tab problem. I don't see any tasks in that tab.

from agiledwarf.

AlexAndrascu avatar AlexAndrascu commented on June 17, 2024

Please commit this. I can confirm it's working. Thanks

from agiledwarf.

alfonsonishikawa avatar alfonsonishikawa commented on June 17, 2024

Sadly, the patch does not work with Redmine 1.3.2 :'(
Without the patch works with Redmine 1.3.2, but you must have at least one task with some "Spent Time" and "%Done > 0%". Otherwise, no graph is shown.

from agiledwarf.

julurigeethanjali avatar julurigeethanjali commented on June 17, 2024

aqwerf's solution worked for me. But when I turn off "Spent time" Remaining estimates graph is not plotted. All the tasks are having spent time. Please post a solution for this.. Thanks in advance

from agiledwarf.

acosonic avatar acosonic commented on June 17, 2024

I actually fixed it for newest version (fork) from greenius by completly removing sprints_tasks....

from agiledwarf.

Related Issues (20)

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.