Hey everyone, trying to extend metadata model defi...
# getting-started
c
Hey everyone, trying to extend metadata model defined in https://datahubproject.io/docs/metadata-modeling/extending-the-metadata-model/. Added a custom aspect to dataset entity. When the added aspect contains an
array
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):
Copy code
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
Copy code
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?