Create a back-up of your database before continuing
How to migrate
🔥 Breaking change: This version is built with Node v12.17.0 so make sure you don’t use an older version when setting up the project. If you used thecreate-chartbrew-app CLI tool:
Architectural changes
The following section is just informational - no action required.Models changes
ApiRequest has become DataRequest. A new DataRequest object will be created for every Dataset that is trying to get data from somewhere.
All the pagination related fields (paginate, limit, etc) have been moved from Chart to DataRequest.
Moved connection_id from Chart to Dataset. Now each Dataset will be associated with a Connection.
Controllers changes
Lots of improvements here, but the most important one is theChartController now having a chart update method that compiles data from all the DatasetControllers which in turn have an obvious runRequest() method.
Routes changes
The/apiRequest route is no more and in turn is replaced by /dataRequest. The full path is: /project/:project_id/chart/:chart_id/dataRequest.
New endpoint for Dataset can now be accessed at /project/:project_id/chart/:chart_id/dataset.
Since the Dataset model has a new route, the access control module was updated to restrict unwanted access to this data. Owners, admins and editors have all the access (find, update, create and delete) and members have only find access.