mtr-cherish / cherish

http://cherish.meteor.com
MIT License
24 stars 3 forks source link

Search needs fixing #138

Closed iamlasse closed 9 years ago

iamlasse commented 9 years ago

Search is currently not working, is not integrated with filter, and initiative images disappear when searching.

iamlasse commented 9 years ago

getInitiativeImage seems to return nothing when in a search

jeffshaver commented 9 years ago

I believe I found the issue. It is because when searching, we aren't returning a real mongo cursor. we are returning an object. The reason this is a problem is because getInitiativeImage is a collection helper (which it should be) and if you return something that isn't a cursor, we don't get to use the collection helpers...

/client/templates/initiatives/initiatives.js is the file that needs to be fixed.

jeffshaver commented 9 years ago

The easiest way to get around this is just to avoid the search source package altogether. It doesn't allow returning a reactive cursor. I think we should find a different search package or just implement on our own (not difficult).