Skip to content

Allow additional filter statements in list #15

@dweebo

Description

@dweebo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions