zooniverse / mico-serengeti-demo

Demonstrating use of the MICO Platform on Snapshot Serengeti data
0 stars 1 forks source link

backend support for filter & sort #4

Closed alexbfree closed 8 years ago

alexbfree commented 8 years ago

This is done right @marten ? Can you outline what functionality is available? What fields can I filter by and what is the exact syntax? Also how to specify sort order...?

alexbfree commented 8 years ago

I see we had enumerated some of the filter/sort fields in #2... are all these supported? If not can you add them?

marten commented 8 years ago

No not all of them, adding them now.

marten commented 8 years ago

Fixed by: https://github.com/zooniverse/mico-serengeti-demo/commit/6da75e3677161e08966c113e1e4e2053b8008bb3

See subjects_controller.rb for the parameters names (just normal URL params), should be pretty clear.

alexbfree commented 8 years ago

Great, thanks @marten.

It could also be useful to have things like filter by day/night, simple/complex, single/multi, etc if it's not too much extra work.

Also, can you make it so filters can be combined?

e.g. failed images where species = zebra and daytime ?

alexbfree commented 8 years ago

ok looking now

marten commented 8 years ago

Filters can be combined. The preset filters used in the report, I'll have a look if it's feasible.

alexbfree commented 8 years ago

ok great, thanks. filter by dataset is lower priority, but would be useful. i'll leave this ticket open and move it to "nice to have"

alexbfree commented 8 years ago

Also it occurs to me it might be more useful to sort by consensus view of how many animals in image, rather than mico's count of how many regions.... or we could support both. again, nice to have but not essential.

alexbfree commented 8 years ago

also what is the support for multi-species images? ?species=multi ? or ?species=warthog;otherbird ? or none of the above?

alexbfree commented 8 years ago

Added number of animals, number of species, and site_id filters in #28

Still leaving this open.

alexbfree commented 8 years ago

all done at backend.