React cumulio dashboard migrations
Table of contents
From 3.x.x to 4.x.x
- Filters are represented as a
FilterGroup
array instead of a Filter
array. FilterGroup
is an object containing the list of filters and AND/OR condition describing their relation. FilterGroup
also can have child groups to support complex filtering logic
{
id: string;
condition: 'and' | 'or';
filters: Filter[];
subGroups: FilterGroup[];
origin: string;
datasetId?: string;
itemId?: string;
}
{
expression: string;
parameters: [];
properties: {
id: string;
origin: string;
type: string;
itemId: string;
ignore?: string[];
}
}
getFilters()
method response and changedFilters
event data now contain filters as an array of FilterGroup
objects instead of Filter
objects
getFilters(): Promise<FilterGroup[]>
{
changed: FilterGroup[];
filters: FilterGroup[];
}
From 2.x.x to 3.x.x
From 1.x.x to 2.x.x
- All methods that were called on dispatched to store shall now be called on component ref (Which can be obtained using
useRef to obtain a ref
).
chartId
is now called itemId
, charts-rendered
is now called items-rendered
- All events are now of the format
{ data: { ...eventData } }
, eventData
is of the format
{
dashboardId?: string;
dashboardSlug?: string;
itemId?: string;
language: string;
name: string;
screenMode: string;
type: string;
dimensions?: object;
changed?: [];
filters?: [];
item?: string;
origin?: string;
object?: string;
data?: object;
}
- getFilters now returns an array of filters.
[...objectOfFilters]
, objectOfFilters
is of the format
[{
expression: string;
parameters: [];
properties: {
id: string;
ignore?: string[];
origin: string;
type: string;
viz: string;
}
}]