Giter Site home page Giter Site logo

somatics_filter's People

Contributors

pinglamb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

somatics_filter's Issues

Custom Name on Filter

Filter accepts custom name. Can be done by accepting options[:name] by has_filter

Caching of Last Query

Save the last query in the session so as to persist the query on the next request until the user presses the clear request.

Add Save as default

We can have the save as default to have the default column view and filter view when accessing the model.

Handling for Invalid Filter Type

Currently the error dump is
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.first

Should be "Somatics::Filter::UnknownFilterType 'filter_type'

Association Filtering

Allow to set filter on association information, e.g. Post has many comments and post should accepts filter comments_count.

Preserve the Filter in Session

As in previous version, the filter query shall persist across the session so that when page refresh, the query will still persist.

Improve the documentation on the usage

There are use cases not documented (e.g. type of filter, available options). There are constraints not documented (e.g. div should have id content due to the use of Ajax).

Reduce Length of Query Params

Replace the following params name

  • somatics_filter_query => f
  • is_set => s
  • operator => o
  • value, value1, value2 => v, v1, v2

Ordering of Filters

The Filter form rendered has no order on the available filters. The order should be the same as that of has_filter calls or accepts options[:order].

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.