Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Support filtering based on numeric values #377

Closed
alexmuller opened this issue Nov 26, 2014 · 0 comments
Closed

Support filtering based on numeric values #377

alexmuller opened this issue Nov 26, 2014 · 0 comments

Comments

@alexmuller
Copy link
Contributor

Given a request like this:

/data/data-group/data-type?flatten=true&collect=costs%3Asum&group_by=dept&start_at=2014-04-01T00%3A00%3A00Z&period=quarter&end_at=2014-07-01T00%3A00%3A00Z

Which returns something like this:

{
  "data": [
    {
      "_count": 1.0,
      "_end_at": "2014-07-01T00:00:00+00:00",
      "_start_at": "2014-04-01T00:00:00+00:00",
      "costs:sum": 765432,
      "dept": "bat"
    },
    {
      "_count": 1.0,
      "_end_at": "2014-07-01T00:00:00+00:00",
      "_start_at": "2014-04-01T00:00:00+00:00",
      "costs:sum": 0.0,
      "dept": "baz"
    },
    {
      "_count": 1.0,
      "_end_at": "2014-07-01T00:00:00+00:00",
      "_start_at": "2014-04-01T00:00:00+00:00",
      "costs:sum": 123456,
      "dept": "bar"
    },
    {
      "_count": 1.0,
      "_end_at": "2014-07-01T00:00:00+00:00",
      "_start_at": "2014-04-01T00:00:00+00:00",
      "costs:sum": 7896,
      "dept": "foo"
    }
  ]
}

It would be useful to apply a filter parameter of costs:sum > 0 to exclude the 0 value from the response.

@Krenair Krenair closed this as completed Mar 24, 2021
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