Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Custom filters not working? #14

Open
BobWalsh opened this issue Mar 12, 2013 · 2 comments
Open

Custom filters not working? #14

BobWalsh opened this issue Mar 12, 2013 · 2 comments

Comments

@BobWalsh
Copy link

Trying to apply a custom filter to reduce the size/latency of a response.

After configuring Serel,

this works: Serel::Question.pagesize(3).fromdate(1356998400).tagged('simple_form').get
and Serel::Question.pagesize(3).fromdate(1356998400).tagged('simple_form').filter(:withbody).get works.

On the SE API /questions page this works:

https://api.stackexchange.com/docs/questions#fromdate=2013-01-01&order=desc&sort=activity&tagged=simple_form&filter=!-MBf-2IprHLnCh08L)HogtE1SgfIQvyaB&site=stackoverflow

but neither

Serel::Question.pagesize(3).fromdate(1356998400).tagged('simple_form').filter("!-MBf-2IprHLnCh08L)HogtE1SgfIQvyaB").get

or using :"!-MBf-2IprHLnCh08L)HogtE1SgfIQvyaB" or :!-MBf-2IprHLnCh08L)HogtE1SgfIQvyaB work.

How do I pass my custom filter to Serel?

@thomas-mcdonald
Copy link
Owner

Fixed this issue locally so the request succeeds (for some reason the code would only handle singular nested responses), but I need to do some work on how to handle associations with the same name as a method on the instance when they are populated.

@BobWalsh
Copy link
Author

BobWalsh commented Jul 7, 2013

Thanks Thomas! Keep up the good work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants