IDateFilterConfigState
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
export interface IDateFilterConfigState
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
(BETA) (Optional) Dashboard-level overrides of the workspace-level date filter config. | |||
(BETA) (Optional) Warnings result of the date filter validation if any. | |||
(BETA) (Optional) The effective date filter config to use for the dashboard. This is obtained by merging the workspace-level config with the dashboard-level overrides. If the merged result is valid, then it is used for effective config. If the merged result is invalid, then the workspace-level config is used as fallback. | |||
boolean | (BETA) (Optional) Indicates whether the effectiveDateFilterConfig is actually reflecting the dashboard-level config overrides or it is just fallback to the workspace-level config. This is only true if the dashboard-level overrides are present AND their merge with workspace-level config resulted in valid config. |
Property details
IDateFilterConfigState.dateFilterConfigpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Dashboard-level overrides of the workspace-level date filter config.
dateFilterConfig?: IDashboardDateFilterConfig;
IDateFilterConfigState.dateFilterConfigValidationWarningspropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Warnings result of the date filter validation if any.
dateFilterConfigValidationWarnings?: DateFilterValidationResult[];
Remarks
When loading a date filter configuration, it can have some issues that we surface (e.g. having zero visible items). These are not blocking though, if any issue is encountered, the config falls back to something sane. The reason for storing this here is mainly for us to be able to show a warning when some issues are detected.
IDateFilterConfigState.effectiveDateFilterConfigpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
The effective date filter config to use for the dashboard. This is obtained by merging the workspace-level config with the dashboard-level overrides. If the merged result is valid, then it is used for effective config. If the merged result is invalid, then the workspace-level config is used as fallback.
effectiveDateFilterConfig?: IDateFilterConfig;
IDateFilterConfigState.isUsingDashboardOverridespropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Indicates whether the effectiveDateFilterConfig is actually reflecting the dashboard-level config overrides or it is just fallback to the workspace-level config.
This is only true if the dashboard-level overrides are present AND their merge with workspace-level config resulted in valid config.
isUsingDashboardOverrides?: boolean;