-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add applied_time_extras to QueryObject (#809)
* feat(core): add applied_time_extras to QueryObject * address review comments
- Loading branch information
1 parent
16d14fd
commit 88c98cf
Showing
4 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ntend/temporary_superset_ui/superset-ui/packages/superset-ui-core/src/query/types/Time.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
import { QueryObject } from './Query'; | ||
|
||
export type TimeRange = { | ||
/** Time range of the query [from, to] */ | ||
// eslint-disable-next-line camelcase | ||
time_range?: string; | ||
since?: string; | ||
until?: string; | ||
}; | ||
|
||
export type TimeColumnConfigKey = | ||
| '__time_col' | ||
| '__time_grain' | ||
| '__time_range' | ||
| '__time_origin' | ||
| '__granularity'; | ||
|
||
export type AppliedTimeExtras = Partial<Record<TimeColumnConfigKey, keyof QueryObject>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters