Skip to content

Commit b36c29f

Browse files
committed
Merge branch 'EMT-146_use_agent_service_for_status' of github.com:nnamdifrankie/kibana into EMT-146_use_agent_service_for_status
2 parents bcd6e4c + 578e0bf commit b36c29f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+297
-446
lines changed

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
| [SavedQuery](./kibana-plugin-plugins-data-public.savedquery.md) | |
8989
| [SavedQueryService](./kibana-plugin-plugins-data-public.savedqueryservice.md) | |
9090
| [SearchSourceFields](./kibana-plugin-plugins-data-public.searchsourcefields.md) | |
91-
| [SearchStrategyProvider](./kibana-plugin-plugins-data-public.searchstrategyprovider.md) | |
9291
| [TabbedAggColumn](./kibana-plugin-plugins-data-public.tabbedaggcolumn.md) | \* |
9392
| [TabbedTable](./kibana-plugin-plugins-data-public.tabbedtable.md) | \* |
9493
| [TimeRange](./kibana-plugin-plugins-data-public.timerange.md) | |

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchstrategyprovider.id.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchstrategyprovider.isviable.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchstrategyprovider.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/development/plugins/data/public/kibana-plugin-plugins-data-public.searchstrategyprovider.search.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/core/public/plugins/plugin_loader.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test('`loadPluginBundles` creates a script tag and loads initializer', async ()
6262
const fakeScriptTag = createdScriptTags[0];
6363
expect(fakeScriptTag.setAttribute).toHaveBeenCalledWith(
6464
'src',
65-
'/bundles/plugin/plugin-a/plugin-a.plugin.js'
65+
'/bundles/plugin:plugin-a/plugin-a.plugin.js'
6666
);
6767
expect(fakeScriptTag.setAttribute).toHaveBeenCalledWith('id', 'kbn-plugin-plugin-a');
6868
expect(fakeScriptTag.onload).toBeInstanceOf(Function);
@@ -85,7 +85,7 @@ test('`loadPluginBundles` includes the basePath', async () => {
8585
const fakeScriptTag = createdScriptTags[0];
8686
expect(fakeScriptTag.setAttribute).toHaveBeenCalledWith(
8787
'src',
88-
'/mybasepath/bundles/plugin/plugin-a/plugin-a.plugin.js'
88+
'/mybasepath/bundles/plugin:plugin-a/plugin-a.plugin.js'
8989
);
9090
});
9191

@@ -96,7 +96,7 @@ test('`loadPluginBundles` rejects if script.onerror is called', async () => {
9696
fakeScriptTag1.onerror(new Error('Whoa there!'));
9797

9898
await expect(loadPromise).rejects.toThrowErrorMatchingInlineSnapshot(
99-
`"Failed to load \\"plugin-a\\" bundle (/bundles/plugin/plugin-a/plugin-a.plugin.js)"`
99+
`"Failed to load \\"plugin-a\\" bundle (/bundles/plugin:plugin-a/plugin-a.plugin.js)"`
100100
);
101101
});
102102

@@ -105,7 +105,7 @@ test('`loadPluginBundles` rejects if timeout is reached', async () => {
105105
// Override the timeout to 1 ms for testi.
106106
loadPluginBundle(addBasePath, 'plugin-a', { timeoutMs: 1 })
107107
).rejects.toThrowErrorMatchingInlineSnapshot(
108-
`"Timeout reached when loading \\"plugin-a\\" bundle (/bundles/plugin/plugin-a/plugin-a.plugin.js)"`
108+
`"Timeout reached when loading \\"plugin-a\\" bundle (/bundles/plugin:plugin-a/plugin-a.plugin.js)"`
109109
);
110110
});
111111

@@ -115,11 +115,11 @@ test('`loadPluginBundles` rejects if bundle does attach an initializer to window
115115
const fakeScriptTag1 = createdScriptTags[0];
116116

117117
// Setup a fake initializer as if a plugin bundle had actually been loaded.
118-
coreWindow.__kbnBundles__['plugin/plugin-a'] = undefined;
118+
coreWindow.__kbnBundles__['plugin:plugin-a'] = undefined;
119119
// Call the onload callback
120120
fakeScriptTag1.onload();
121121

122122
await expect(loadPromise).rejects.toThrowErrorMatchingInlineSnapshot(
123-
`"Definition of plugin \\"plugin-a\\" should be a function (/bundles/plugin/plugin-a/plugin-a.plugin.js)."`
123+
`"Definition of plugin \\"plugin-a\\" should be a function (/bundles/plugin:plugin-a/plugin-a.plugin.js)."`
124124
);
125125
});

src/core/public/plugins/plugin_loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const loadPluginBundle: LoadPluginBundle = <
9393

9494
const script = document.createElement('script');
9595
// Assumes that all plugin bundles get put into the bundles/plugins subdirectory
96-
const bundlePath = addBasePath(`/bundles/plugin/${pluginName}/${pluginName}.plugin.js`);
96+
const bundlePath = addBasePath(`/bundles/plugin:${pluginName}/${pluginName}.plugin.js`);
9797
script.setAttribute('src', bundlePath);
9898
script.setAttribute('id', `kbn-plugin-${pluginName}`);
9999
script.setAttribute('async', '');

src/legacy/core_plugins/kibana/public/management/sections/index_patterns/create_index_pattern_wizard/lib/get_indices.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import { getIndices } from './get_indices';
2121
import { IndexPatternCreationConfig } from '../../../../../../../../../plugins/index_pattern_management/public';
2222
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
23-
import { LegacyApiCaller } from '../../../../../../../../../plugins/data/public/search';
23+
import { LegacyApiCaller } from '../../../../../../../../../plugins/data/public/search/legacy';
2424

2525
export const successfulResponse = {
2626
hits: {

src/legacy/ui/ui_render/bootstrap/template.js.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {
7878
'{{this}}',
7979
{{/each}}
8080
'{{regularBundlePath}}/commons.bundle.js',
81-
{{!-- '{{regularBundlePath}}/plugin/data/data.plugin.js', --}}
82-
'{{regularBundlePath}}/plugin/kibanaUtils/kibanaUtils.plugin.js',
83-
'{{regularBundlePath}}/plugin/esUiShared/esUiShared.plugin.js',
84-
'{{regularBundlePath}}/plugin/kibanaReact/kibanaReact.plugin.js'
81+
{{!-- '{{regularBundlePath}}/plugin:data/data.plugin.js', --}}
82+
'{{regularBundlePath}}/plugin:kibanaUtils/kibanaUtils.plugin.js',
83+
'{{regularBundlePath}}/plugin:esUiShared/esUiShared.plugin.js',
84+
'{{regularBundlePath}}/plugin:kibanaReact/kibanaReact.plugin.js'
8585
], function () {
8686
load([
8787
'{{regularBundlePath}}/{{appId}}.bundle.js',

src/optimize/bundles_route/bundles_route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export function createBundlesRoute({
7979
),
8080
...npUiPluginPublicDirs.map(({ id, path }) =>
8181
buildRouteForBundles(
82-
`${basePublicPath}/bundles/plugin/${id}/`,
83-
`/bundles/plugin/${id}/`,
82+
`${basePublicPath}/bundles/plugin:${id}/`,
83+
`/bundles/plugin:${id}/`,
8484
path,
8585
fileHashCache
8686
)

0 commit comments

Comments
 (0)