GithubHelp home page GithubHelp logo

Comments (4)

exocode avatar exocode commented on June 30, 2024

same here...

from agiledwarf.

ovidiuvisan avatar ovidiuvisan commented on June 30, 2024

Same problem.

from agiledwarf.

eximius313 avatar eximius313 commented on June 30, 2024

Its simple - just apply this patch

--- adburndown_controller.rb.orig
+++ adburndown_controller.rb
@@ -54,11 +54,11 @@ class AdburndownController < ApplicationController
     @changes = []
     # restcondchanges = ActiveRecord::Base::sanitize_sql(restcondtasks)
     restcondchanges = ActiveRecord::Base.send(:sanitize_sql, restcondtasks, '')
-    ActiveRecord::Base.connection.select_all("select * from (select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from `journals` inner join journal_details on (journals.id = journal_id) inner join issues on (issues.id = journalized_id) where journalized_type = 'Issue' and property = 'attr' and (prop_key = 'estimated_hours' or prop_key = 'done_ratio') and #{restcondchanges} order by journals.id desc) a group by `issueId`, created_on, prop_key order by created_on desc").each{|row| @changes << row}
+    ActiveRecord::Base.connection.select_all("select * from (select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from journals inner join journal_details on (journals.id = journal_id) inner join issues on (issues.id = journalized_id) where journalized_type = 'Issue' and property = 'attr' and (prop_key = 'estimated_hours' or prop_key = 'done_ratio') and #{restcondchanges} order by journals.id desc) a group by issueId, created_on, prop_key, value order by created_on desc").each{|row| @changes << row}
 =begin
     select * from
     (
-      select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from `journals`
+      select old_value as value, journalized_id as issueId, prop_key, DATE(journals.created_on) created_on from journals
         inner join journal_details on (journals.id = journal_id)
         inner join issues on (issues.id = journalized_id)
         where journalized_type = 'Issue'
@@ -66,7 +66,7 @@ class AdburndownController < ApplicationController
           and (prop_key = 'estimated_hours' or prop_key = 'done_ratio')
           and #{restcondchanges}
         order by journals.id desc
-    ) a group by `issueId`, created_on, prop_key order by created_on desc
+    ) a group by issueId, created_on, prop_key order by created_on desc
 =end
     @changes = @changes.to_json
   end

Kind regards
Kamil

from agiledwarf.

robo-cbtn avatar robo-cbtn commented on June 30, 2024

Worked like a charm! Thanks eximius313

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.