Ilya

Results 8 comments of Ilya

Same bug here Ransack: 2.1.1 Database: MySQL Rails: 5.2.2 Ruby: 2.5.3 Also ransack sorting ignores aliases.

I found this bug too. This behavior is caused by this code (https://github.com/solidusio/solidus/blob/master/core/app/models/spree/product/scopes.rb#L65) ``` add_search_scope :in_taxon do |taxon| includes(:classifications). where("spree_products_taxons.taxon_id" => taxon.self_and_descendants.pluck(:id)). order(Spree::Classification.arel_table[:position].asc) end ``` And there is not a...

An interesting thing this bug occurs only when `.value(:hash)` is used. When `.hash` used all is okay. ``` require "dry/schema" SCHEMA1 = Dry::Schema.Params do optional(:integer).value(:integer) optional(:hash).value(:hash) end # => #"key?(:integer)...

It does not depend on the name of the keys, I got it with completely different keys, in the example I used them for clarity :)

After a little research I found interesting place https://github.com/dry-rb/dry-schema/blob/f67d54ec0c884bd6261c508018bbf1def756635c/lib/dry/schema/macros/value.rb#L46 At this point call `optional(:hash).value(:hash)` ignored Only calls with block will processed `optional(:hash).value(:hash) {}` So if I write `optional(:hash).value(:hash) {}` then...

@athix Of course, I will re-check this bug soon and open a new issue