switch to using internal user (#103931)
This commit is contained in:
parent
ff3b5231c6
commit
dd3a806690
2 changed files with 5 additions and 5 deletions
|
@ -102,7 +102,7 @@ export const JobMessagesPane: FC<JobMessagesPaneProps> = React.memo(
|
|||
|
||||
return (
|
||||
<>
|
||||
<EuiSpacer />
|
||||
{canCreateJob && showClearButton ? <EuiSpacer /> : null}
|
||||
<EuiFlexGroup direction="column">
|
||||
{canCreateJob && showClearButton ? (
|
||||
<EuiFlexItem grow={false}>
|
||||
|
|
|
@ -39,7 +39,7 @@ const anomalyDetectorTypeFilter = {
|
|||
},
|
||||
};
|
||||
|
||||
export function jobAuditMessagesProvider({ asInternalUser, asCurrentUser }, mlClient) {
|
||||
export function jobAuditMessagesProvider({ asInternalUser }, mlClient) {
|
||||
// search for audit messages,
|
||||
// jobId is optional. without it, all jobs will be listed.
|
||||
// from is optional and should be a string formatted in ES time units. e.g. 12h, 1d, 7d
|
||||
|
@ -310,10 +310,10 @@ export function jobAuditMessagesProvider({ asInternalUser, asCurrentUser }, mlCl
|
|||
};
|
||||
|
||||
await Promise.all([
|
||||
asCurrentUser.updateByQuery({
|
||||
asInternalUser.updateByQuery({
|
||||
index: ML_NOTIFICATION_INDEX_02,
|
||||
ignore_unavailable: true,
|
||||
refresh: true,
|
||||
refresh: false,
|
||||
conflicts: 'proceed',
|
||||
body: {
|
||||
query,
|
||||
|
@ -323,7 +323,7 @@ export function jobAuditMessagesProvider({ asInternalUser, asCurrentUser }, mlCl
|
|||
},
|
||||
},
|
||||
}),
|
||||
asCurrentUser.index({
|
||||
asInternalUser.index({
|
||||
index: ML_NOTIFICATION_INDEX_02,
|
||||
body: newClearedMessage,
|
||||
refresh: 'wait_for',
|
||||
|
|
Loading…
Reference in a new issue