-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix - 27308: Mark Charts deleted #27309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
49f7aa2
cd4e55b
6bd7c2b
1e19018
b5a82ef
134c339
575736e
38b8f1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,23 +224,23 @@ def yield_dashboard_chart( | |
| # Map Grafana panel types to standard chart types | ||
| chart_type = self._map_panel_type_to_chart_type(panel.type) | ||
|
|
||
| yield Either( | ||
| right=CreateChartRequest( | ||
| name=EntityName(chart_name), | ||
| displayName=chart_display_name, | ||
| description=( | ||
| Markdown(panel.description) if panel.description else None | ||
| ), | ||
| chartType=chart_type, | ||
| service=FullyQualifiedEntityName( | ||
| self.context.get().dashboard_service | ||
| ), | ||
| sourceUrl=SourceUrl( | ||
| f"{clean_uri(self.service_connection.hostPort)}" | ||
| f"{dashboard_details.meta.url}?viewPanel={panel.id}" | ||
| ), | ||
| ) | ||
| chart_request = CreateChartRequest( | ||
| name=EntityName(chart_name), | ||
| displayName=chart_display_name, | ||
| description=( | ||
| Markdown(panel.description) if panel.description else None | ||
| ), | ||
| chartType=chart_type, | ||
| service=FullyQualifiedEntityName( | ||
| self.context.get().dashboard_service | ||
| ), | ||
| sourceUrl=SourceUrl( | ||
| f"{clean_uri(self.service_connection.hostPort)}" | ||
| f"{dashboard_details.meta.url}?viewPanel={panel.id}" | ||
| ), | ||
| ) | ||
| yield Either(right=chart_request) | ||
| self.register_record_chart(chart_request=chart_request) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we take the chance to improve the framework a bit. I think we have to keep adding this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this improvement makes sense. since we have to manually keep that in |
||
| except Exception as exc: | ||
| yield Either( | ||
| left=StackTraceError( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.