4.1 Migration Guide

In this document, we will see the major steps to migrate from 4.0 to 4.1.

Please check the change log for detailed list of fixes, changes and improvements introduced in 4.1.

Database migration

Migration scripts are available there.

Breaking Changes

If you have not overridden the code of BI module, you can ignore this section.

Removed classes

The class BiChartController has been removed

Removed constants

The following constants have been moved:

  • BiEndpoint.DASHBOARD_DATASETS_API

  • BiEndpoint.CHART_API

Renamed constants

The following constants have been renamed:

Old name

New name

EMBEDDED_DASHBOARD_API

DASHBOARD_EMBEDDED_API

IMPORT_DASHBOARD_API

DASHBOARD_IMPORT_API

Removed methods

The methods below have been removed:

  • BiDashboardFilterServiceImpl.getDatasets

  • BiDashboardFilterServiceImpl.hasValidValue

  • BiChartService.downloadChartImage

Split classed

The class BiSnapshotService has been split to:

  • BiSnapshotGenerationService.createSnapshot

  • BiSnapshotMessageService.createMessage

Renamed methods

The method BiChartService.getDashboardCharts has been renamed to createChartsScreenshot

Changed methods

Class

Old signature

New signature

BiSnapshotGenerationService

createBiSnapshot(BiDashboard)

createBiSnapshot(BiDashboard, User)