Use Case / Problem
At the moment, the publish_all() in the ShortcutPublisher class (_lakehouse.py) republishes all shortcuts, even when a shotcut is already deployed and its definition is unchanged. In use cases when you have very many shortcuts, this causes unneccesary API calls and longer deployment times.
Proposed Solution
As the workflow already fetches deployed_shortcuts , we can easily make a comparision of the shortcut content and only republish shortcuts where we have changes. If the shortcut is already published at current state, we skip republish.
Alternatives Considered
No response
Impact Assessment
Implementation Attestation
Implementation Notes
No response
Use Case / Problem
At the moment, the
publish_all()in theShortcutPublisherclass (_lakehouse.py) republishes all shortcuts, even when a shotcut is already deployed and its definition is unchanged. In use cases when you have very many shortcuts, this causes unneccesary API calls and longer deployment times.Proposed Solution
As the workflow already fetches
deployed_shortcuts, we can easily make a comparision of the shortcut content and only republish shortcuts where we have changes. If the shortcut is already published at current state, we skip republish.Alternatives Considered
No response
Impact Assessment
Implementation Attestation
Implementation Notes
No response