influxdata / influxdata/ui

Tech Debt: Make url parameters upper and lower relatively parseable

Open
#3,424 3 comments 0 reactions 0 assignees View on GitHub
team/dumplings team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

### Background

Michael Hall answered [this Stack Overflow](https://stackoverflow.com/a/70340160/92446) question relating to relative time ranges for `upper` and `lower`.

We have business logic to only allow dates as `upper` and `lower`. Only `lower` is allowed to be a relative date.

### See
- The [dashboard ranges action creators](https://github.com/influxdata/ui/blob/master/src/dashboards/actions/ranges.ts#L106)
- Which in turn call [the dashboard time utils](https://github.com/influxdata/ui/blob/master/src/dashboards/utils/time.ts#L59-L66
- Which then call [the duration utils](https://github.com/influxdata/ui/blob/master/src/shared/utils/duration.ts#L14-L23) to determine if the dates are parseable

### Acceptance Criteria
- Make `upper` and `lower` operate on relative dates

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.