Git Product home page Git Product logo

Comments (9)

eddiedsitt avatar eddiedsitt commented on June 6, 2024 1

@arnaudbesnier updating to the latest version of forest liana (1.5.23) and it worked!

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on June 6, 2024

hi @eddiedsitt thanks for the feedback, we'll try to reproduce your issue and let you know as soon as it will be fixed

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on June 6, 2024

hey @eddiedsitt this feature is supposed to work properly, we tried to reproduce it without success.
Can you provide us a copy of the request log to help us ; something like this:

Started POST "/forest/stats/comments" for 127.0.0.1 at 2017-03-23 18:19:12 +0100
Processing by ForestLiana::StatsController#show as HTML
  Parameters: {"type"=>"Value", "collection"=>"comments", "timezone"=>"+01:00", "aggregate"=>"Count", "time_range"=>nil, "filterType"=>"and", "filters"=>[{"field"=>"customer:lastname", "value"=>"$present"}], "stat"=>{"type"=>"Value", "collection"=>"comments", "timezone"=>"+01:00", "aggregate"=>"Count", "time_range"=>nil, "filterType"=>"and", "filters"=>[{"field"=>"customer:lastname", "value"=>"$present"}]}}

from forest-rails.

eddiedsitt avatar eddiedsitt commented on June 6, 2024

here you go (not the same models but same error):

Started POST "/forest/stats/orders" for ::1 at 2017-03-24 12:26:25 -0400
Processing by ForestLiana::StatsController#show as HTML
  Parameters: {"type"=>"Pie", "collection"=>"orders", "timezone"=>"-04:00", "group_by_field"=>"order_status:name", "aggregate"=>"Count", "time_range"=>nil, "filters"=>[], "stat"=>{"type"=>"Pie", "collection"=>"orders", "timezone"=>"-04:00", "group_by_field"=>"order_status:name", "aggregate"=>"Count", "time_range"=>nil, "filters"=>[]}}
   (3.0ms)  SELECT DISTINCT COUNT(DISTINCT "orders"."id") AS count_id, order_statuses.name AS order_statuses_name FROM "orders" LEFT OUTER JOIN "order_statuses" ON "order_statuses"."id" = "orders"."order_status_id" GROUP BY order_statuses.name ORDER BY count_id DESC
Completed 500 Internal Server Error in 9ms (ActiveRecord: 3.0ms)



NoMethodError - undefined method `type' for nil:NilClass:
  forest_liana (1.5.11) app/services/forest_liana/pie_stat_getter.rb:34:in `block in perform'
  forest_liana (1.5.11) app/services/forest_liana/pie_stat_getter.rb:29:in `each'
  forest_liana (1.5.11) app/services/forest_liana/pie_stat_getter.rb:29:in `map'
  forest_liana (1.5.11) app/services/forest_liana/pie_stat_getter.rb:29:in `perform'
  forest_liana (1.5.11) app/controllers/forest_liana/stats_controller.rb:19:in `show'
  actionpack (5.0.1) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
  actionpack (5.0.1) lib/abstract_controller/base.rb:188:in `process_action'
  actionpack (5.0.1) lib/action_controller/metal/rendering.rb:30:in `process_action'

from forest-rails.

eddiedsitt avatar eddiedsitt commented on June 6, 2024

@arnaudbesnier I'm still seeing the issue.. i cant create pie charts grouped by the belongs_to class (OrderStatus)and i cant create single value charts filtered by the belongs_to class (OrderStatus)

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on June 6, 2024

hey @eddiedsitt , is it still the same stack trace? I didn't know that you also had an issue with the Value Charts. Are you consuming a MySQL database?

from forest-rails.

eddiedsitt avatar eddiedsitt commented on June 6, 2024

hey @arnaudbesnier , using Postgres and yes, also seeing it as an issue in another place, where i am trying to group coupons by casino(belongs_to)

Started POST "/forest/stats/coupons" for ::1 at 2017-03-29 14:23:59 -0400
  Parameters: {"type"=>"Value", "collection"=>"coupons", "timezone"=>"-04:00", "aggregate"=>"Sum", "time_range"=>nil, "filters"=>[], "stat"=>{"type"=>"Value", "collection"=>"coupons", "timezone"=>"-04:00", "aggregate"=>"Sum", "time_range"=>nil, "filters"=>[]}}

NoMethodError - undefined method `type' for nil:NilClass:
  forest_liana (1.5.11) app/services/forest_liana/operator_value_parser.rb:70:in `format_value'
  forest_liana (1.5.11) app/services/forest_liana/operator_value_parser.rb:52:in `get_condition'
  forest_liana (1.5.11) app/services/forest_liana/value_stat_getter.rb:17:in `block in perform'
  activesupport (5.0.1) lib/active_support/core_ext/object/try.rb:17:in `each'
  activesupport (5.0.1) lib/active_support/core_ext/object/try.rb:17:in `public_send'
  activesupport (5.0.1) lib/active_support/core_ext/object/try.rb:17:in `try!'
  activesupport (5.0.1) lib/active_support/core_ext/object/try.rb:6:in `try'

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on June 6, 2024

@eddiedsitt are you still using Forest liana 1.5.11? You should update the liana to the latest version to get the fixes (1.5.18).

Let me know if the issue persist with the latest version.

🌲🌲🌲

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on June 6, 2024

@eddiedsitt also an issue may still persist for value charts; the one you described in your latest comment. I'll investigate this tomorrow.

from forest-rails.

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.