How the filter "type" list is defined? Can I self ...
# ui
c
How the filter "type" list is defined? Can I self define some of them?
Any one can help here? thx
g
The available type filtering options are based on the results of your query e.g. the “pipelines” type filter won’t show up if there’s no pipelines
The types themselves come from the entity types and the subType aspect - you can define your own subType aspect for entities and those will show up in the UI
c
So, do you mean to define the subType when ingest? If so, what is the parameter name?
Besides, is it the only way to search first to let the quick filter tab show? Any other way to make the quick filter tab show directly?
g
You can construct a subtype aspect using the sdk
Copy code
mcp = MetadataChangeProposalWrapper(
    entityUrn=datahub_urn,
    aspect=SubTypesClass(typeNames=['Model', 'Other subtype']),
)
datahub_graph.emit(mcp)
However, usually this functionality is built into the sources that require it
More broadly, what are you trying to do? Which source are you using, and what subtypes would you like to display?