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

[Index patterns] Remove field cache #82223

Merged
merged 65 commits into from
Nov 23, 2020
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
0ef83ad
index pattern server api simpler dependency
mattkime Oct 12, 2020
a663b12
fix plugin functional
mattkime Oct 12, 2020
04cb1de
remove legacy es client usage
mattkime Oct 12, 2020
96c9e02
Update index_patterns_service.ts
mattkime Oct 12, 2020
6e341fa
Merge branch 'index_pattern_server_simpler_deps' into field_caps_remo…
mattkime Oct 12, 2020
85bd623
Merge branch 'master' into field_caps_remove_legacy_es_client_usage
mattkime Oct 12, 2020
6b98e25
fix index pattern field list loading
mattkime Oct 12, 2020
3c8e547
fix tests
mattkime Oct 12, 2020
8e05312
fix tests and update docs
mattkime Oct 13, 2020
f828af1
fix hybrid index pattern support
mattkime Oct 13, 2020
e7d316b
Merge branch 'master' into field_caps_remove_legacy_es_client_usage
mattkime Oct 13, 2020
795e0a6
uptime type fixes
mattkime Oct 13, 2020
66b5002
Merge branch 'field_caps_remove_legacy_es_client_usage' of github.com…
mattkime Oct 13, 2020
ce643a6
Add scoped cluster client to alerts and actions services.
justinkambic Oct 16, 2020
87d72f7
Merge branch 'master' into alerting_scoped-cluster-client
justinkambic Oct 19, 2020
9e284d0
Modify functional test to use new ES client.
justinkambic Oct 19, 2020
be76dd7
Merge branch 'master' into field_caps_remove_legacy_es_client_usage
mattkime Oct 20, 2020
f3c2115
Merge branch 'alerting_scoped-cluster-client' into field_caps_remove_…
mattkime Oct 20, 2020
c7c9041
correct dependency from alert service
mattkime Oct 20, 2020
5191834
stop using legacy api
mattkime Oct 20, 2020
6fac250
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 21, 2020
a2bf964
fix error handling
mattkime Oct 21, 2020
7e7c56e
consolidate rollup field list code with regular index pattern field l…
mattkime Oct 21, 2020
99f510b
fix rollup index patterns
mattkime Oct 21, 2020
5d35d60
fix index pattern creation
mattkime Oct 22, 2020
fd014b4
fix integration tests
mattkime Oct 22, 2020
747a420
supply field fetcher to server
mattkime Oct 22, 2020
71ec723
fix plugin functional
mattkime Oct 22, 2020
c8d1b50
fix plugin functional
mattkime Oct 22, 2020
6a5a45a
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 23, 2020
276ab6b
bump bundle size limit
mattkime Oct 23, 2020
b14ea46
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 23, 2020
36f4c22
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 26, 2020
91a98bb
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 29, 2020
fafc3a3
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Oct 31, 2020
2570563
add plugin functional test
mattkime Nov 1, 2020
8cf0d5b
Merge branch 'single_call_for_index_pattern_fields' of github.com:mat…
mattkime Nov 1, 2020
a3d5027
fix types
mattkime Nov 1, 2020
2b5dce5
no saved field list, load fresh
mattkime Nov 1, 2020
e0da1c8
update docs
mattkime Nov 1, 2020
767ae41
fix translation
mattkime Nov 1, 2020
e26e452
Merge branch 'single_call_for_index_pattern_fields' into index_patter…
mattkime Nov 1, 2020
2989b00
fix jest tests
mattkime Nov 1, 2020
75939c5
remove unneeded alert change
mattkime Nov 2, 2020
f5069c7
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Nov 2, 2020
3d15e65
Merge branch 'master' into single_call_for_index_pattern_fields
mattkime Nov 3, 2020
6f42587
Merge branch 'single_call_for_index_pattern_fields' into index_patter…
mattkime Nov 3, 2020
d510b02
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 3, 2020
13ed8ea
fix rollup patterns
mattkime Nov 4, 2020
60e72af
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 10, 2020
a798ccf
fix lens functional test
mattkime Nov 10, 2020
67286a7
remove unneed test delay
mattkime Nov 10, 2020
a2e56e7
remove refresh button
mattkime Nov 10, 2020
24f11d4
fix localization
mattkime Nov 10, 2020
4c4937d
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 17, 2020
c21b983
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 17, 2020
518f863
fix rollups
mattkime Nov 18, 2020
522469b
persist field count attr
mattkime Nov 18, 2020
f32d59f
update docs, fix field count test
mattkime Nov 18, 2020
616a54c
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 19, 2020
034df6d
fail when unable to load field list
mattkime Nov 19, 2020
b647045
fix functional test by supplying needed index
mattkime Nov 19, 2020
cda120f
remove comment
mattkime Nov 19, 2020
05cc041
Merge branch 'master' into index_patterns_no_saved_field_cache
mattkime Nov 19, 2020
bd8d153
Merge branch 'master' into index_patterns_no_saved_field_cache
kibanamachine Nov 23, 2020
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
Prev Previous commit
Next Next commit
fix plugin functional
mattkime committed Oct 22, 2020
commit c8d1b503db33570611e41b00471861b2450ec753
6 changes: 4 additions & 2 deletions test/plugin_functional/plugins/data_search/server/plugin.ts
Original file line number Diff line number Diff line change
@@ -58,14 +58,16 @@ export class DataSearchTestPlugin
},
},
async (context, req, res) => {
const [{ savedObjects }, { data }] = await core.getStartServices();
const [{ savedObjects, elasticsearch }, { data }] = await core.getStartServices();
const service = await data.search.searchSource.asScoped(req);
const clusterClient = elasticsearch.client.asScoped(req).asCurrentUser;
const savedObjectsClient = savedObjects.getScopedClient(req);

// Since the index pattern ID can change on each test run, we need
// to look it up on the fly and insert it into the request.
const indexPatterns = await data.indexPatterns.indexPatternsServiceFactory(
savedObjectsClient
savedObjectsClient,
clusterClient
);
const ids = await indexPatterns.getIds();
// @ts-expect-error Force overwriting the request