(value && value.name ? value.name : '-'),
- },
];
diff --git a/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap b/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
index 56795047d..69cc25cf8 100644
--- a/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
+++ b/public/pages/MonitorDetails/components/MonitorOverview/__snapshots__/MonitorOverview.test.js.snap
@@ -143,20 +143,6 @@ exports[`MonitorOverview renders 1`] = `
-
-
-
diff --git a/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.js b/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.js
index 3b6d574fc..b664ec715 100644
--- a/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.js
+++ b/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.js
@@ -115,15 +115,5 @@ export default function getOverviewStats(
header: 'Monitor version number',
value: monitorVersion,
},
- {
- /* There are 3 cases:
- 1. Monitors created by older versions and never updated.
- These monitors won’t have User details in the monitor object. `monitor.user` will be null.
- 2. Monitors are created when security plugin is disabled, these will have empty User object.
- (`monitor.user.name`, `monitor.user.roles` are empty )
- 3. Monitors are created when security plugin is enabled, these will have an User object. */
- header: 'Last updated by',
- value: monitor.user && monitor.user.name ? monitor.user.name : '-',
- },
];
}
diff --git a/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.test.js b/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.test.js
index 2bf486470..d9c567dfe 100644
--- a/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.test.js
+++ b/public/pages/MonitorDetails/components/MonitorOverview/utils/getOverviewStats.test.js
@@ -46,10 +46,6 @@ describe('getOverviewStats', () => {
header: 'Monitor version number',
value: monitorVersion,
},
- {
- header: 'Last updated by',
- value: monitor.user.name,
- },
]);
});
});
diff --git a/public/pages/Monitors/containers/Monitors/__snapshots__/Monitors.test.js.snap b/public/pages/Monitors/containers/Monitors/__snapshots__/Monitors.test.js.snap
index d664a137d..90b3fe8f5 100644
--- a/public/pages/Monitors/containers/Monitors/__snapshots__/Monitors.test.js.snap
+++ b/public/pages/Monitors/containers/Monitors/__snapshots__/Monitors.test.js.snap
@@ -43,15 +43,6 @@ exports[`Monitors renders 1`] = `
"truncateText": true,
"width": "150px",
},
- Object {
- "field": "user",
- "name": "Last updated by",
- "render": [Function],
- "sortable": true,
- "textOnly": true,
- "truncateText": true,
- "width": "100px",
- },
Object {
"field": "latestAlert",
"name": "Latest alert",
diff --git a/public/pages/Monitors/containers/Monitors/utils/tableUtils.js b/public/pages/Monitors/containers/Monitors/utils/tableUtils.js
index c8b92249f..0523e0200 100644
--- a/public/pages/Monitors/containers/Monitors/utils/tableUtils.js
+++ b/public/pages/Monitors/containers/Monitors/utils/tableUtils.js
@@ -25,22 +25,6 @@ export const columns = [
width: '150px',
render: (name, item) => {name},
},
- {
- field: 'user',
- name: 'Last updated by',
- sortable: true,
- truncateText: true,
- textOnly: true,
- width: '100px',
- /* There are 3 cases:
- 1. Monitors created by older versions and never updated.
- These monitors won’t have User details in the monitor object. `monitor.user` will be null.
- 2. Monitors are created when security plugin is disabled, these will have empty User object.
- (`monitor.user.name`, `monitor.user.roles` are empty )
- 3. Monitors are created when security plugin is enabled, these will have an User object. */
- render: (_, item) =>
- item.monitor.user && item.monitor.user.name ? item.monitor.user.name : '-',
- },
{
field: 'latestAlert',
name: 'Latest alert',
|