Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1381e9a
Make check_core_api_changes script faster (#47068)
joshdover Oct 1, 2019
bb9b4c7
[ML] Update data-test-subj attributes for action buttons and add ml n…
pheyos Oct 2, 2019
03ccb43
[Discover] De-angularize side bar search field (#46679)
kertal Oct 2, 2019
28c4bbf
[ML] Job type page (#46933)
darnautov Oct 2, 2019
7279f06
[ML] Remove deprecated force parameter. (#46361)
walterra Oct 2, 2019
1a452cd
Removing default title from saving a new search in Discover (#47031)
Oct 2, 2019
d8a5765
[Vis: Default Editor] Prevent disabling of the only metrics agg (#46575)
maryia-lapata Oct 2, 2019
2b06c02
[Graph] Reactify visualization (#46799)
flash1293 Oct 2, 2019
eab5553
[Uptime] Fix jerky monitor list expanded row behavior (#47080)
andrewvc Oct 2, 2019
0cd9d6c
Create a pre wired version of SearchBar (#46702)
Oct 2, 2019
2f80cc5
[Lens] Field item hovers, empty state graphic, and operation not appl…
cchaos Oct 2, 2019
68f20dc
[Maps] More compressed forms (#47043)
cchaos Oct 2, 2019
d3fb7b8
[SR] render alert icon in policy table if last snapshot failed (#46960)
alisonelizabeth Oct 2, 2019
58c1f87
[SIEM] Table Styles & Markup Tweaks (#46300)
MichaelMarcialis Oct 2, 2019
51d734e
Changing status code colors on trace summary (#47114)
cauemarcondes Oct 2, 2019
0bfa7ca
Support space-specific default routes (#44678)
legrego Oct 2, 2019
d243697
[Console] Fix Safari layout issue (#47100)
jloleysens Oct 2, 2019
d935b3d
[Monitoring] Metricbeat Migration Wizard (last step!!) (#45799)
chrisronline Oct 2, 2019
3f7c3e0
[Monitoring] Ensure all charts use the configured timezone (#45949)
chrisronline Oct 2, 2019
6f09ecc
Upgrade EUI to 14.4.0 (#46949)
thompsongl Oct 2, 2019
e6ace31
[Lens] Make horizontal bar chart a first-class chart (#47062)
chrisdavies Oct 2, 2019
f8810d1
[SIEM] Start of deprecated lifecycle refactor (#46293)
stephmilovic Oct 2, 2019
e81494f
SR: SLM retention UI (#45193)
alisonelizabeth Oct 2, 2019
4dc4566
Merge master
chrisdavies Oct 2, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions config/kibana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false

# Specifies the default route when opening Kibana. You can use this setting to modify
# the landing page when opening Kibana.
#server.defaultRoute: /app/kibana

# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576

Expand Down
4 changes: 0 additions & 4 deletions docs/setup/settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ deprecation warning at startup. This setting cannot end in a slash (`/`).
`server.customResponseHeaders:`:: *Default: `{}`* Header names and values to
send on all responses to the client from the Kibana server.

[[server-default]]`server.defaultRoute:`:: *Default: "/app/kibana"* This setting
specifies the default route when opening Kibana. You can use this setting to
modify the landing page when opening Kibana. Supported on {ece}.

`server.host:`:: *Default: "localhost"* This setting specifies the host of the
back end server.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@babel/register": "^7.5.5",
"@elastic/charts": "^12.0.2",
"@elastic/datemath": "5.0.2",
"@elastic/eui": "14.3.0",
"@elastic/eui": "14.4.0",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.3",
Expand Down
78 changes: 44 additions & 34 deletions src/dev/run_check_core_api_changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,51 @@ const runApiExtractor = (
return Extractor.invoke(config, options);
};

async function run(folder: string): Promise<boolean> {
interface Options {
accept: boolean;
docs: boolean;
help: boolean;
}

async function run(
folder: string,
{ log, opts }: { log: ToolingLog; opts: Options }
): Promise<boolean> {
log.info(`Core ${folder} API: checking for changes in API signature...`);

const { apiReportChanged, succeeded } = runApiExtractor(log, folder, opts.accept);

// If we're not accepting changes and there's a failure, exit.
if (!opts.accept && !succeeded) {
return false;
}

// Attempt to generate docs even if api-extractor didn't succeed
if ((opts.accept && apiReportChanged) || opts.docs) {
try {
await renameExtractedApiPackageName(folder);
await runApiDocumenter(folder);
} catch (e) {
log.error(e);
return false;
}
log.info(`Core ${folder} API: updated documentation ✔`);
}

// If the api signature changed or any errors or warnings occured, exit with an error
// NOTE: Because of https://github.com/Microsoft/web-build-tools/issues/1258
// api-extractor will not return `succeeded: false` when the API changes.
return !apiReportChanged && succeeded;
}

(async () => {
const log = new ToolingLog({
level: 'info',
writeTo: process.stdout,
});

const extraFlags: string[] = [];
const opts = getopts(process.argv.slice(2), {
const opts = (getopts(process.argv.slice(2), {
boolean: ['accept', 'docs', 'help'],
default: {
project: undefined,
Expand All @@ -155,7 +192,7 @@ async function run(folder: string): Promise<boolean> {
extraFlags.push(name);
return false;
},
});
}) as any) as Options;

if (extraFlags.length > 0) {
for (const flag of extraFlags) {
Expand Down Expand Up @@ -193,45 +230,18 @@ async function run(folder: string): Promise<boolean> {
return !(extraFlags.length > 0);
}

log.info(`Core ${folder} API: checking for changes in API signature...`);

try {
log.info(`Core: Building types...`);
await runBuildTypes();
} catch (e) {
log.error(e);
return false;
}

const { apiReportChanged, succeeded } = runApiExtractor(log, folder, opts.accept);

// If we're not accepting changes and there's a failure, exit.
if (!opts.accept && !succeeded) {
return false;
}

// Attempt to generate docs even if api-extractor didn't succeed
if ((opts.accept && apiReportChanged) || opts.docs) {
try {
await renameExtractedApiPackageName(folder);
await runApiDocumenter(folder);
} catch (e) {
log.error(e);
return false;
}
log.info(`Core ${folder} API: updated documentation ✔`);
}

// If the api signature changed or any errors or warnings occured, exit with an error
// NOTE: Because of https://github.com/Microsoft/web-build-tools/issues/1258
// api-extractor will not return `succeeded: false` when the API changes.
return !apiReportChanged && succeeded;
}

(async () => {
const publicSucceeded = await run('public');
const serverSucceeded = await run('server');
const folders = ['public', 'server'];
const results = await Promise.all(folders.map(folder => run(folder, { log, opts })));

if (!publicSucceeded || !serverSucceeded) {
if (results.find(r => r === false) !== undefined) {
process.exitCode = 1;
}
})();
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import React, { useCallback, useRef, useState } from 'react';
import React, { useCallback, useState } from 'react';
import { debounce } from 'lodash';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';

Expand Down Expand Up @@ -52,8 +52,6 @@ export function Main() {
const [showSettings, setShowSettings] = useState(false);
const [showHelp, setShowHelp] = useState(false);

const containerRef = useRef<null | HTMLDivElement>(null);

const [firstPanelWidth, secondPanelWidth] = storage.get(StorageKeys.WIDTH, [
INITIAL_PANEL_WIDTH,
INITIAL_PANEL_WIDTH,
Expand All @@ -71,9 +69,9 @@ export function Main() {
};

return (
<div className="consoleContainer" style={{ height: '100%', width: '100%' }} ref={containerRef}>
<>
<EuiFlexGroup
style={{ height: '100%' }}
className="consoleContainer"
gutterSize="none"
direction="column"
responsive={false}
Expand Down Expand Up @@ -118,6 +116,6 @@ export function Main() {
{showSettings ? <Settings onClose={() => setShowSettings(false)} /> : null}

{showHelp ? <HelpPanel onClose={() => setShowHelp(false)} /> : null}
</div>
</>
);
}
3 changes: 2 additions & 1 deletion src/legacy/core_plugins/console/public/quarantined/_app.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// TODO: Move all of the styles here (should be modularised by, e.g., CSS-in-JS or CSS modules).
#consoleRoot {
height: 100%;
display: flex;
flex: 1 1 auto;
// Make sure the editor actions don't create scrollbars on this container
// SASSTODO: Uncomment when tooltips are EUI-ified (inside portals)
overflow: hidden;
Expand Down
5 changes: 4 additions & 1 deletion src/legacy/core_plugins/data/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ export const setup = dataPlugin.setup(npSetup.core, {
__LEGACY: legacyPlugin.setup(),
});

export const start = dataPlugin.start(npStart.core);
export const start = dataPlugin.start(npStart.core, {
data: npStart.plugins.data,
__LEGACY: legacyPlugin.start(),
});
46 changes: 42 additions & 4 deletions src/legacy/core_plugins/data/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
*/

import { CoreSetup, CoreStart, Plugin } from '../../../../core/public';
import { SearchService, SearchSetup } from './search';
import { SearchService, SearchSetup, createSearchBar, StatetfulSearchBarProps } from './search';
import { QueryService, QuerySetup } from './query';
import { FilterService, FilterSetup } from './filter';
import { TimefilterService, TimefilterSetup } from './timefilter';
import { IndexPatternsService, IndexPatternsSetup } from './index_patterns';
import { LegacyDependenciesPluginSetup } from './shim/legacy_dependencies_plugin';
import {
LegacyDependenciesPluginSetup,
LegacyDependenciesPluginStart,
} from './shim/legacy_dependencies_plugin';
import { DataPublicPluginStart } from '../../../../plugins/data/public';

/**
* Interface for any dependencies on other plugins' `setup` contracts.
Expand All @@ -34,6 +38,11 @@ export interface DataPluginSetupDependencies {
__LEGACY: LegacyDependenciesPluginSetup;
}

export interface DataPluginStartDependencies {
data: DataPublicPluginStart;
__LEGACY: LegacyDependenciesPluginStart;
}

/**
* Interface for this plugin's returned `setup` contract.
*
Expand All @@ -47,6 +56,22 @@ export interface DataSetup {
timefilter: TimefilterSetup;
}

/**
* Interface for this plugin's returned `start` contract.
*
* @public
*/
export interface DataStart {
indexPatterns: IndexPatternsSetup;
filter: FilterSetup;
query: QuerySetup;
search: SearchSetup;
timefilter: TimefilterSetup;
ui: {
SearchBar: React.ComponentType<StatetfulSearchBarProps>;
};
}

/**
* Data Plugin - public
*
Expand All @@ -58,7 +83,9 @@ export interface DataSetup {
* in the setup/start interfaces. The remaining items exported here are either types,
* or static code.
*/
export class DataPlugin implements Plugin<DataSetup, {}, DataPluginSetupDependencies> {
export class DataPlugin
implements
Plugin<DataSetup, DataStart, DataPluginSetupDependencies, DataPluginStartDependencies> {
// Exposed services, sorted alphabetically
private readonly filter: FilterService = new FilterService();
private readonly indexPatterns: IndexPatternsService = new IndexPatternsService();
Expand Down Expand Up @@ -96,9 +123,20 @@ export class DataPlugin implements Plugin<DataSetup, {}, DataPluginSetupDependen
return this.setupApi;
}

public start(core: CoreStart) {
public start(core: CoreStart, { __LEGACY, data }: DataPluginStartDependencies) {
const SearchBar = createSearchBar({
core,
store: __LEGACY.storage,
timefilter: this.setupApi.timefilter,
filterManager: this.setupApi.filter.filterManager,
autocomplete: data.autocomplete,
});

return {
...this.setupApi!,
ui: {
SearchBar,
},
};
}

Expand Down
Loading