Skip to content

Support relative time range "until" value in date time picker.#9896

Closed
linuspahl wants to merge 11 commits intofeature/DateTimeRangefrom
feature/DateTimeRange-relative-offset
Closed

Support relative time range "until" value in date time picker.#9896
linuspahl wants to merge 11 commits intofeature/DateTimeRangefrom
feature/DateTimeRange-relative-offset

Conversation

@linuspahl
Copy link
Copy Markdown
Contributor

@linuspahl linuspahl commented Jan 13, 2021

This PR is based on #9899 which needs to be merged first

Description

With this PR we are enabling the "Until" field for the relative tab in the date time picker, this allows defining e.g. the following time range:

From: 5 minutes ago until 1 minute ago

There is one failing test, which also fails on feature/DateTimeRange.

dennisoelkers and others added 10 commits January 13, 2021 15:11
This change is implementing functionality to support an alternative way
to use relative time ranges. Instead of a `range` property that defines
the length of the range in seconds going backwards from now, it allows
defining `from` and `to` properties defining the endpoints of a range in
relation to `now`. This allows e.g. defining a range that goes from 5
minutes ago to 1 minute ago by specifying a relative range as:

```
{
  "type": "relative",
  "from": 300,
  "to": 60
}
```

Fixes #9898.
* Create component for relative time range form group
* Provide range offset on search execution
@linuspahl linuspahl force-pushed the feature/DateTimeRange-relative-offset branch from bf3b500 to 7c0b672 Compare January 14, 2021 15:28
@linuspahl
Copy link
Copy Markdown
Contributor Author

Closing in favour of #9946

@linuspahl linuspahl closed this Jan 21, 2021
@linuspahl linuspahl deleted the feature/DateTimeRange-relative-offset branch April 5, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants