Skip to content

Commit

Permalink
Merge branch 'master' into comments-to-case-view
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine authored Mar 2, 2020
2 parents f0d4bec + c81e0da commit 326191f
Show file tree
Hide file tree
Showing 21 changed files with 128 additions and 58 deletions.
5 changes: 5 additions & 0 deletions docs/redirects.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ This page has moved. Please see <<reporting-getting-started>>.

This page has moved. Please see <<reporting-getting-started>>.

[role="exclude",id="add-sample-data"]
== Add sample data

This page has moved. Please see <<get-data-in>>.

[role="exclude",id="tilemap"]
== Coordinate map

Expand Down
70 changes: 40 additions & 30 deletions docs/user/getting-started.asciidoc
Original file line number Diff line number Diff line change
@@ -1,54 +1,65 @@
[[getting-started]]
= Getting Started
= Get started

[partintro]
--

You’re new to Kibana and want to give it a try. {kib} has sample data sets and
tutorials to help you get started.
Ready to try out {kib} and see what it can do? To quickest way to get started with {kib} is to set up on Cloud, then add a sample data set that helps you get a handle on the full range of {kib} features.

[float]
=== Sample data
[[cloud-set-up]]
== Set up on Cloud

You can use the <<add-sample-data, sample data
sets>> to take {kib} for a test ride without having
to go through the process of loading data yourself. With one click,
you can install a sample data set and start interacting with
{kib} visualizations in seconds. You can access the sample data
from the {kib} home page.
To access {kib} in a single click, run our hosted Elasticsearch Service on Elastic Cloud.

[float]
. Log into the link:https://cloud.elastic.co/[Elasticsearch Service Console].
If you need an account, register for a link:https://www.elastic.co/cloud/elasticsearch-service/signup[free 14-day trial].

. Click *Create deployment*, then give your deployment a name.

=== Add data tutorials
{kib} has built-in *Add Data* tutorials to help you set up
data flows in the Elastic Stack. These tutorials are available
from the Kibana home page. In *Add Data to Kibana*, find the data type
you’re interested in, and click its button to view a list of available tutorials.
. To use the default options, click *Create deployment*. You can modify the other deployment options, but the default options are great to get started.

Be sure to copy down the password for the `elastic` user and Cloud ID information. You'll need that later.

[float]
=== Hands-on experience
[[get-data-in]]
== Get data into {kib}

The easiest way to get data into {kib} is to add a sample data set.

{kib} has several sample data sets that you can use before loading your own data:

* *Sample eCommerce orders* includes visualizations for tracking product-related information,
such as cost, revenue, and price.

* *Sample flight data* includes visualizations for monitoring flight routes.

The following tutorials walk you through searching, analyzing,
and visualizing data.
* *Sample web logs* includes visualizations for monitoring website traffic.

* <<tutorial-sample-data, Explore Kibana using sample data>>. You'll
learn to filter and query data, edit visualizations, and interact with dashboards.
To use the sample data sets:

* <<tutorial-build-dashboard, Build your own dashboard>>. You'll manually load a data set and build
your own visualizations and dashboard.
. Go to the {kib} home page.

. Click *Load a data set and a {kib} dashboard*.

. Click *View data* and view the prepackaged dashboards, maps, and more.

[role="screenshot"]
image::images/add-sample-data.png[]

NOTE: The timestamps in the sample data sets are relative to when they are installed.
If you uninstall and reinstall a data set, the timestamps change to reflect the most recent installation.

[float]
=== Before you begin
[[getting-started-next-steps]]
== Next steps

Make sure you've <<install, installed Kibana>> and established
a <<connect-to-elasticsearch, connection to Elasticsearch>>.
* To get a hands-on experience creating visualizations, follow the <<tutorial-sample-data, add sample data>> tutorial.

If you are running our hosted Elasticsearch Service on Elastic Cloud, you access Kibana with a single click. (You can {ess-trial}[sign up for a free trial] and start exploring data in minutes.)
* If you're ready to load an actual data set and build a dashboard, follow the <<tutorial-build-dashboard, build your own dashboard>> tutorial.

--

include::{kib-repo-dir}/getting-started/add-sample-data.asciidoc[]

include::{kib-repo-dir}/getting-started/tutorial-sample-data.asciidoc[]

include::{kib-repo-dir}/getting-started/tutorial-full-experience.asciidoc[]
Expand All @@ -60,4 +71,3 @@ include::{kib-repo-dir}/getting-started/tutorial-discovering.asciidoc[]
include::{kib-repo-dir}/getting-started/tutorial-visualizing.asciidoc[]

include::{kib-repo-dir}/getting-started/tutorial-dashboard.asciidoc[]

4 changes: 2 additions & 2 deletions docs/user/index.asciidoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
include::introduction.asciidoc[]

include::getting-started.asciidoc[]

include::setup.asciidoc[]

include::monitoring/configuring-monitoring.asciidoc[]

include::security/securing-kibana.asciidoc[]

include::getting-started.asciidoc[]

include::discover.asciidoc[]

include::visualize.asciidoc[]
Expand Down
2 changes: 0 additions & 2 deletions src/legacy/core_plugins/kibana/public/kibana.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { npSetup } from 'ui/new_platform';

// import the uiExports that we want to "use"
import 'uiExports/home';
import 'uiExports/visTypes';

import 'uiExports/visualize';
import 'uiExports/savedObjectTypes';
import 'uiExports/fieldFormatEditors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import 'ui/autoload/all';
// Used to run esaggs queries
import 'uiExports/fieldFormats';
import 'uiExports/search';
import 'uiExports/visRequestHandlers';
import 'uiExports/visResponseHandlers';
// Used for kibana_context function

import 'uiExports/savedObjectTypes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export default function(kibana) {
return new kibana.Plugin({
uiExports: {
visTypes: ['plugins/kbn_tp_custom_visualizations/self_changing_vis/self_changing_vis'],
hacks: ['plugins/kbn_tp_custom_visualizations/self_changing_vis/self_changing_vis'],
},
});
}
3 changes: 0 additions & 3 deletions x-pack/legacy/plugins/canvas/public/legacy_start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
// Import the uiExports that the application uses
// These will go away as these plugins are converted to NP
import 'ui/autoload/all';
import 'uiExports/visTypes';
import 'uiExports/visResponseHandlers';
import 'uiExports/visRequestHandlers';
import 'uiExports/savedObjectTypes';
import 'uiExports/spyModes';
import 'uiExports/embeddableFactories';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import { uiModules } from 'ui/modules';

// import the uiExports that we want to "use"
import 'uiExports/contextMenuActions';
import 'uiExports/visTypes';
import 'uiExports/visResponseHandlers';
import 'uiExports/visRequestHandlers';

import 'uiExports/inspectorViews';
import 'uiExports/interpreter';
import 'uiExports/savedObjectTypes';
Expand Down
1 change: 0 additions & 1 deletion x-pack/legacy/plugins/lens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const lens: LegacyPluginInitializer = kibana => {
embeddableFactories: [`plugins/${PLUGIN_ID}/legacy`],
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
mappings,
visTypes: ['plugins/lens/register_vis_type_alias'],
savedObjectsManagement: {
lens: {
defaultSearchField: 'title',
Expand Down
7 changes: 5 additions & 2 deletions x-pack/legacy/plugins/lens/public/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
*/

import { npSetup, npStart } from 'ui/new_platform';
import { getFormat } from './legacy_imports';
import { getFormat, visualizations } from './legacy_imports';

export * from './types';

import { plugin } from './index';

const pluginInstance = plugin();
pluginInstance.setup(npSetup.core, { ...npSetup.plugins, __LEGACY: { formatFactory: getFormat } });
pluginInstance.setup(npSetup.core, {
...npSetup.plugins,
__LEGACY: { formatFactory: getFormat, visualizations },
});
pluginInstance.start(npStart.core, npStart.plugins);
2 changes: 2 additions & 0 deletions x-pack/legacy/plugins/lens/public/legacy_imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
*/

export { getFormat, FormatFactory } from 'ui/visualize/loader/pipeline_helpers/utilities';
export { setup as visualizations } from '../../../../../src/legacy/core_plugins/visualizations/public/np_ready/public/legacy';
export { VisualizationsSetup } from '../../../../../src/legacy/core_plugins/visualizations/public';
7 changes: 6 additions & 1 deletion x-pack/legacy/plugins/lens/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ import {
import { FormatFactory } from './legacy_imports';
import { IEmbeddableSetup, IEmbeddableStart } from '../../../../../src/plugins/embeddable/public';
import { EditorFrameStart } from './types';
import { getLensAliasConfig } from './vis_type_alias';
import { VisualizationsSetup } from './legacy_imports';

export interface LensPluginSetupDependencies {
kibanaLegacy: KibanaLegacySetup;
Expand All @@ -46,6 +48,7 @@ export interface LensPluginSetupDependencies {
embeddable: IEmbeddableSetup;
__LEGACY: {
formatFactory: FormatFactory;
visualizations: VisualizationsSetup;
};
}

Expand Down Expand Up @@ -81,7 +84,7 @@ export class LensPlugin {
expressions,
data,
embeddable,
__LEGACY: { formatFactory },
__LEGACY: { formatFactory, visualizations },
}: LensPluginSetupDependencies
) {
const editorFrameSetupInterface = this.editorFrameService.setup(core, {
Expand All @@ -100,6 +103,8 @@ export class LensPlugin {
this.datatableVisualization.setup(core, dependencies);
this.metricVisualization.setup(core, dependencies);

visualizations.types.registerAlias(getLensAliasConfig());

kibanaLegacy.registerLegacyApp({
id: 'lens',
title: NOT_INTERNATIONALIZED_PRODUCT_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
*/

import { i18n } from '@kbn/i18n';
import { setup as visualizations } from '../../../../../src/legacy/core_plugins/visualizations/public/np_ready/public/legacy';
import { getBasePath, getEditPath } from '../../../../plugins/lens/common';
import { VisTypeAlias } from '../../../../../src/legacy/core_plugins/visualizations/public/np_ready/public/vis_types';

visualizations.types.registerAlias({
export const getLensAliasConfig = (): VisTypeAlias => ({
aliasUrl: getBasePath(),
name: 'lens',
promotion: {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/maps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function maps(kibana) {
},
mappings,
migrations,
visTypes: ['plugins/maps/register_vis_type_alias'],
hacks: ['plugins/maps/register_vis_type_alias'],
},
config(Joi) {
return Joi.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ describe('helpers', () => {
description: '',
deletedEventIds: [],
eventIdToNoteIds: {},
eventType: 'raw',
eventType: 'all',
filters: [],
highlightedDropAndProviderId: '',
historyIds: [],
Expand Down Expand Up @@ -330,7 +330,7 @@ describe('helpers', () => {
description: '',
deletedEventIds: [],
eventIdToNoteIds: {},
eventType: 'raw',
eventType: 'all',
filters: [],
highlightedDropAndProviderId: '',
historyIds: [],
Expand Down Expand Up @@ -417,7 +417,7 @@ describe('helpers', () => {
description: '',
deletedEventIds: [],
eventIdToNoteIds: {},
eventType: 'raw',
eventType: 'all',
filters: [],
highlightedDropAndProviderId: '',
historyIds: [],
Expand Down Expand Up @@ -539,7 +539,7 @@ describe('helpers', () => {
description: '',
deletedEventIds: [],
eventIdToNoteIds: {},
eventType: 'raw',
eventType: 'all',
filters: [
{
$state: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const PickEventTypeComponents: React.FC<PickEventTypeProps> = ({
return (
<PickEventContainer>
<EuiSuperSelect
data-test-subj="pick-event-type"
fullWidth={false}
valueOfSelected={eventType}
onChange={onChangeEventType}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,49 @@ describe('Timeline', () => {

expect(wrapper.find('[data-test-subj="table-pagination"]').exists()).toEqual(false);
});

test('it defaults to showing `All events`', () => {
const wrapper = mount(
<TestProviders>
<MockedProvider mocks={mocks}>
<TimelineComponent
browserFields={mockBrowserFields}
columns={defaultHeaders}
id="foo"
dataProviders={mockDataProviders}
end={endDate}
filters={[]}
flyoutHeight={testFlyoutHeight}
flyoutHeaderHeight={flyoutHeaderHeight}
indexPattern={indexPattern}
indexToAdd={[]}
isLive={false}
itemsPerPage={5}
itemsPerPageOptions={[5, 10, 20]}
kqlMode="search"
kqlQueryExpression=""
loadingIndexName={false}
onChangeDataProviderKqlQuery={jest.fn()}
onChangeDroppableAndProvider={jest.fn()}
onChangeItemsPerPage={jest.fn()}
onDataProviderEdited={jest.fn()}
onDataProviderRemoved={jest.fn()}
onToggleDataProviderEnabled={jest.fn()}
onToggleDataProviderExcluded={jest.fn()}
show={true}
showCallOutUnauthorizedMsg={false}
start={startDate}
sort={sort}
toggleColumn={jest.fn()}
/>
</MockedProvider>
</TestProviders>
);

expect(wrapper.find('[data-test-subj="pick-event-type"] button').text()).toEqual(
'All events'
);
});
});

describe('event wire up', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const timelineDefaults: SubsetTimelineModel & Pick<TimelineModel, 'filter
dataProviders: [],
deletedEventIds: [],
description: '',
eventType: 'raw',
eventType: 'all',
eventIdToNoteIds: {},
highlightedDropAndProviderId: '',
historyIds: [],
Expand Down
3 changes: 2 additions & 1 deletion x-pack/plugins/remote_clusters/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
],
"requiredPlugins": [
"licensing",
"management"
"management",
"indexManagement"
],
"optionalPlugins": [
"usageCollection"
Expand Down
5 changes: 3 additions & 2 deletions x-pack/test/functional/apps/endpoint/policy_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
const testSubjects = getService('testSubjects');

// FLAKY: https://github.com/elastic/kibana/issues/57946
describe.skip('Endpoint Policy List', function() {
describe('Endpoint Policy List', function() {
this.tags(['ciGroup7']);
before(async () => {
await pageObjects.common.navigateToUrlWithBrowserHistory('endpoint', '/policy');
await pageObjects.endpoint.waitForTableToHaveData('policyTable');
});

it('loads the Policy List Page', async () => {
Expand All @@ -26,7 +27,7 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
});
it('shows policy count total', async () => {
const policyTotal = await testSubjects.getVisibleText('policyTotalCount');
expect(policyTotal).to.equal('0 Policies');
expect(policyTotal).to.equal('100 Policies');
});
it('includes policy list table', async () => {
await testSubjects.existOrFail('policyTable');
Expand Down
Loading

0 comments on commit 326191f

Please sign in to comment.