Skip to content

Allow date math rounding to round up and down #90605

@pgomulka

Description

@pgomulka

Description

at the moment rounding for date maths always rounds "down" the date part, but round up the time part.
For example for 2022 it would round down to 2022-01-01T23:59:59.
This issue is to consider allowing to round down and up separately.
so for round down 2022 to - 2022-01-01T00:00:00
and round up 2022 to - 2022-12-31T23:59:59

This will allow the following search query:

          query:
            range:
              date:
                gte: 1500 #1500-01-01T00:00:00
                lte: 1500 #1500-12-31T23:59:59

to be interpreted as covering all year.

the same for:

       query:
            match:
              date:
                query: "1500"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions