Removes references to Elasticsearch mapping types (#47610)

* rm types

* fix infra/reindex test

* rm max_adjacency_matrix_filters

* lint

* more fixes

* comment return

* override documentation links

* typo

* return unfedined

* skip highlight test

* lint
This commit is contained in:
Jonathan Budzenski 2019-11-11 16:41:08 -06:00 committed by GitHub
parent 9fdbf82ab3
commit 1cc2a34745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 148 additions and 230 deletions

View file

@ -26,7 +26,8 @@ function isVersionFlag(a) {
function getCustomSnapshotUrl() {
// force use of manually created snapshots until live ones are available
if (!process.env.KBN_ES_SNAPSHOT_URL && !process.argv.some(isVersionFlag)) {
return 'https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-{version}-{os}-x86_64.{ext}';
// return 'https://storage.googleapis.com/kibana-ci-tmp-artifacts/{name}-{version}-{os}-x86_64.{ext}';
return;
}
if (process.env.KBN_ES_SNAPSHOT_URL && process.env.KBN_ES_SNAPSHOT_URL !== 'false') {

View file

@ -23,14 +23,10 @@ At the root of the Kibana repository, run the following commands:
```sh
# OSS
yarn spec_to_console \
-g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" \
-d "src/legacy/core_plugins/console/api_server/spec/generated"
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/legacy/core_plugins/console/server/api_server/spec/generated"
# X-pack
yarn spec_to_console \
-g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" \
-d "x-pack/plugins/console_extensions/spec/generated"
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" -d "x-pack/legacy/plugins/console_extensions/spec/generated"
```
### Information used in Console that is not available in the REST spec

View file

@ -49,7 +49,6 @@ describe('SavedObjectsRepository', () => {
hits: [
{
_index: '.kibana',
_type: '_doc',
_id: 'index-pattern:logstash-*',
_score: 1,
...mockVersionProps,
@ -65,7 +64,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'config:6.0.0-alpha1',
_score: 1,
...mockVersionProps,
@ -80,7 +78,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'index-pattern:stocks-*',
_score: 1,
...mockVersionProps,
@ -96,7 +93,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'globaltype:something',
_score: 1,
...mockVersionProps,
@ -118,7 +114,6 @@ describe('SavedObjectsRepository', () => {
hits: [
{
_index: '.kibana',
_type: '_doc',
_id: 'foo-namespace:index-pattern:logstash-*',
_score: 1,
...mockVersionProps,
@ -135,7 +130,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'foo-namespace:config:6.0.0-alpha1',
_score: 1,
...mockVersionProps,
@ -151,7 +145,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'foo-namespace:index-pattern:stocks-*',
_score: 1,
...mockVersionProps,
@ -168,7 +161,6 @@ describe('SavedObjectsRepository', () => {
},
{
_index: '.kibana',
_type: '_doc',
_id: 'globaltype:something',
_score: 1,
...mockVersionProps,
@ -290,7 +282,6 @@ describe('SavedObjectsRepository', () => {
describe('#create', () => {
beforeEach(() => {
callAdminCluster.mockImplementation((method, params) => ({
_type: '_doc',
_id: params.id,
...mockVersionProps,
}));
@ -863,7 +854,6 @@ describe('SavedObjectsRepository', () => {
items: [
{
create: {
_type: '_doc',
_id: 'config:one',
error: {
reason: 'type[config] missing',
@ -872,7 +862,6 @@ describe('SavedObjectsRepository', () => {
},
{
create: {
_type: '_doc',
_id: 'index-pattern:two',
...mockVersionProps,
},
@ -910,14 +899,12 @@ describe('SavedObjectsRepository', () => {
items: [
{
create: {
_type: '_doc',
_id: 'config:one',
...mockVersionProps,
},
},
{
create: {
_type: '_doc',
_id: 'index-pattern:two',
...mockVersionProps,
},
@ -962,7 +949,6 @@ describe('SavedObjectsRepository', () => {
items: [
{
create: {
_type: '_doc',
_id: 'foo-namespace:config:one',
_index: '.kibana-test',
_primary_term: 1,
@ -971,7 +957,6 @@ describe('SavedObjectsRepository', () => {
},
{
create: {
_type: '_doc',
_id: 'foo-namespace:index-pattern:two',
_primary_term: 1,
_seq_no: 2,
@ -1021,14 +1006,12 @@ describe('SavedObjectsRepository', () => {
items: [
{
create: {
_type: '_doc',
_id: 'config:one',
...mockVersionProps,
},
},
{
create: {
_type: '_doc',
_id: 'index-pattern:two',
...mockVersionProps,
},
@ -1092,7 +1075,7 @@ describe('SavedObjectsRepository', () => {
expect(onBeforeWrite).toHaveBeenCalledTimes(1);
});
it('should return objects in the same order regardless of type', () => {});
it('should return objects in the same order regardless of type', () => { });
});
describe('#delete', () => {
@ -1496,7 +1479,6 @@ describe('SavedObjectsRepository', () => {
describe('#get', () => {
const noNamespaceResult = {
_id: 'index-pattern:logstash-*',
_type: '_doc',
...mockVersionProps,
_source: {
type: 'index-pattern',
@ -1509,7 +1491,6 @@ describe('SavedObjectsRepository', () => {
};
const namespacedResult = {
_id: 'foo-namespace:index-pattern:logstash-*',
_type: '_doc',
...mockVersionProps,
_source: {
namespace: 'foo-namespace',
@ -1699,14 +1680,12 @@ describe('SavedObjectsRepository', () => {
callAdminCluster.mockResolvedValue({
docs: [
{
_type: '_doc',
_id: 'config:good',
found: true,
...mockVersionProps,
_source: { ...mockTimestampFields, config: { title: 'Test' } },
},
{
_type: '_doc',
_id: 'config:bad',
found: false,
},
@ -1728,14 +1707,12 @@ describe('SavedObjectsRepository', () => {
callAdminCluster.mockResolvedValue({
docs: [
{
_type: '_doc',
_id: 'config:good',
found: true,
...mockVersionProps,
_source: { ...mockTimestampFields, config: { title: 'Test' } },
},
{
_type: '_doc',
_id: 'config:bad',
found: false,
},
@ -1770,21 +1747,18 @@ describe('SavedObjectsRepository', () => {
callAdminCluster.mockResolvedValue({
docs: [
{
_type: '_doc',
_id: 'one',
found: true,
...mockVersionProps,
_source: { ...mockTimestampFields, config: { title: 'Test1' } },
},
{
_type: '_doc',
_id: 'three',
found: true,
...mockVersionProps,
_source: { ...mockTimestampFields, config: { title: 'Test3' } },
},
{
_type: '_doc',
_id: 'five',
found: true,
...mockVersionProps,
@ -1859,7 +1833,6 @@ describe('SavedObjectsRepository', () => {
beforeEach(() => {
callAdminCluster.mockResolvedValue({
_id: `${type}:${id}`,
_type: '_doc',
...mockVersionProps,
result: 'updated',
});
@ -2177,7 +2150,6 @@ describe('SavedObjectsRepository', () => {
items: objects.map(items => ({
update: {
_id: `${items.type}:${items.id}`,
_type: '_doc',
...mockVersionProps,
result: 'updated',
}
@ -2244,15 +2216,14 @@ describe('SavedObjectsRepository', () => {
callAdminCluster.mockReturnValue({
items: objects
// remove invalid from mocks
// remove invalid from mocks
.filter(item => item.id !== 'invalid')
.map(items => {
switch(items.id) {
switch (items.id) {
case 'version_clash':
return ({
update: {
_id: `${items.type}:${items.id}`,
_type: '_doc',
error: {
type: 'version_conflict_engine_exception'
}
@ -2262,7 +2233,6 @@ describe('SavedObjectsRepository', () => {
return ({
update: {
_id: `${items.type}:${items.id}`,
_type: '_doc',
...mockVersionProps,
result: 'updated',
}
@ -2353,7 +2323,7 @@ describe('SavedObjectsRepository', () => {
expect(callAdminCluster).toHaveBeenCalledTimes(1);
const [, { body: [{ update: firstUpdate },, { update: secondUpdate }] }] = callAdminCluster.mock.calls[0];
const [, { body: [{ update: firstUpdate }, , { update: secondUpdate }] }] = callAdminCluster.mock.calls[0];
expect(firstUpdate).toMatchObject({
if_seq_no: 100,
@ -2407,7 +2377,7 @@ describe('SavedObjectsRepository', () => {
expect(callAdminCluster).toHaveBeenCalledTimes(1);
const [, { body: [, { doc }] } ] = callAdminCluster.mock.calls[0];
const [, { body: [, { doc }] }] = callAdminCluster.mock.calls[0];
expect(doc).toMatchObject({
references: [{
@ -2434,7 +2404,7 @@ describe('SavedObjectsRepository', () => {
expect(callAdminCluster).toHaveBeenCalledTimes(1);
const [, { body: [, { doc }] } ] = callAdminCluster.mock.calls[0];
const [, { body: [, { doc }] }] = callAdminCluster.mock.calls[0];
expect(doc).toMatchObject({
references: [],
@ -2637,7 +2607,6 @@ describe('SavedObjectsRepository', () => {
describe('#incrementCounter', () => {
beforeEach(() => {
callAdminCluster.mockImplementation((method, params) => ({
_type: '_doc',
_id: params.id,
...mockVersionProps,
_index: '.kibana',
@ -2657,7 +2626,6 @@ describe('SavedObjectsRepository', () => {
it('formats Elasticsearch response', async () => {
callAdminCluster.mockImplementation((method, params) => ({
_type: '_doc',
_id: params.id,
...mockVersionProps,
_index: '.kibana',
@ -2776,7 +2744,6 @@ describe('SavedObjectsRepository', () => {
it(`doesn't prepend namespace to the id or add namespace property when providing namespace for namespace agnostic type`, async () => {
callAdminCluster.mockImplementation((method, params) => ({
_type: '_doc',
_id: params.id,
...mockVersionProps,
_index: '.kibana',

View file

@ -35,11 +35,11 @@ import {
const recordsToBulkBody = records => {
return records.reduce((acc, record) => {
const { index, type, id, source } = record.value;
const { index, id, source } = record.value;
return [
...acc,
{ index: { _index: index, _type: type, _id: id } },
{ index: { _index: index, _id: id } },
source
];
}, []);

View file

@ -30,7 +30,6 @@ export function createIndexDocRecordsStream(client, stats, progress) {
{
index: {
_index: doc.index,
_type: doc.type,
_id: doc.id,
}
},

View file

@ -176,7 +176,6 @@ export async function cleanKibanaIndices({ client, stats, log, kibanaPluginIds }
export async function createDefaultSpace({ index, client }) {
await client.create({
index,
type: '_doc',
id: 'space:default',
ignore: 409,
body: {

View file

@ -31,7 +31,6 @@ export function getFakeRow(id, mapping) {
_id: id,
_index: 'test',
_source: getFakeRowVals('original', id, mapping),
_type: 'doc',
sort: [id],
};
}

View file

@ -37,7 +37,6 @@ export default function fitsFixture() {
return {
_score: 1,
_id: 1000 + i,
_type: 'test',
_index: 'test-index',
_source: {
'@timestamp': row[0],

View file

@ -1,8 +1,8 @@
# index a doc
PUT index/type/1
PUT index/1
{
"body": "here"
}
# and get it ...
GET index/type/1
GET index/1

View file

@ -251,10 +251,10 @@ describe('Input Tokenization', () => {
'paren.lparen', '{', 'paren.rparen', '}', 'paren.rparen', '}'
],
'POST _search\n' +
'{\n' +
' "q": {}\n' +
' \n' +
'}'
'{\n' +
' "q": {}\n' +
' \n' +
'}'
);
tokenTest(
@ -263,10 +263,10 @@ describe('Input Tokenization', () => {
'paren.rparen', '}', 'paren.rparen', '}'
],
'POST _search\n' +
'{\n' +
' "q": { "s": {}}\n' +
' \n' +
'}'
'{\n' +
' "q": { "s": {}}\n' +
' \n' +
'}'
);
function statesAsList() {
@ -305,44 +305,44 @@ describe('Input Tokenization', () => {
statesTest(
['start', 'json', 'json', 'start'],
'POST _search\n' +
'{\n' +
' "query": { "match_all": {} }\n' +
'}'
'{\n' +
' "query": { "match_all": {} }\n' +
'}'
);
statesTest(
['start', 'json', ['json', 'json'], ['json', 'json'], 'json', 'start'],
'POST _search\n' +
'{\n' +
' "query": { \n' +
' "match_all": {} \n' +
' }\n' +
'}'
'{\n' +
' "query": { \n' +
' "match_all": {} \n' +
' }\n' +
'}'
);
statesTest(
['start', 'json', 'json', 'start'],
'POST _search\n' +
'{\n' +
' "script": { "source": "" }\n' +
'}'
'{\n' +
' "script": { "source": "" }\n' +
'}'
);
statesTest(
['start', 'json', 'json', 'start'],
'POST _search\n' +
'{\n' +
' "script": ""\n' +
'}'
'{\n' +
' "script": ""\n' +
'}'
);
statesTest(
['start', 'json', ['json', 'json'], 'json', 'start'],
'POST _search\n' +
'{\n' +
' "script": {\n' +
' }\n' +
'}'
'{\n' +
' "script": {\n' +
' }\n' +
'}'
);
@ -350,41 +350,41 @@ describe('Input Tokenization', () => {
['start', 'json', ['script-start', 'json', 'json', 'json'], ['script-start', 'json', 'json', 'json'],
['json', 'json'], 'json', 'start'],
'POST _search\n' +
'{\n' +
' "test": { "script": """\n' +
' test script\n' +
' """\n' +
' }\n' +
'}'
'{\n' +
' "test": { "script": """\n' +
' test script\n' +
' """\n' +
' }\n' +
'}'
);
statesTest(
['start', 'json', ['script-start', 'json'], ['script-start', 'json'], 'json', 'start'],
'POST _search\n' +
'{\n' +
' "script": """\n' +
' test script\n' +
' """,\n' +
'}'
'{\n' +
' "script": """\n' +
' test script\n' +
' """,\n' +
'}'
);
statesTest(
['start', 'json', 'json', 'start'],
'POST _search\n' +
'{\n' +
' "script": """test script""",\n' +
'}'
'{\n' +
' "script": """test script""",\n' +
'}'
);
statesTest(
['start', 'json', ['string_literal', 'json'], ['string_literal', 'json'], 'json', 'start'],
'POST _search\n' +
'{\n' +
' "something": """\n' +
' test script\n' +
' """,\n' +
'}'
'{\n' +
' "something": """\n' +
' test script\n' +
' """,\n' +
'}'
);
statesTest(
@ -392,21 +392,21 @@ describe('Input Tokenization', () => {
['json', 'json'], ['json', 'json'],
'json', 'start'],
'POST _search\n' +
'{\n' +
' "something": { "f" : """\n' +
' test script\n' +
' """,\n' +
' "g": 1\n' +
' }\n' +
'}'
'{\n' +
' "something": { "f" : """\n' +
' test script\n' +
' """,\n' +
' "g": 1\n' +
' }\n' +
'}'
);
statesTest(
['start', 'json', 'json', 'start'],
'POST _search\n' +
'{\n' +
' "something": """test script""",\n' +
'}'
'{\n' +
' "something": """test script""",\n' +
'}'
);
});

View file

@ -61,7 +61,7 @@ describe('Console Proxy Route', () => {
const { statusCode } = await server.inject({
method: 'POST',
url: '/api/console/proxy?method=GET&path=/baz/type/id',
url: '/api/console/proxy?method=GET&path=/baz/id',
});
expect(statusCode).to.be(403);
@ -79,7 +79,7 @@ describe('Console Proxy Route', () => {
const { statusCode } = await server.inject({
method: 'POST',
url: '/api/console/proxy?method=GET&path=/foo/type/id',
url: '/api/console/proxy?method=GET&path=/foo/id',
});
expect(statusCode).to.be(200);
@ -98,7 +98,7 @@ describe('Console Proxy Route', () => {
const { statusCode } = await server.inject({
method: 'POST',
url: '/api/console/proxy?method=GET&path=/foo/type/id',
url: '/api/console/proxy?method=GET&path=/foo/id',
});
expect(statusCode).to.be(200);
@ -116,7 +116,7 @@ describe('Console Proxy Route', () => {
server.route(createProxyRoute({ baseUrl: 'http://localhost:9200', getConfigForReq }));
await server.inject({
method: 'POST',
url: '/api/console/proxy?method=HEAD&path=/index/type/id',
url: '/api/console/proxy?method=HEAD&path=/index/id',
});
sinon.assert.calledOnce(getConfigForReq);
@ -125,8 +125,8 @@ describe('Console Proxy Route', () => {
expect(args[0]).to.have.property('method', 'post');
expect(args[0])
.to.have.property('query')
.eql({ method: 'HEAD', path: '/index/type/id' });
expect(args[1]).to.be('http://localhost:9200/index/type/id?pretty=true');
.eql({ method: 'HEAD', path: '/index/id' });
expect(args[1]).to.be('http://localhost:9200/index/id?pretty=true');
});
it('sends the returned timeout, agent, and base headers to request', async () => {
@ -154,7 +154,7 @@ describe('Console Proxy Route', () => {
await server.inject({
method: 'POST',
url: '/api/console/proxy?method=HEAD&path=/index/type/id',
url: '/api/console/proxy?method=HEAD&path=/index/id',
});
sinon.assert.calledOnce(requestModule.sendRequest);

View file

@ -85,19 +85,19 @@ describe('Console Proxy Route', () => {
});
describe('starts with a slash', () => {
it('combines well with the base url', async () => {
await request('GET', '/index/type/id');
await request('GET', '/index/id');
sinon.assert.calledOnce(requestModule.sendRequest);
expect(requestModule.sendRequest.getCall(0).args[0].uri.href).to.be(
'http://localhost:9200/index/type/id?pretty=true'
'http://localhost:9200/index/id?pretty=true'
);
});
});
describe(`doesn't start with a slash`, () => {
it('combines well with the base url', async () => {
await request('GET', 'index/type/id');
await request('GET', 'index/id');
sinon.assert.calledOnce(requestModule.sendRequest);
expect(requestModule.sendRequest.getCall(0).args[0].uri.href).to.be(
'http://localhost:9200/index/type/id?pretty=true'
'http://localhost:9200/index/id?pretty=true'
);
});
});

View file

@ -40,7 +40,7 @@ describe('WildcardMatcher', function () {
it('matches nothing', () => should('', '*'));
it('does not match /', () => shouldNot('/', '*'));
it('matches localhost', () => should('localhost', '*'));
it('matches a path', () => should('/index/type/_search', '*'));
it('matches a path', () => should('/index/_search', '*'));
describe('defaultValue = /', function () {
it('matches /', () => should('/', '*', '/'));
@ -52,7 +52,7 @@ describe('WildcardMatcher', function () {
it('does not match https', () => shouldNot('https', 'http'));
it('does not match nothing', () => shouldNot('', 'http'));
it('does not match localhost', () => shouldNot('localhost', 'http'));
it('does not match a path', () => shouldNot('/index/type/_search', 'http'));
it('does not match a path', () => shouldNot('/index/_search', 'http'));
});
describe('pattern = 560{1..9}', function () {

View file

@ -30,8 +30,7 @@
],
"patterns": [
"_count",
"{indices}/_count",
"{indices}/{type}/_count"
"{indices}/_count"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"
}

View file

@ -1,6 +1,7 @@
{
"delete_by_query": {
"url_params": {
"analyzer": "",
"analyze_wildcard": "__flag__",
"default_operator": [
"AND",
@ -30,7 +31,6 @@
"dfs_query_then_fetch"
],
"search_timeout": "",
"size": "",
"max_docs": "all documents",
"sort": [],
"_source": [],
@ -52,8 +52,7 @@
"POST"
],
"patterns": [
"{indices}/_delete_by_query",
"{indices}/{type}/_delete_by_query"
"{indices}/_delete_by_query"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"
}

View file

@ -21,8 +21,7 @@
"HEAD"
],
"patterns": [
"{indices}/_doc/{id}",
"{indices}/{type}/{id}"
"{indices}/_doc/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"
}

View file

@ -22,8 +22,7 @@
"POST"
],
"patterns": [
"{indices}/_explain/{id}",
"{indices}/{type}/{id}/_explain"
"{indices}/_explain/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"
}

View file

@ -21,8 +21,7 @@
"GET"
],
"patterns": [
"{indices}/_doc/{id}",
"{indices}/{type}/{id}"
"{indices}/_doc/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"
}

View file

@ -0,0 +1,10 @@
{
"get_script_context": {
"methods": [
"GET"
],
"patterns": [
"_script_context"
]
}
}

View file

@ -20,8 +20,7 @@
"GET"
],
"patterns": [
"{indices}/_source/{id}",
"{indices}/{type}/{id}/_source"
"{indices}/_source/{id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"
}

View file

@ -29,9 +29,7 @@
],
"patterns": [
"{indices}/_doc/{id}",
"{indices}/_doc",
"{indices}/{type}",
"{indices}/{type}/{id}"
"{indices}/_doc"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"
}

View file

@ -18,9 +18,7 @@
],
"patterns": [
"_mapping/field/{fields}",
"{indices}/_mapping/field/{fields}",
"_mapping/{type}/field/{fields}",
"{indices}/_mapping/{type}/field/{fields}"
"{indices}/_mapping/field/{fields}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"
}

View file

@ -1,7 +1,6 @@
{
"indices.get_mapping": {
"url_params": {
"include_type_name": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
@ -18,9 +17,7 @@
],
"patterns": [
"_mapping",
"{indices}/_mapping",
"_mapping/{type}",
"{indices}/_mapping/{type}"
"{indices}/_mapping"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"
}

View file

@ -1,7 +1,6 @@
{
"indices.put_mapping": {
"url_params": {
"include_type_name": "__flag__",
"timeout": "",
"master_timeout": "",
"ignore_unavailable": "__flag__",
@ -18,14 +17,7 @@
"POST"
],
"patterns": [
"{indices}/_mapping",
"{indices}/{type}/_mapping",
"{indices}/_mapping/{type}",
"{indices}/{type}/_mappings",
"{indices}/_mappings/{type}",
"_mappings/{type}",
"{indices}/_mappings",
"_mapping/{type}"
"{indices}/_mapping"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"
}

View file

@ -1,7 +1,6 @@
{
"indices.shrink": {
"url_params": {
"copy_settings": "__flag__",
"timeout": "",
"master_timeout": "",
"wait_for_active_shards": ""

View file

@ -1,7 +1,6 @@
{
"indices.split": {
"url_params": {
"copy_settings": "__flag__",
"timeout": "",
"master_timeout": "",
"wait_for_active_shards": ""

View file

@ -16,8 +16,7 @@
],
"patterns": [
"_mget",
"{indices}/_mget",
"{indices}/{type}/_mget"
"{indices}/_mget"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"
}

View file

@ -20,8 +20,7 @@
],
"patterns": [
"_msearch",
"{indices}/_msearch",
"{indices}/{type}/_msearch"
"{indices}/_msearch"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"
}

View file

@ -9,7 +9,8 @@
],
"typed_keys": "__flag__",
"max_concurrent_searches": "",
"rest_total_hits_as_int": "__flag__"
"rest_total_hits_as_int": "__flag__",
"ccs_minimize_roundtrips": "__flag__"
},
"methods": [
"GET",
@ -17,8 +18,7 @@
],
"patterns": [
"_msearch/template",
"{indices}/_msearch/template",
"{indices}/{type}/_msearch/template"
"{indices}/_msearch/template"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"
}

View file

@ -25,8 +25,7 @@
],
"patterns": [
"_mtermvectors",
"{indices}/_mtermvectors",
"{indices}/{type}/_mtermvectors"
"{indices}/_mtermvectors"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"
}

View file

@ -65,8 +65,7 @@
],
"patterns": [
"_search",
"{indices}/_search",
"{indices}/{type}/_search"
"{indices}/_search"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"
}

View file

@ -22,7 +22,8 @@
"explain": "__flag__",
"profile": "__flag__",
"typed_keys": "__flag__",
"rest_total_hits_as_int": "__flag__"
"rest_total_hits_as_int": "__flag__",
"ccs_minimize_roundtrips": "__flag__"
},
"methods": [
"GET",
@ -30,8 +31,7 @@
],
"patterns": [
"_search/template",
"{indices}/_search/template",
"{indices}/{type}/_search/template"
"{indices}/_search/template"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"
}

View file

@ -24,9 +24,7 @@
],
"patterns": [
"{indices}/_termvectors/{id}",
"{indices}/_termvectors",
"{indices}/{type}/{id}/_termvectors",
"{indices}/{type}/_termvectors"
"{indices}/_termvectors"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"
}

View file

@ -32,7 +32,6 @@
"dfs_query_then_fetch"
],
"search_timeout": "",
"size": "",
"max_docs": "all documents",
"sort": [],
"_source": [],
@ -55,8 +54,7 @@
"POST"
],
"patterns": [
"{indices}/_update_by_query",
"{indices}/{type}/_update_by_query"
"{indices}/_update_by_query"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"
}

View file

@ -106,10 +106,10 @@ const allSavedObjects = [
},
];
const $http = () => {};
const $http = () => { };
$http.post = jest.fn().mockImplementation(() => []);
const defaultProps = {
goInspectObject: () => {},
goInspectObject: () => { },
confirmModalPromise: jest.fn(),
savedObjectsClient: {
find: jest.fn(),
@ -256,7 +256,6 @@ describe('ObjectsTable', () => {
const mockSavedObjects = mockSelectedSavedObjects.map(obj => ({
_id: obj.id,
_type: obj._type,
_source: {},
}));
@ -297,7 +296,6 @@ describe('ObjectsTable', () => {
const mockSavedObjects = mockSelectedSavedObjects.map(obj => ({
_id: obj.id,
_type: obj._type,
_source: {},
}));

View file

@ -32,7 +32,6 @@ function setupMockCallCluster(optCount, language) {
if (optCount === null) {
return Promise.resolve({
_index: '.kibana_1',
_type: 'doc',
_id: 'kql-telemetry:kql-telemetry',
found: false,
});

View file

@ -53,10 +53,8 @@ export function registerScrollForExportRoute(server) {
});
return objects.map(hit => {
const type = hit.type;
return {
_id: hit.id,
_type: type,
_source: hit.attributes,
_meta: {
savedObjectVersion: 2

View file

@ -36,7 +36,6 @@ export async function getDocNotFoundError(es) {
try {
await es.get({
index: 'basic_index',
type: 'type',
id: '1234'
});
} catch (err) {

View file

@ -56,7 +56,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.settings.setScriptedFieldScript(`doc['bytes'].value`);
const response = await es.update({
index: '.kibana',
type: '_doc',
id: 'index-pattern:logstash-*',
body: {
'doc': { 'index-pattern': { 'fieldFormatMap': '{"geo.src":{"id":"number"}}' } }
@ -83,7 +82,6 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.settings.setFieldFormat('url');
const response = await es.update({
index: '.kibana',
type: '_doc',
id: 'index-pattern:logstash-*',
body: {
'doc': { 'index-pattern': { 'fieldFormatMap': '{"geo.dest":{"id":"number"}}' } }

View file

@ -33,7 +33,6 @@ export const esResponse = {
hits: [
{
_index: 'apm-7.0.0-alpha1-error-2018.04.25',
_type: 'doc',
_id: 'qH7C_WIBcmGuKeCHJvvT',
_score: null,
_source: {
@ -61,7 +60,6 @@ export const esResponse = {
hits: [
{
_index: 'apm-7.0.0-alpha1-error-2018.04.25',
_type: 'doc',
_id: '_3_D_WIBcmGuKeCHFwOW',
_score: null,
_source: {
@ -93,7 +91,6 @@ export const esResponse = {
hits: [
{
_index: 'apm-7.0.0-alpha1-error-2018.04.25',
_type: 'doc',
_id: 'dn_D_WIBcmGuKeCHQgXJ',
_score: null,
_source: {
@ -125,7 +122,6 @@ export const esResponse = {
hits: [
{
_index: 'apm-7.0.0-alpha1-error-2018.04.25',
_type: 'doc',
_id: 'dX_D_WIBcmGuKeCHQgXJ',
_score: null,
_source: {

View file

@ -22,7 +22,6 @@ export const searchMocks = {
hits: [
{
_index: '.apm-agent-configuration',
_type: '_doc',
_id: '-aQHsm0BxZLczArvNQYW',
_score: 0.9808292,
_source: {
@ -39,7 +38,6 @@ export const searchMocks = {
},
{
_index: '.apm-agent-configuration',
_type: '_doc',
_id: '-KQHsm0BxZLczArvNAb0',
_score: 0.18232156,
_source: {
@ -56,7 +54,6 @@ export const searchMocks = {
},
{
_index: '.apm-agent-configuration',
_type: '_doc',
_id: '96QHsm0BxZLczArvNAbD',
_score: 0.0,
_source: {

View file

@ -19,7 +19,6 @@ export const mlBucketSpanResponse = {
hits: [
{
_index: '.ml-anomalies-shared',
_type: 'doc',
_id:
'opbeans-go-request-high_mean_response_time_model_plot_1542636000000_900_0_29791_0',
_score: 1.0,

View file

@ -6,6 +6,6 @@
"patterns": [
"{indices}/_ccr/forget_follower"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html"
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current"
}
}

View file

@ -9,8 +9,7 @@
"POST"
],
"patterns": [
"{indices}/_graph/explore",
"{indices}/{type}/_graph/explore"
"{indices}/_graph/explore"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html"
}

View file

@ -13,6 +13,6 @@
"patterns": [
"_security/privilege/{application}/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html"
"documentation": "TODO"
}
}

View file

@ -14,6 +14,6 @@
"patterns": [
"_security/privilege/"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html"
"documentation": "TODO"
}
}

View file

@ -0,0 +1,3 @@
{
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html"
}

View file

@ -0,0 +1,3 @@
{
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html"
}

View file

@ -35,7 +35,6 @@ export class GrokdebuggerRequest {
docs: [
{
_index: 'grokdebugger',
_type: 'grokdebugger',
_id: 'grokdebugger',
_source: {
rawEvent: this.rawEvent.toString()

View file

@ -19,7 +19,6 @@ describe('grokdebugger_response', () => {
{
doc: {
_index: 'grokdebugger',
_type: 'grokdebugger',
_id: 'grokdebugger',
_source: {
'request': '/index.html',

View file

@ -39,15 +39,15 @@ jest.mock('ui/kfetch', () => ({
if (pathname === '/api/reporting/jobs/list') {
return Promise.resolve([
{ _index: '.reporting-2019.08.18', _id: 'jzoik8dh1q2i89fb5f19znm6', _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1635, height: 792 } }, type: 'dashboard', title: 'Names', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:24.869Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik7tn1q2i89fb5f60e5ve', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1635, height: 792 } }, type: 'dashboard', title: 'Names', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:24.155Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik5tb1q2i89fb5fckchny', _score: null, _source: { payload: { layout: { id: 'png', dimensions: { width: 1898, height: 876 } }, title: 'cool dashboard', type: 'dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:21.551Z', jobtype: 'PNG', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik5a11q2i89fb5f130t2m', _score: null, _source: { payload: { layout: { id: 'png', dimensions: { width: 1898, height: 876 } }, title: 'cool dashboard', type: 'dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:20.857Z', jobtype: 'PNG', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik3ka1q2i89fb5fdx93g7', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1898, height: 876 } }, type: 'dashboard', title: 'cool dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:18.634Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik2vt1q2i89fb5ffw723n', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1898, height: 876 } }, type: 'dashboard', title: 'cool dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:17.753Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoik1851q2i89fb5fdge6e7', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1080, height: 720 } }, type: 'canvas workpad', title: 'My Canvas Workpad - Dark', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:15.605Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoijyre1q2i89fb5fa7xzvi', _score: null, _source: { payload: { type: 'dashboard', title: 'tests-panels', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:12.410Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jzoijv5h1q2i89fb5ffklnhx', _score: null, _source: { payload: { type: 'dashboard', title: 'tests-panels', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:07.733Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _type: '_doc', _id: 'jznhgk7r1bx789fb5f6hxok7', _score: null, _source: { kibana_name: 'spicy.local', browser_type: 'chromium', created_at: '2019-08-23T02:15:47.799Z', jobtype: 'printable_pdf', created_by: 'elastic', kibana_id: 'ca75e26c-2b7d-464f-aef0-babb67c735a0', output: { content_type: 'application/pdf', size: 877114 }, completed_at: '2019-08-23T02:15:57.707Z', payload: { type: 'dashboard (legacy)', title: 'tests-panels', }, max_attempts: 3, started_at: '2019-08-23T02:15:48.794Z', attempts: 1, status: 'completed', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik7tn1q2i89fb5f60e5ve', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1635, height: 792 } }, type: 'dashboard', title: 'Names', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:24.155Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik5tb1q2i89fb5fckchny', _score: null, _source: { payload: { layout: { id: 'png', dimensions: { width: 1898, height: 876 } }, title: 'cool dashboard', type: 'dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:21.551Z', jobtype: 'PNG', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik5a11q2i89fb5f130t2m', _score: null, _source: { payload: { layout: { id: 'png', dimensions: { width: 1898, height: 876 } }, title: 'cool dashboard', type: 'dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:20.857Z', jobtype: 'PNG', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik3ka1q2i89fb5fdx93g7', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1898, height: 876 } }, type: 'dashboard', title: 'cool dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:18.634Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik2vt1q2i89fb5ffw723n', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1898, height: 876 } }, type: 'dashboard', title: 'cool dashboard', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:17.753Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoik1851q2i89fb5fdge6e7', _score: null, _source: { payload: { layout: { id: 'preserve_layout', dimensions: { width: 1080, height: 720 } }, type: 'canvas workpad', title: 'My Canvas Workpad - Dark', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:15.605Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoijyre1q2i89fb5fa7xzvi', _score: null, _source: { payload: { type: 'dashboard', title: 'tests-panels', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:12.410Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jzoijv5h1q2i89fb5ffklnhx', _score: null, _source: { payload: { type: 'dashboard', title: 'tests-panels', }, max_attempts: 3, browser_type: 'chromium', created_at: '2019-08-23T19:34:07.733Z', jobtype: 'printable_pdf', created_by: 'elastic', attempts: 0, status: 'pending', }, }, // prettier-ignore
{ _index: '.reporting-2019.08.18', _id: 'jznhgk7r1bx789fb5f6hxok7', _score: null, _source: { kibana_name: 'spicy.local', browser_type: 'chromium', created_at: '2019-08-23T02:15:47.799Z', jobtype: 'printable_pdf', created_by: 'elastic', kibana_id: 'ca75e26c-2b7d-464f-aef0-babb67c735a0', output: { content_type: 'application/pdf', size: 877114 }, completed_at: '2019-08-23T02:15:57.707Z', payload: { type: 'dashboard (legacy)', title: 'tests-panels', }, max_attempts: 3, started_at: '2019-08-23T02:15:48.794Z', attempts: 1, status: 'completed', }, }, // prettier-ignore
]);
}

View file

@ -1072,7 +1072,6 @@ describe('Get Doc Path from ES Response', () => {
it('returns a formatted string after response of an update', function () {
const responseMock = {
_index: 'foo',
_type: '_doc',
_id: 'booId',
};
expect(getUpdatedDocPath(responseMock)).equal('/foo/_doc/booId');

View file

@ -22,8 +22,8 @@ export function formatJobObject(job) {
}
export function getUpdatedDocPath(response) {
const { _index: ind, _type: type = '_doc', _id: id } = response;
return `/${ind}/${type}/${id}`;
const { _index: ind, _id: id } = response;
return `/${ind}/${id}`;
}
const MAX_PARTIAL_ERROR_LENGTH = 1000; // 1000 of beginning, 1000 of end

View file

@ -915,7 +915,6 @@ describe('reindexService', () => {
expect(updatedOp.attributes.reindexTaskPercComplete).toEqual(1);
expect(callCluster).toHaveBeenCalledWith('delete', {
index: '.tasks',
type: 'task',
id: 'xyz',
});
});
@ -950,7 +949,6 @@ describe('reindexService', () => {
expect(updatedOp.attributes.status).toEqual(ReindexStatus.cancelled);
expect(callCluster).toHaveBeenCalledWith('delete', {
index: '.tasks',
type: 'task',
id: 'xyz',
});
});

View file

@ -376,7 +376,6 @@ export const reindexServiceFactory = (
// Delete the task from ES .tasks index
const deleteTaskResp = await callCluster('delete', {
index: '.tasks',
type: 'task',
id: taskId,
});

View file

@ -88,7 +88,8 @@ export default function({ getService }: FtrProviderContext) {
}
});
it('should return log highlights in a field column', async () => {
// https://github.com/elastic/kibana/issues/49959
it.skip('should return log highlights in a field column', async () => {
const {
data: {
source: { logEntryHighlights },

View file

@ -95,9 +95,10 @@ export default ({ getService }: FtrProviderContext) => {
const olderDate = moment()
.subtract(100, 'days')
.valueOf();
// @ts-ignore optional type: string
await es.index({
index: '.kibana',
type: '_doc',
body: {
type: 'lens-ui-telemetry',
'lens-ui-telemetry': {

View file

@ -57,7 +57,6 @@ export default function ({ getService }) {
'priority',
'codec',
'max_rescore_window',
'max_adjacency_matrix_filters',
'analyze',
'gc_deletes',
'max_ngram_diff',

View file

@ -289,7 +289,6 @@ const EXPECTED_DATA: DetailItem[] = [
values: ['filebeat-7.0.0-iot-2019.06'],
originalValue: 'filebeat-7.0.0-iot-2019.06',
},
{ field: '_type', values: ['_doc'], originalValue: '_doc' },
{
field: '_id',
values: ['QRhG1WgBqd-n62SwZYDT'],

View file

@ -31,7 +31,7 @@ export default function ({ getPageObjects, getService }) {
await PageObjects.maps.loadSavedMap('document example');
const response = await getResponse();
const firstHit = response.hits.hits[0];
expect(Object.keys(firstHit).join(',')).to.equal('_index,_type,_id,_score,fields');
expect(Object.keys(firstHit).join(',')).to.equal('_index,_id,_score,fields');
expect(Object.keys(firstHit.fields).join(',')).to.equal('geo.coordinates');
});
@ -39,7 +39,7 @@ export default function ({ getPageObjects, getService }) {
await PageObjects.maps.loadSavedMap('document example with data driven styles');
const response = await getResponse();
const firstHit = response.hits.hits[0];
expect(Object.keys(firstHit).join(',')).to.equal('_index,_type,_id,_score,fields');
expect(Object.keys(firstHit).join(',')).to.equal('_index,_id,_score,fields');
expect(Object.keys(firstHit.fields).join(',')).to.equal('geo.coordinates,bytes,hour_of_day');
});
@ -47,7 +47,7 @@ export default function ({ getPageObjects, getService }) {
await PageObjects.maps.loadSavedMap('document example with data driven styles on date field');
const response = await getResponse();
const firstHit = response.hits.hits[0];
expect(Object.keys(firstHit).join(',')).to.equal('_index,_type,_id,_score,fields');
expect(Object.keys(firstHit).join(',')).to.equal('_index,_id,_score,fields');
expect(Object.keys(firstHit.fields).join(',')).to.equal('geo.coordinates,bytes,@timestamp');
expect(firstHit.fields['@timestamp']).to.be.an('array');
expect(firstHit.fields['@timestamp'][0]).to.equal('1442709321445');

View file

@ -74,7 +74,7 @@ export default function ({ getService, getPageObjects }) {
expect(hitCount).to.be('1');
});
const rowData = await PageObjects.discover.getDocTableIndex(1);
expect(rowData).to.be('name:ABC Company region:EAST _id:doc1 _type:_doc _index:dlstest _score:0');
expect(rowData).to.be('name:ABC Company region:EAST _id:doc1 _type: - _index:dlstest _score:0');
});
after('logout', async () => {
await PageObjects.security.logout();

View file

@ -98,7 +98,7 @@ export default function ({ getService, getPageObjects }) {
});
const rowData = await PageObjects.discover.getDocTableIndex(1);
expect(rowData).to
.be('customer_ssn:444.555.6666 customer_name:ABC Company customer_region:WEST _id:2 _type:_doc _index:flstest _score:0');
.be('customer_ssn:444.555.6666 customer_name:ABC Company customer_region:WEST _id:2 _type: - _index:flstest _score:0');
});
it('user customer2 should not see ssn', async function () {
@ -110,7 +110,7 @@ export default function ({ getService, getPageObjects }) {
expect(hitCount).to.be('2');
});
const rowData = await PageObjects.discover.getDocTableIndex(1);
expect(rowData).to.be('customer_name:ABC Company customer_region:WEST _id:2 _type:_doc _index:flstest _score:0');
expect(rowData).to.be('customer_name:ABC Company customer_region:WEST _id:2 _type: - _index:flstest _score:0');
});
after(async function () {

View file

@ -21,7 +21,6 @@ export default function({ getService }: FtrProviderContext) {
_source: { [SAVED_OBJECT_WITH_SECRET_TYPE]: savedObject },
} = await es.get({
id: generateRawID(id),
type: '_doc',
index: '.kibana',
});

View file

@ -119,7 +119,6 @@ export function bulkCreateTestSuiteFactory(es: any, esArchiver: any, supertest:
// query ES directory to ensure namespace was or wasn't specified
const { _source } = await es.get({
id: `${expectedSpacePrefix}${savedObject.type}:${savedObject.id}`,
type: '_doc',
index: '.kibana',
});

View file

@ -82,7 +82,6 @@ export function createTestSuiteFactory(es: any, esArchiver: any, supertest: Supe
// query ES directory to ensure namespace was or wasn't specified
const { _source } = await es.get({
id: `${expectedSpacePrefix}${spaceAwareType}:${resp.body.id}`,
type: '_doc',
index: '.kibana',
});
@ -121,7 +120,6 @@ export function createTestSuiteFactory(es: any, esArchiver: any, supertest: Supe
// query ES directory to ensure namespace wasn't specified
const { _source } = await es.get({
id: `${notSpaceAwareType}:${resp.body.id}`,
type: '_doc',
index: '.kibana',
});