Simon Lejeune
10/11/2023, 11:56 AM@gooddata/sdk-ui-dashboard
I've just noticed today that "sort insight" isn't working in the embedded dashboard but is actually working on the gooddata website.
Exemple, i chose to sort an pie insight by the values in alphabetical order, it is working in the gooddata website but not in the embedded react dashboard.
Is there a configuration somewhere to make it work? is it a known limitation? i can't find anything in the documentation
BestJulius Kos
10/11/2023, 12:39 PMSimon Lejeune
10/11/2023, 12:39 PM"@gooddata/sdk-backend-tiger": "^9.1.0",
"@gooddata/sdk-ui-dashboard": "^9.1.0",
Simon Lejeune
10/11/2023, 7:21 PMFrancisco Antunes
10/11/2023, 8:12 PMRadek Novacek
10/12/2023, 9:08 AMSimon Lejeune
10/12/2023, 12:41 PMRadek Novacek
10/12/2023, 1:54 PMSimon Lejeune
10/12/2023, 3:40 PMconst GoodDataDashboardConfig: DashboardConfig = {
isReadOnly: true,
mapboxToken,
menuButtonItemsVisibility: {
pdfExportButton: false,
saveAsNewButton: false,
},
settings: {
enableDescriptions: true,
enableDrilledInsightExport: false,
},
};
I tried removing and creating another insight with a sort and it is really not working at my end.Simon Lejeune
10/16/2023, 7:54 AMRadek Novacek
10/16/2023, 7:57 AMSimon Lejeune
10/16/2023, 9:19 AMSimon Lejeune
10/16/2023, 12:33 PMSimon Lejeune
10/16/2023, 12:35 PMSimon Lejeune
10/16/2023, 12:41 PMsettings: {
enableDescriptions: true,
enableDrilledInsightExport: false,
},
actually fixes the issue 😱
the sort is now applied correctly. any idea how i can still pass those props?Simon Lejeune
10/16/2023, 12:54 PMenableChartsSorting
set to true in the settings props.
This is not intuitive because it is the default value, and overriding only two of the settings should not remove the default values, in my opinion.
But my bug is fixed, thanks @Radek Novacek for having a look!Simon Lejeune
11/16/2023, 9:39 AMsettings
of a gooddata dashboard config, i found this trick that does the work:
const customSettings = {
commonSettingsWrapper: (settings: ISettings) => ({
...(settings ?? {}),
enableNewHeadline: true, // add here you extra other settings
}),
};
const res = withCustomWorkspaceSettings(
/*z your backend factory such as tigerFactory, ..*/,
customSettings,
);