scottgonzalez / debt

DEBT: Exceptional Bug Tracking
MIT License
5 stars 2 forks source link

Determine query language #17

Open scottgonzalez opened 10 years ago

scottgonzalez commented 10 years ago

We need to figure out how to structure queries for reports.

The simple form of key=value does allow for some play in the value by allowing a special operator as the first character in the value. For example, ~ or % to signify partial string matches or > for numeric matches greater than the value. But this is kind of ghetto since the operator becomes part of the value.

We should see if there's an existing spec for this.

jzaefferer commented 10 years ago

One spec I know about that covers querying is OData. Here's the v3 documentation for querying collections: http://www.odata.org/documentation/odata-v3-documentation/odata-core/#1023_Querying_Collections

There's a mapping of 'dataview' options to OData params here: http://view.jqueryui.com/grid/grid-spf/dataview-odata.js