Hey guys :waving-from-afar-left: I'm trying to co...
# ui
g
Hey guys waving from afar left I'm trying to consume custom data by defining my own JSONs, based on the sample MCEs and I'm taking a look at them to try to understand how the folder hierarchy work. I'm interested in
ChartSnapshot
, and
DashboardSnapshot
. Is there a way to have multi lever hierarchy folders, similar to
DatasetSnapshot
? In the
DatasetSnapshot
we can define the path as follows
Copy code
"urn": "urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)",
I'm having trouble doing the same in the
ChartSnapshot
, and
DashboardSnapshot
. The way I'm trying to add sub folders structure is
Copy code
"urn": "urn:li:dashboard:(metabase,compliance,chart_test)" - fails due to having 3 args
Am I missing something? Is it impossible to add more than two arguments to
urn:li:dashboard:
? Sorry for the dumb question. Thank you in advance 🙂
👀 1
g
Hey @gifted-queen-61023! This question certainly makes sense. There are some inconsistencies with the URN structure between datasets, dashboards and charts as you've noted. We are actively working on resolving these inconsistencies, and hope to get to a state soon where these URNs are no longer so different. if you want to apply hierarchy for the sake of browsing, you can emit a custom BrowsePaths aspect attached to the Chart or Dashboard that provides the hierarchy you are looking for! Otherwise, we will keep you updated about the progress on the model consistency push (cc @big-carpet-38439)
g
Thank you so much for the answer @green-football-43791. At least there is a way. I hope it is not too hard to implement. Will give it a try. Thank you so much 🙂
b
cc. @mammoth-bear-12532
l
this will be good feature for chart and dashboard.. please inform me if it will be implement… 😀
m
@lemon-receptionist-88902 you can easily set up custom hierarchies for charts and dashboards by just emitting the “BrowsePath” aspect as you desire.
l
thanks @mammoth-bear-12532 i’ll try it 👍
m
Eg. You can have a chart called “urnlichart:(looker,1234,PROD)” which lives under BrowsePath:
/prod/looker/growth/high-value/1234