Fix : Dashboard OverrideMetadata (#20793)

This commit is contained in:
Suman Maharana 2025-04-14 12:07:02 +05:30 committed by GitHub
parent 1839a061be
commit 4dd94516e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -612,6 +612,7 @@ class DashboardServiceSource(TopologyRunnerMixin, Source, ABC):
patch_request = PatchRequest(
original_entity=original_entity,
new_entity=original_entity.model_copy(update=create_request.__dict__),
override_metadata=self.source_config.overrideMetadata,
)
if isinstance(original_entity, Dashboard):
# For patch the charts need to be entity ref instead of fqn