colossal-autumn-78301
05/03/2023, 3:35 PMarray
then in the UI the dataset page becomes white blank
page. And, when we include a struct
in the pdl
, the UI shows the new aspect
as tab
in the dataset but the fields in the struct are not shown.
Examples (note- these pdls are in separate files):
PDLs:
namespace a.b.c
record TestRec{
name: string
desc: optional string
}
record NewAspectRecord {
name: string
isRequired: boolean
description: string
restrictions: optional array[string]
testRec: TestRec
}
the aspect pdl is
namespace a.b.c
@Aspect = {
"name": "newAspect",
"autoRender": true,
"renderSpec": {
"displayType": "tabular", // or properties
"key": "newRecords",
"displayName": "Dataset Consumption Contract"
}
}
record NewAspect {
rules: array[NewAspectRecord]
}
Here, due to `1`: restrictions
in NewAspectRecord
the UI goes blank for the dataset, 2
: due to the testRec
of type TestRec
, the UI is there but TestRec
does not get rendered?
PS: we do add to entity-registry.yaml and build and install works.
Are we doing something wrong?