Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Filter by number exception #31

Description

@PetrF0X

Hi,

I found it impossible to filter items by number field, when I want to achieve a constraint with no limit (for example all greater than 10). The filter should look like fieldId=10-null. When I change the float to Float in NumberInterval class and pass 10 and null to it, it looks like this. But after that the API says

APIException [status=Bad Request, error=Expected value of form x-y, description=Expected value of form x-y, parameters=null]

So I tried to outwit this error by inserting a reasonably big number, like Integer.MAX_VALUE instead of the null, but it ends up with the same exception. Even if I pass a number like 1000000000, it crashes with the same error.

But the filtering in Podio allows me to do all the stuff above. Am I doing something wrong or is the filtering here not fully implemented?

Btw. I am able to propose a pull request with some changes, but I tried many things with no good result... Can you give me some hints?

Thank you,
Petr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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