Skip to content

Feature/null sorting#1

Draft
emolayi wants to merge 81 commits intobarendt:masterfrom
emolayi:feature/null_sorting
Draft

Feature/null sorting#1
emolayi wants to merge 81 commits intobarendt:masterfrom
emolayi:feature/null_sorting

Conversation

@emolayi
Copy link

@emolayi emolayi commented Mar 3, 2020

@barendt I would like to test this on staging, but here is the null sorting code in a separate branch.

This will be handled by the filtering strategies themselves in the future
Since we will be adding other stategy-specific files/modules soon
These can manage all of the filtering-specific logic bound to the set and the AttributeInstruction
Must manually turn on coverage and failure reports
Test both ActiveRecord and Enumerable sets
Fix the scope spec when dealing with computed scopes
Make the predicate specs work off of the filtering predicate constants
Must manually turn on coverage and failure reports
…-intersection-filtering

Fix enumerable intersection filtering when working across associations
…etup

Change the default spec running behavior
# Conflicts:
#	lib/active_set/enumerable_set_instruction.rb
#	lib/active_set/filtering/enumerable_strategy.rb
…ion-set-instructions

Feature/operation set instructions
# Conflicts:
#	lib/active_set/active_record_set_instruction.rb
#	lib/active_set/enumerable_set_instruction.rb
#	lib/active_set/filtering/active_record/set_instruction.rb
#	lib/active_set/filtering/active_record/strategy.rb
#	lib/active_set/filtering/enumerable/set_instruction.rb
#	lib/active_set/filtering/enumerable/strategy.rb
#	spec/active_set/filter/scopes_spec.rb
fractaledmind and others added 30 commits July 31, 2019 15:07
…nstructions

Allow sort params to be passed in short or long form
…tion-helpers

 Add view helpers for the range of records shown on the current page
…p to define type hints for filter attributes
…ed-type-inferencing

Feature/improved type inferencing
…ing the type inferencing when filtering a set
{ foo: :desc, bar: :asc }

or

{
  '1': {
    attribute: :bar,
    operator: :asc,
    query: 'foo'
  },
  '0': {
    attribute: :foo,
    operator: :desc,
    query: 'foo'
  }
}
{ :foo=>:desc, :bar=>:asc }

or

{
  '1': {
    attribute: :bar,
    operator: :asc,
    query: 'foo'
  },
  '0': {
    attribute: :foo,
    operator: :desc,
    query: 'foo'
  }
}
…riendly-params

Feature/form friendly params
…ether to run all possible paths or only a randomly selected path

based on an ENV variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants