As shown in the screenshot below, it is possible to add a primary key that is not one of the fields selected in the table. This leads to a blank screen when attempting to view the table (See error below from the console).
Uncaught (in promise) TypeError: Cannot read property 'details' of undefined
at t.<anonymous> (Visualisation.js:46)
at t.type (memoize-one.esm.js:28)
at t.value (Visualisation.js:429)
at Pi (react-dom.production.min.js:3785)
at Ti (react-dom.production.min.js:3776)
at Li (react-dom.production.min.js:3960)
at qa (react-dom.production.min.js:5514)
at Ya (react-dom.production.min.js:5536)
at Ps (react-dom.production.min.js:5958)
at Es (react-dom.production.min.js:5925)
Steps to reproduce:
Upload a datasource with more than one column.
Create a datalab, choose a primary key and choose fields, but do not include the primary key as a field.
Save and you get the blank screen. (The datalab was still saved when you navigate back to the dashboard. One can still go into the datalab's settings to fix it by adding the primary key to the fields).
Possible solutions:
Add the primary key as a field automatically. (As soon as a primary key is selected, it becomes a field too).
Add a check before the saving event and throw an exception on the UI if primary key is not part of the fields.
As shown in the screenshot below, it is possible to add a primary key that is not one of the fields selected in the table. This leads to a blank screen when attempting to view the table (See error below from the console).
Steps to reproduce:
Possible solutions: