Skip to content

Commit ddc2b73

Browse files
committed
Add logz commend
1 parent 893f99a commit ddc2b73

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

public/app/features/alerting/unified/components/receivers/form/GrafanaReceiverForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const GrafanaReceiverForm = ({ existing, alertManagerSourceName, config,
134134
}
135135

136136
const notifiers: Notifier[] = grafanaNotifiers
137-
.filter(n => n.type !== 'oncall') // LOGZ.IO CHANGE :: DEV-46522 hide oncall notifier
137+
.filter(n => n.type !== 'oncall') // LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
138138
.map((n) => {
139139
if (n.type === 'oncall') {
140140
return {

public/app/features/alerting/unified/hooks/usePluginBridge.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { PluginMeta } from '@grafana/data';
44
import { getPluginSettings } from 'app/features/plugins/pluginSettings';
55

66
import { PluginID } from '../components/PluginBridge';
7+
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
78
import { SupportedPlugin } from '../types/pluginBridges';
89
interface PluginBridgeHookResponse {
910
loading: boolean;
@@ -13,9 +14,11 @@ interface PluginBridgeHookResponse {
1314
}
1415

1516
export function usePluginBridge(plugin: PluginID): PluginBridgeHookResponse {
17+
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin
1618
if (plugin === SupportedPlugin.OnCall) {
1719
return { loading: false, installed: false};
1820
}
21+
// LOGZ.IO CHANGE :: DEV-46522 disable the oncall grafana plugin. END
1922
const { loading, error, value } = useAsync(() => getPluginSettings(plugin, { showErrorAlert: false }));
2023

2124
const installed = value && !error && !loading;

0 commit comments

Comments
 (0)