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

Drilldowns in examples #75640

Merged
merged 75 commits into from
Oct 5, 2020
Merged
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
ae8da5a
feat: 🎸 add telemetry for in-chart "Explore underlying data"
streamich Aug 6, 2020
23f7154
feat: 🎸 add telemetry for in-chart "Explore underlying data"
streamich Aug 6, 2020
8e81488
Merge remote-tracking branch 'origin/master'
streamich Aug 18, 2020
838425a
refactor: 💡 move all drilldowns into a sub-folder
streamich Aug 18, 2020
8291550
feat: 🎸 setup example app section for ui_actions_enhanced
streamich Aug 18, 2020
bea92df
feat: 🎸 set up Drilldown Manager section
streamich Aug 18, 2020
c3933c0
feat: 🎸 open drilldown manager from example plugin
streamich Aug 18, 2020
d1dd1a2
refactor: 💡 rename supportedTriggers -> triggers prop
streamich Aug 18, 2020
1e81346
feat: 🎸 show dev warning if triggers prop is empty
streamich Aug 18, 2020
d80cce4
refactor: 💡 rename "supportedTriggers" -> "triggers" props
streamich Aug 18, 2020
7933266
feat: 🎸 open and close drilldown manager from example plugin
streamich Aug 18, 2020
ca46f4c
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 19, 2020
a80b461
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 19, 2020
705008d
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 20, 2020
0a0438c
feat: 🎸 add sample ML job trigger
streamich Aug 20, 2020
49153c5
feat: 🎸 add sample ML URL drilldown
streamich Aug 20, 2020
2c9ddae
refactor: 💡 move KibanaURL to share plugin
streamich Aug 20, 2020
2ce9d09
refactor: 💡 add index file to ml drilldown
streamich Aug 20, 2020
664cec2
feat: 🎸 add AbstractDashboardDrilldown
streamich Aug 20, 2020
3da8c9b
refactor: 💡 make dashboard drilldown use abstract drilldown
streamich Aug 20, 2020
2505558
refactor: 💡 rename dashboard drilldown to embeddable drilldown
streamich Aug 20, 2020
0e0b469
feat: 🎸 add Dashboard drilldown to sample plugin
streamich Aug 20, 2020
f54260b
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 21, 2020
a64e714
feat: 🎸 open dashboard drilldown in list view
streamich Aug 21, 2020
2d03893
feat: 🎸 add drilldown execute button
streamich Aug 21, 2020
abf6700
refactor: 💡 move drilldown React hooks into /hooks folder
streamich Aug 21, 2020
ee9c77a
test: 💍 fix tests after renaming triggers
streamich Aug 21, 2020
3399275
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 21, 2020
0c6ebb4
chore: 🤖 populate "requireBundles"
streamich Aug 21, 2020
334e26e
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Aug 27, 2020
e1f9095
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 10, 2020
a935a2f
chore: 🤖 catch up with master
streamich Sep 16, 2020
70960f0
fix: 🐛 fix TypeScript errors
streamich Sep 16, 2020
8cc1723
fix: 🐛 fix Kibana plugin dependency
streamich Sep 16, 2020
cf02239
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 18, 2020
5b9dfa2
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 22, 2020
8569cbf
chore: 🤖 remoe unused import
streamich Sep 22, 2020
9a40779
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 23, 2020
bfa7306
feat: 🎸 persist drilldown manager state across app navigations
streamich Sep 23, 2020
f870258
refactor: 💡 move no-embeddable example into a seprate file
streamich Sep 23, 2020
af3664f
feat: 🎸 set up example with embeddable
streamich Sep 23, 2020
a718494
feat: 🎸 improve embeddable example
streamich Sep 23, 2020
fabcab6
refactor: 💡 rename without embeddable example
streamich Sep 23, 2020
07cb5dc
feat: 🎸 set up no-embeddable single click example
streamich Sep 23, 2020
9175ab9
feat: 🎸 add dashboard drilldown to single button example
streamich Sep 23, 2020
f19591f
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 23, 2020
f5c550b
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 24, 2020
05e0929
chore: 🤖 catch up with master
streamich Sep 28, 2020
e86a36a
fix: 🐛 remove unused margin
streamich Sep 28, 2020
5f0246f
fix: 🐛 make "Get more actions" translation static
streamich Sep 28, 2020
d8958b5
chore: 🤖 remove old dashboard drilldown definition
streamich Sep 28, 2020
595990c
refactor: 💡 rename samples to generic names
streamich Sep 28, 2020
1c5be9f
refactor: 💡 make app 1 example drilldown "hello world"
streamich Sep 28, 2020
1b8492c
chore: 🤖 remove unused required bundle
streamich Sep 28, 2020
ab5cc96
chore: 🤖 add dashboardEnhanced back
streamich Sep 28, 2020
cdf48c7
[kbn/optimizer] only build xpack examples when building xpack plugins
spalger Sep 28, 2020
d6b6f74
move alerting_example into x-pack/examples
spalger Sep 28, 2020
ead9885
remove filter for alertingExample plugin in oss plugins CI step
spalger Sep 28, 2020
ce654ee
revert unrelated change
spalger Sep 28, 2020
dd2ce1d
Merge remote-tracking branch 'spalger/fix/optimizer/no-xpack-examples…
streamich Sep 28, 2020
08dd6db
Merge branch 'master' into drilldowns-in-examples
elasticmachine Sep 29, 2020
7f4b8bc
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 29, 2020
be41664
fix: 🐛 use correct prop name
streamich Sep 29, 2020
d848d29
test: 💍 fix embeddable-to-dashboard drilldown mock
streamich Sep 29, 2020
83701c0
test: 💍 fix a test after refactor
streamich Sep 29, 2020
092496b
chore: 🤖 catch up with master
streamich Sep 29, 2020
d04d7fc
chore: 🤖 remove unused import
streamich Sep 29, 2020
9497d25
chore: 🤖 catch up with master
streamich Sep 30, 2020
8140373
chore: 🤖 add dashboard_enahcned to example plugin
streamich Sep 30, 2020
a2751ef
Merge remote-tracking branch 'upstream/master' into drilldowns-in-exa…
streamich Sep 30, 2020
0343d0e
chore: 🤖 address review comments
streamich Sep 30, 2020
3de04fe
feat: 🎸 add description to UI Actions Enhanced examples
streamich Sep 30, 2020
ee6769d
docs: ✏️ improve docs of example plugin
streamich Sep 30, 2020
0c5ac3b
chore: 🤖 catch up with master
streamich Oct 1, 2020
3eb5e27
Merge branch 'master' into drilldowns-in-examples
kibanamachine Oct 5, 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
feat: 🎸 add sample ML job trigger
streamich committed Aug 20, 2020
commit 0a0438c7d9d1b1b271eb0e6766f7c998b809e3ec
3 changes: 3 additions & 0 deletions x-pack/examples/ui_actions_enhanced_examples/public/plugin.ts
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ import { createStartServicesGetter } from '../../../../src/plugins/kibana_utils/
import { DiscoverSetup, DiscoverStart } from '../../../../src/plugins/discover/public';
import { DashboardHelloWorldOnlyRangeSelectDrilldown } from './drilldowns/dashboard_hello_world_only_range_select_drilldown';
import { DeveloperExamplesSetup } from '../../../../examples/developer_examples/public';
import { sampleMlJobClickTrigger } from './triggers';
import { mount } from './mount';

export interface SetupDependencies {
@@ -45,6 +46,8 @@ export class UiActionsEnhancedExamplesPlugin
uiActions.registerDrilldown(new DashboardToUrlDrilldown());
uiActions.registerDrilldown(new DashboardToDiscoverDrilldown({ start }));

uiActions.registerTrigger(sampleMlJobClickTrigger);

core.application.register({
id: 'ui_actions_enhanced-explorer',
title: 'UI Actions Enhanced Explorer',
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export * from './sample_ml_triggers';
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { Trigger } from '../../../../../src/plugins/ui_actions/public';

export const SAMPLE_ML_JOB_CLICK_TRIGGER = 'SAMPLE_ML_JOB_CLICK_TRIGGER';

export const sampleMlJobClickTrigger: Trigger<'SAMPLE_ML_JOB_CLICK_TRIGGER'> = {
id: SAMPLE_ML_JOB_CLICK_TRIGGER,
title: 'ML job click',
description: 'Sample trigger, which represents a click in ML app on an ML job.',
};

declare module '../../../../../src/plugins/ui_actions/public' {
export interface TriggerContextMapping {
[SAMPLE_ML_JOB_CLICK_TRIGGER]: SampleMlJobClickContext;
}
}

export interface SampleMlJobClickContext {
job: SampleMlJob;
}

export interface SampleMlJob {
job_id: string;
job_type: 'anomaly_detector';
description: string;
}