Hi, is there a way to rename a Domain after create...
# ingestion
f
Hi, is there a way to rename a Domain after created? I've created a domain with a long string but it get's broken in the main page of datahub, and I wish to rename it to a shorter string. Thanks.
h
Hi @flaky-airplane-82352, You can change domain's display name by using updating its domainProperties aspect with shorter name. This is possible using DatahubRestEmitter in python. I think, its not possible from UI just yet.
Copy code
emitter = DatahubRestEmitter("datahub url e.g. <http://localhost:8080>")

mcp = MetadataChangeProposalWrapper(
    aspect=DomainPropertiesClass(
        name="new shortname",
        description="original description"
    ),
    aspectName="domainProperties",
    entityType="domain",
    entityUrn="<domain urn copied from domains page>",
    changeType=ChangeType.UPSERT
)

emitter.emit_mcp(mcp)
f
Thank you @hundreds-photographer-13496!