Comments (9)
@arnaudbesnier updating to the latest version of forest liana (1.5.23) and it worked!
from forest-rails.
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.
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.
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.
@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.
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.
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.
@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.
@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)
- The automated release is failing 🚨
- Rails autoloading usage deprecation
- Server crashed in production when defining an action with a specific endpoint
- ActionController::InvalidAuthenticityToken when using hooks
- Missing httpclient dependency? causing server crash HOT 3
- Cannot drop db with Ruby 3.1.3 version
- Multi select delete issue. if i remove an element it removes 2 elements from the list
- [Feature request] Testing against multiple Ruby/Rails versions
- How do I stop the ForestAdmin Background Process HOT 4
- Issue with backslash on forestadmin-schema.json HOT 1
- Notification when overriding a default route HOT 1
- How do you run specs on ForestLiana collections and controllers ? HOT 1
- Associations with restrict_with_error not handled properly HOT 3
- Invalid smart_action_id requirement
- Fails under Rails 7.1 : logger.rb:18:in `to_s': wrong number of arguments HOT 7
- Upgrade from v7.2.1 to v8.0.17 failed HOT 1
- Question about polymorphic associations support HOT 2
- Usage of rails secrets raises deprecation warnings on Rails 7.1+ HOT 2
- Unable to create record with polymorphic field HOT 3
- New polymorphic update breaks exporting id and type now just blank HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forest-rails.