You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have introduced custom dataset preview for our users allowing them to implement preview method. However, the documentation needs to be updated with some details regarding the expected dict schema and also add some validation for the NewTypes (eg., TablePreview).
index - An array of 0 indexed integers representing nrows
columns - An array of strings representing names of ncolumns
data - A 2D array representing data for the TablePreview
rashidakanchwala
changed the title
Update documentation and schema validation for Custom Dataset Preview
Update documentation and add schema details for Custom Dataset Preview
Jul 22, 2024
Description
We have introduced custom dataset preview for our users allowing them to implement
preview
method. However, the documentation needs to be updated with some details regarding the expected dict schema and also add some validation for the NewTypes (eg., TablePreview).Context
#1847 (comment)
Possible Implementation
preview
function should match one of the following typesKedro-Viz expects the dict should contain the below schema -
TablePreview :
index - An array of 0 indexed integers representing nrows
columns - An array of strings representing names of ncolumns
data - A 2D array representing data for the TablePreview
Example -
Catalog -
TablePreview value returned from
preview()
function -We should enforce the schema in the NewType that is introduced to avoid blank UI as mentioned here
We should document the expected {key:value} pairs.
NOTE: This ticket needs to be updated with schema details of other return types (ImagePreview, PlotlyPreview, JSONPreview) for reference
Possible Alternatives
Checklist
The text was updated successfully, but these errors were encountered: