Skip to content

$lte on date filters does not contain search date #1121

@davidenke

Description

@davidenke

As mentioned in #77 way back then, date ranges should be possible:

Seems like a bug then. The intention was to have ?created=$gte:{FROM}&created=$lte:{TO} working.

Sorry to bring this up so many years later, but I'm still having trouble setting up a data range filter like this.

While ?created=$gt:{FROM}&created=$lt{TO} is working just fine, like the expression ?created=$btw:{FROM},{TO}, this is still not working for me ?created=$gte:{FROM}&created=$lte:{TO}.

As mentioned, using $btw works for dates, but it is exclusive. But humans might want an inclusive filter, which requires either setting a combination of $gte and $lte or manipulating the date constraints.

Edit: I initially blamed ?created=$gt:{FROM}&created=$lt{TO} to not be working, but it does. Looks like combining $lte or $gte with dates just does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions