Skip to content
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

Unskip Search Sessions Management UI test #90110

Merged
merged 18 commits into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions x-pack/plugins/data_enhanced/common/search/session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@

export * from './status';
export * from './types';

export const SEARCH_SESSIONS_TABLE_ID = 'searchSessionsMgmtUiTable';
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@ import { EuiButton, EuiInMemoryTable, EuiSearchBarProps } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import { CoreStart } from 'kibana/public';
import moment from 'moment';
import React, { useCallback, useMemo, useRef, useEffect, useState } from 'react';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import useDebounce from 'react-use/lib/useDebounce';
import useInterval from 'react-use/lib/useInterval';
import { TableText } from '../';
import { IManagementSectionsPluginsSetup, SessionsConfigSchema } from '../..';
import { SEARCH_SESSIONS_TABLE_ID } from '../../../../../common/search';
import { SearchSessionsMgmtAPI } from '../../lib/api';
import { getColumns } from '../../lib/get_columns';
import { UISession } from '../../types';
import { OnActionComplete } from '../actions';
import { getAppFilter } from './app_filter';
import { getStatusFilter } from './status_filter';

const TABLE_ID = 'searchSessionsMgmtTable';

interface Props {
core: CoreStart;
api: SearchSessionsMgmtAPI;
Expand Down Expand Up @@ -107,8 +106,8 @@ export function SearchSessionsMgmtTable({ core, api, timezone, config, plugins,
return (
<EuiInMemoryTable<UISession>
{...props}
id={TABLE_ID}
data-test-subj={TABLE_ID}
id={SEARCH_SESSIONS_TABLE_ID}
data-test-subj={SEARCH_SESSIONS_TABLE_ID}
rowProps={() => ({
'data-test-subj': 'searchSessionsRow',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,34 @@
}
}

{
"type": "doc",
"value": {
"id": "task:data_enhanced_search_sessions_monitor",
"index": ".kibana_task_manager_1",
"source": {
"references": [],
"task": {
"attempts": 0,
"ownerId": null,
"params": "{}",
"retryAt": "2020-11-30T15:43:39.626Z",
"runAt": "2020-11-30T15:43:08.277Z",
"scheduledAt": "2020-11-30T15:43:08.277Z",
"retryAt": null,
"schedule": {
"interval": "3s"
},
"scope": [
"testing"
],
"startedAt": null,
"state": "{}",
"status": "idle",
"taskType": "search_sessions_monitor"
},
"type": "task",
"updated_at": "2020-11-30T15:43:08.277Z"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,93 @@
}
}
}

{
"type": "index",
"value": {
"aliases": {
".kibana_task_manager": {
}
},
"index": ".kibana_task_manager_1",
"mappings": {
"dynamic": "strict",
"properties": {
"references": {
"properties": {
"id": {
"type": "keyword"
},
"name": {
"type": "keyword"
},
"type": {
"type": "keyword"
}
},
"type": "nested"
},
"task": {
"properties": {
"attempts": {
"type": "integer"
},
"ownerId": {
"type": "keyword"
},
"params": {
"type": "text"
},
"retryAt": {
"type": "date"
},
"runAt": {
"type": "date"
},
"schedule": {
"properties": {
"interval": {
"type": "keyword"
}
}
},
"scheduledAt": {
"type": "date"
},
"scope": {
"type": "keyword"
},
"startedAt": {
"type": "date"
},
"state": {
"type": "text"
},
"status": {
"type": "keyword"
},
"taskType": {
"type": "keyword"
},
"user": {
"type": "keyword"
}
}
},
"type": {
"type": "keyword"
},
"updated_at": {
"type": "date"
}
}
},
"settings": {
"index": {
"auto_expand_replicas": "0-1",
"number_of_replicas": "0",
"number_of_shards": "1"
}
}
}
}
Binary file not shown.
Loading