I would like to be able to filter people by created_date in order to find new activists.
I started a branch to add an optional filter parameter to list but realized it gets complicated quickly. Multiple filter options with and and or are supported. For example
filter=(email_address eq 'a@example.com' or email_address eq 'b@example.com') and created_date lt '2018-01-01'
Before I get too far wanted to get your thoughts on how you'd like to support this (if at all).
I see that the special method People#find_by_email uses filtering, so some possible options are
- add another special method
People#find_created_since(Date)
- add a generic
filter parameter to list but support just a single field (that is the path I started down)
- add a generic
filter parameter to list that supports multiple fields and joins with and and or
I'm happy to contribute this feature, just wanted to get feedback before working on it.
I would like to be able to filter people by created_date in order to find new activists.
I started a branch to add an optional
filterparameter tolistbut realized it gets complicated quickly. Multiple filter options withandandorare supported. For exampleBefore I get too far wanted to get your thoughts on how you'd like to support this (if at all).
I see that the special method
People#find_by_emailuses filtering, so some possible options arePeople#find_created_since(Date)filterparameter tolistbut support just a single field (that is the path I started down)filterparameter tolistthat supports multiple fields and joins withandandorI'm happy to contribute this feature, just wanted to get feedback before working on it.