Code Monkey home page Code Monkey logo

solidus_admin_insights's People

Contributors

bansalakhil avatar jaspreet21anand avatar jitendra avatar nimish13 avatar nishant-cyro avatar sechix avatar tanmay3011 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solidus_admin_insights's Issues

Error in solidus 2.2 timestamp

Hello,
I have following errors executing insights reports
PG::UndefinedFunction: ERROR: function date_format(timestamp without time zone, unknown) does not exist

ERROR: function ifnull(numeric, numeric) does not exist LINE 1: ...ent", 0 AS "promotion_discount

PG::UndefinedFunction: ERROR: function strcmp(character varying, unknown) does not exist LINE 1: ...ct_name", "products"."slug" AS "product_slug", IF(STRCMP("va... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.

Errors in solidus master

Hi,
I update solidus and I have several errors:
Fisrts :'<%= content_tag(div, class: 'hidden report-data', data: { report_data: @report_data_json } {} %>
'
The second one is that stay with loading symbol and not finalize.
And third, I get this error in products report:

´PG::GroupingError: ERROR: column "spree_line_items.updated_at" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ...ame", "product_slug", spree_variants.sku ORDER BY "spree_lin... ^ : SELECT spree_products.name as product_name, spree_products.slug as product_slug, spree_variants.sku as sku, sum(quantity) as sold_count FROM "spree_line_items" INNER JOIN "spree_orders" ON "spree_orders"."id" = "spree_line_items"."order_id" INNER JOIN "spree_variants" ON "spree_variants"."id" = "spree_line_items"."variant_id" INNER JOIN "spree_variants" "variants_spree_line_items_join" ON "variants_spree_line_items_join"."id" = "spree_line_items"."variant_id" INNER JOIN "spree_products" ON "spree_products"."id" = "variants_spree_line_items_join"."product_id" WHERE ("spree_products"."name" ILIKE '%') AND "spree_orders"."state" = 'complete' AND ("spree_orders"."completed_at" BETWEEN '2018-01-01 00:00:00' AND '2018-12-31 23:59:59.999999') GROUP BY "spree_line_items"."variant_id", "product_name", "product_slug", spree_variants.sku ORDER BY "spree_line_items"."updated_at" DESC, sold_count asc'

Mysql Group by exception

Sequel::DatabaseError (Mysql2::Error: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 't1.number' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by)

Tests

Thanks for sharing this extension. Would be great to have some unit tests for the reports

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.