gorgeous-dinner-4055
03/09/2022, 8:53 PM<http://localhost:9002/notebook/urn:li:notebook:(querybook,123456)/features>
I can see the metadata item on the main page
I.e. <http://localhost:9002>
but the browse fails to load anything
I.e. <http://localhost:9002/browse/notebook>
I suspect there's a wiring that I am missing somewhere that makes the entities discoverable when going through browse. Anyone know where that occurs?
Thanks!green-football-43791
03/09/2022, 8:56 PMgreen-football-43791
03/09/2022, 8:56 PMgreen-football-43791
03/09/2022, 8:57 PMgorgeous-dinner-4055
03/09/2022, 8:58 PMgorgeous-dinner-4055
03/09/2022, 8:59 PMgorgeous-dinner-4055
03/09/2022, 8:59 PMgreen-football-43791
03/09/2022, 9:00 PMgreen-football-43791
03/09/2022, 9:00 PMgorgeous-dinner-4055
03/09/2022, 9:02 PMgreen-football-43791
03/09/2022, 9:03 PMgorgeous-dinner-4055
03/09/2022, 9:07 PMrecord NotebookInfo includes CustomProperties, ExternalReference {
/**
* Title of the Notebook
*/
@Searchable = {
"fieldType": "TEXT_PARTIAL",
"enableAutocomplete": true,
"boostScore": 10.0
}
title: string
... other fields here, skipping to make it more concise
}
green-football-43791
03/09/2022, 9:08 PMgreen-football-43791
03/09/2022, 9:08 PMgreen-football-43791
03/09/2022, 9:08 PMgorgeous-dinner-4055
03/09/2022, 9:16 PMsh-4.2# curl -X GET "localhost:9200/notebookindex_v2/_search?pretty" -H 'Content-Type: application/json' -d'
{
"query": {
"match_all": {}
}
}
'
{
"took" : 21,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 1.0,
"hits" : [
{
"_index" : "notebookindex_v2",
"_type" : "_doc",
"_id" : "urn%3Ali%3Anotebook%3A%28querybook%2C123456%29",
"_score" : 1.0,
"_source" : {
"urn" : "urn:li:notebook:(querybook,123456)",
"title" : "Test",
"customProperties" : [ ],
"hasDescription" : true,
"description" : "test",
"tool" : "querybook",
"browsePaths" : [
""
]
}
}
]
}
}
green-football-43791
03/09/2022, 9:16 PMgreen-football-43791
03/09/2022, 9:16 PMgreen-football-43791
03/09/2022, 9:18 PMgorgeous-dinner-4055
03/09/2022, 9:20 PMisSearchEnabled = () => true;
isBrowseEnabled = () => true;
isLineageEnabled = () => true;
getAutoCompleteFieldName = () => 'name';
getPathName = () => 'notebook';
getEntityName = () => 'Notebook';
getCollectionName = () => 'Notebook';
(Sorry, I know debugging like this is hard 😞 )green-football-43791
03/09/2022, 9:21 PMgorgeous-dinner-4055
03/09/2022, 9:22 PMgorgeous-dinner-4055
03/09/2022, 10:05 PMgreen-football-43791
03/09/2022, 10:05 PMgreen-football-43791
03/09/2022, 10:23 PMgreen-football-43791
03/09/2022, 10:23 PMgreen-football-43791
03/09/2022, 10:23 PMgreen-football-43791
03/09/2022, 10:23 PM@dataclasses.dataclass
class DatahubKey:
def guid(self) -> str:
nonnull_dict = {k: v for k, v in self.__dict__.items() if v}
json_key = json.dumps(
nonnull_dict,
separators=(",", ":"),
sort_keys=True,
cls=DatahubKeyJSONEncoder,
)
md5_hash = hashlib.md5(json_key.encode("utf-8"))
return str(md5_hash.hexdigest())
@dataclasses.dataclass
class PlatformKey(DatahubKey):
platform: str
instance: Optional[str]
@dataclasses.dataclass
class DatabaseKey(PlatformKey):
database: str
@dataclasses.dataclass
class SchemaKey(DatabaseKey):
schema: str
green-football-43791
03/09/2022, 10:24 PMgreen-football-43791
03/09/2022, 10:25 PM@dataclasses.dataclass
class NotebookKey(PlatformKey):
notebook_id: str
green-football-43791
03/09/2022, 10:25 PMgreen-football-43791
03/09/2022, 10:25 PMnamespace com.linkedin.metadata.key
@Aspect = {
"name": "notebookKey"
}
record NotebookKey {
/**
* Unique guid for container
*/
guid: optional string
}
green-football-43791
03/09/2022, 10:26 PMgreen-football-43791
03/09/2022, 10:26 PMgorgeous-dinner-4055
03/10/2022, 11:56 PMgreen-football-43791
03/10/2022, 11:56 PMlittle-spring-72943
08/09/2022, 12:15 PMbrainy-intern-50400
08/29/2022, 3:51 PM