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 #61219

Merged
merged 179 commits into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from 155 commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
502a60a
Add drilldown wizard components
Dosant Mar 9, 2020
a7ed6ab
Dynamic actions (#58216)
streamich Mar 9, 2020
43583c2
Drilldown context menu (#59638)
streamich Mar 9, 2020
e145241
Add basic ActionFactoryService. Pass data from it into components ins…
Dosant Mar 9, 2020
81e6bcb
Dashboard x pack (#59653)
streamich Mar 9, 2020
1f2cc4c
feat: 🎸 "implement" registerDrilldown() method
streamich Mar 9, 2020
86885c4
fix ConfigurableBaseConfig type
Dosant Mar 9, 2020
6463118
Implement connected flyout_manage_drilldowns component
Dosant Mar 9, 2020
dcacf10
Merge branch 'master' of github.com:elastic/kibana into drilldowns
Dosant Mar 9, 2020
26dfa30
Merge branch 'master' of github.com:elastic/kibana into drilldowns
Dosant Mar 10, 2020
d3cd9e8
Simplify connected flyout manage drilldowns component. Remove interme…
Dosant Mar 10, 2020
1077518
Merge branch 'master' of github.com:elastic/kibana into drilldowns
Dosant Mar 10, 2020
840e873
clean up data-testid workaround in new components
Dosant Mar 10, 2020
f057979
Connect welcome message to storage
Dosant Mar 10, 2020
d60fc96
require `context` in Presentable. drill context down through wizard c…
Dosant Mar 10, 2020
140c5dc
Drilldown factory (#59823)
streamich Mar 10, 2020
b8cf696
Drilldown registration (#59834)
streamich Mar 10, 2020
2e65fd0
Drilldown events 3 (#59854)
streamich Mar 11, 2020
beb053b
Drilldown events 4 (#59876)
streamich Mar 11, 2020
ab6fb4b
Drilldown events 5 (#59885)
streamich Mar 11, 2020
12b8a3f
Merge remote-tracking branch 'upstream/master' into drilldowns
streamich Mar 11, 2020
27b1854
Merge branch 'master' into drilldowns
elasticmachine Mar 11, 2020
0f3ff3e
basic integration of components with dynamicActionManager
Dosant Mar 11, 2020
5009f71
Merge branch 'drilldowns' of github.com:elastic/kibana into drilldowns
Dosant Mar 11, 2020
f176550
fix: 🐛 don't overwrite explicitInput with combined input (#59938)
streamich Mar 11, 2020
4a4766e
display drilldown count in embeddable edit mode
mattkime Mar 11, 2020
0c14ff0
display drilldown count in embeddable edit mode
mattkime Mar 11, 2020
0d4bee2
improve wizard components. more tests.
Dosant Mar 12, 2020
ae98c6b
partial progress, dashboard drilldowns (#59977)
mattkime Mar 12, 2020
3200151
Manage drilldowns toasts. Add basic error handling.
Dosant Mar 12, 2020
ff4e9ad
support order in action factory selector
Dosant Mar 12, 2020
c7d4aa6
fix column order in manage drilldowns list
Dosant Mar 12, 2020
c731afa
remove accidental debug info
Dosant Mar 12, 2020
7d47d9f
Merge branch 'master' into drilldowns
elasticmachine Mar 12, 2020
f2d9056
bunch of nit ui fixes
Dosant Mar 13, 2020
8ad5cd4
Drilldowns reactive action manager (#60099)
streamich Mar 13, 2020
3c94332
Merge branch 'master' into drilldowns
elasticmachine Mar 13, 2020
6f59d1a
Drilldowns various 2 (#60103)
streamich Mar 13, 2020
66e791e
test: 💍 stub DynamicActionManager tests (#60104)
streamich Mar 13, 2020
1f238fe
Drilldowns review 1 (#60139)
streamich Mar 13, 2020
a772987
chore: 🤖 catch up with master
streamich Mar 16, 2020
e66513c
fix: 🐛 correct merge
streamich Mar 16, 2020
6efef2b
Drilldowns various 4 (#60264)
streamich Mar 16, 2020
537f8ee
workaround issue with closing flyout when navigating away
Dosant Mar 16, 2020
0ad8933
fix react key issue in action_wizard
Dosant Mar 16, 2020
94894c1
don’t open 2 flyouts
Dosant Mar 16, 2020
65f5414
fix action order
Dosant Mar 16, 2020
d3487ab
Merge branch 'master' into drilldowns
elasticmachine Mar 16, 2020
a405f83
Drilldowns reload stored (#60336)
streamich Mar 16, 2020
894aec7
chore: 🤖 catch up with master
streamich Mar 16, 2020
cfdab22
Drilldowns triggers (#60339)
streamich Mar 16, 2020
e96f815
Merge branch 'master' into drilldowns
elasticmachine Mar 16, 2020
62edd23
fix: 🐛 stop infinite re-rendering
streamich Mar 17, 2020
7a7beeb
Drilldowns multitrigger (#60357)
streamich Mar 17, 2020
5418305
"Create drilldown" flyout - design cleanup (#60309)
andreadelrio Mar 17, 2020
45f6f4d
basic unit tests for flyout_create_drildown action
Dosant Mar 17, 2020
ceb5cfe
Drilldowns finalize (#60371)
streamich Mar 17, 2020
4646ad2
Merge branch 'master' into drilldowns
elasticmachine Mar 17, 2020
6d0b8cb
basic unit tests for drilldown actions
Dosant Mar 17, 2020
ab3f4bf
Merge branch 'drilldowns' of github.com:elastic/kibana into drilldowns
Dosant Mar 17, 2020
5b4434b
Merge branch 'master' of github.com:elastic/kibana into drilldowns
mattkime Mar 17, 2020
65fae5e
Merge branch 'master' into drilldowns
mattkime Mar 17, 2020
6229d4f
Merge branch 'drilldowns' of github.com:elastic/kibana into drilldowns
mattkime Mar 17, 2020
1252f37
Drilldowns finalize 2 (#60510)
streamich Mar 18, 2020
243e5ce
Merge branch 'master' into drilldowns
elasticmachine Mar 19, 2020
469250f
feat: 🎸 don't show "OPTIONS" title on drilldown context menus
streamich Mar 19, 2020
c73319a
feat: 🎸 add server-side for x-pack dashboard plugin
streamich Mar 19, 2020
2280fdf
feat: 🎸 disable Drilldowns for TSVB
streamich Mar 19, 2020
adcb0a3
feat: 🎸 enable drilldowns on kibana.yml feature flag
streamich Mar 19, 2020
9e22e55
feat: 🎸 add feature flag comment to kibana.yml
streamich Mar 19, 2020
c3e6a61
Merge branch 'master' into drilldowns
elasticmachine Mar 19, 2020
ed8580a
feat: 🎸 remove places from drilldown interface
streamich Mar 20, 2020
73a91f3
refactor: 💡 remove place in factory context
streamich Mar 20, 2020
4d500b5
chore: 🤖 remove doExecute
streamich Mar 20, 2020
054fc8f
remove not needed now error_configure_action component
Dosant Mar 20, 2020
1e9efde
remove workaround for storybook
Dosant Mar 20, 2020
1a3e67b
feat: 🎸 improve DrilldownDefinition interface
streamich Mar 20, 2020
d1666ca
style: 💄 replace any by unknown
streamich Mar 20, 2020
32466a5
chore: 🤖 remove any
streamich Mar 20, 2020
df10920
chore: 🤖 make isConfigValid return type a boolean
streamich Mar 20, 2020
fb3bde9
Merge remote-tracking branch 'upstream/drilldowns' into drilldowns
streamich Mar 20, 2020
ce39459
Merge branch 'master' into drilldowns
elasticmachine Mar 20, 2020
d480655
refactor: 💡 move getDisplayName to factory, remove deprecated
streamich Mar 20, 2020
eb24e41
style: 💄 remove any
streamich Mar 20, 2020
930b695
feat: 🎸 improve ActionFactoryDefinition
streamich Mar 20, 2020
6a98f45
refactor: 💡 change visualize_embeddable params
streamich Mar 20, 2020
da49052
feat: 🎸 add dashboard dependency to dashboard_enhanced
streamich Mar 20, 2020
baf0f5e
style: 💄 rename drilldown plugin life-cycle contracts
streamich Mar 20, 2020
a5d7a38
refactor: 💡 do naming adjustments for dashboard drilldown
streamich Mar 20, 2020
36fb629
Merge branch 'master' into drilldowns
elasticmachine Mar 20, 2020
e68dcfb
fix: 🐛 fix Type error
streamich Mar 20, 2020
fcecc9a
Merge branch 'master' into drilldowns
elasticmachine Mar 20, 2020
47f1095
fix: 🐛 fix TypeScript type errors
streamich Mar 20, 2020
e678e06
test: 💍 fix test after refactor
streamich Mar 21, 2020
1604ab5
refactor: 💡 rename context -> placeContext in React component
streamich Mar 21, 2020
e14cf4a
Merge branch 'master' into drilldowns
elasticmachine Mar 21, 2020
03b2b37
Merge branch 'master' into drilldowns
elasticmachine Mar 22, 2020
d10aa7b
Merge branch 'master' into drilldowns
elasticmachine Mar 23, 2020
0d076d7
Merge branch 'master' into drilldowns
elasticmachine Mar 23, 2020
0dafa57
chore: 🤖 remove setting from kibana.yml
streamich Mar 23, 2020
29ee51c
refactor: 💡 change return type of getAction as per review
streamich Mar 23, 2020
2b162e8
remove custom css per review
Dosant Mar 23, 2020
de6c6b1
refactor: 💡 rename drilldownCount to eventCount
streamich Mar 23, 2020
88a81e2
style: 💄 remove any
streamich Mar 23, 2020
af3777c
Merge remote-tracking branch 'upstream/drilldowns' into drilldowns
streamich Mar 23, 2020
e29030f
refactor: 💡 change how uiActions are passed to vis embeddable
streamich Mar 23, 2020
78e64d6
Merge branch 'master' into drilldowns
elasticmachine Mar 23, 2020
00c42c4
chore: 🤖 catch up with master
streamich Mar 23, 2020
6cd07c5
style: 💄 remove unused import
streamich Mar 23, 2020
0f7c3f9
Merge branch 'master' into drilldowns
mattkime Mar 25, 2020
b601465
chore: 🤖 catch up with master
streamich Apr 3, 2020
f629570
fix: 🐛 pass in uiActions to visualize_embeddable
streamich Apr 3, 2020
b961a19
fix: 🐛 correctly register action
streamich Apr 3, 2020
69ef4c5
Merge branch 'master' into drilldowns
elasticmachine Apr 6, 2020
91ef01c
chore: 🤖 catch up with master
streamich Apr 9, 2020
1b9055b
fix: 🐛 fix type error
streamich Apr 9, 2020
c2ea2e3
chore: 🤖 remove unused translations
streamich Apr 9, 2020
57ddccf
Dynamic actions to xpack (#62647)
streamich Apr 9, 2020
bcd49ea
refactor: 💡 move action factories to x-pack (#63190)
streamich Apr 10, 2020
232755f
Merge branch 'master' into drilldowns
elasticmachine Apr 14, 2020
1824c20
chore: 🤖 remove kibana.yml flag (#62441)
streamich Apr 14, 2020
379ec52
Panel top right (#63466)
streamich Apr 15, 2020
4580997
chore: 🤖 catch up with master
streamich Apr 16, 2020
96f01d5
fix: 🐛 fix typecheck errors after merge
streamich Apr 16, 2020
b241b7f
support getHref in drilldowns (#63727)
Dosant Apr 17, 2020
74e2aa9
Merge branch 'master' into drilldowns
elasticmachine Apr 17, 2020
519b676
Merge branch 'master' into drilldowns
elasticmachine Apr 17, 2020
991f195
chore: 🤖 catch up with master
streamich Apr 20, 2020
8fcef64
chore: 🤖 remove ui_actions storybook config
streamich Apr 20, 2020
c150b35
chore: 🤖 catch up with master
streamich Apr 21, 2020
91917e1
Merge branch 'master' into drilldowns
elasticmachine Apr 22, 2020
a750efe
update docs
Dosant Apr 22, 2020
1c799d0
fix ts
Dosant Apr 22, 2020
afa6f5a
chore: 🤖 catch up with master
streamich Apr 23, 2020
cd4693b
fix: 🐛 fix broken merge
streamich Apr 23, 2020
02524f1
[Drilldowns] Dashboard to dashboard drilldown (#63108)
Dosant Apr 24, 2020
caa7fd0
Merge branch 'master' into drilldowns
elasticmachine Apr 24, 2020
92bd4b1
Merge branch 'master' into drilldowns
elasticmachine Apr 27, 2020
7b42f71
Merge branch 'master' of github.com:elastic/kibana into dev/drilldowns2
Dosant Apr 28, 2020
4c3cc8d
fix docs
Dosant Apr 28, 2020
731cec8
nit fixes
Dosant Apr 28, 2020
7cffd34
chore: 🤖 remove uiActions from Embeddable dependencies
streamich Apr 28, 2020
daa6747
chore: 🤖 don't export ActionInternal from ui_actions
streamich Apr 28, 2020
b5d7c8d
test: 💍 remove uiActions deps in x-pack test mocks
streamich Apr 28, 2020
56c7a27
chore: 🤖 cleanup ui_actions types
streamich Apr 28, 2020
937e88a
docs: ✏️ add JSDoc comment to addTriggerAction()
streamich Apr 28, 2020
60247d5
Merge remote-tracking branch 'upstream/master' into drilldowns
streamich Apr 28, 2020
ad1b02a
docs: ✏️ regenerate docs
streamich Apr 28, 2020
6beb382
Drilldown demo 2 (#64300)
streamich Apr 28, 2020
e858ca0
feat: 🎸 store events in .enhancements field
streamich Apr 29, 2020
e2a78d2
docs: ✏️ add comment to range trigger title
streamich Apr 29, 2020
5023ac4
refactor: 💡 move Configurable interface into kibana_utils
streamich Apr 29, 2020
7f53aeb
chore: 🤖 simplify internal component types
streamich Apr 29, 2020
11676f9
refactor: 💡 move registerDrilldwon() to advanced_ui_actions
streamich Apr 29, 2020
6755e47
test: 💍 update functional test data
streamich Apr 29, 2020
1da1545
Merge branch 'master' into drilldowns
streamich Apr 30, 2020
94f16b8
Merge branch 'master' of github.com:elastic/kibana into dev/drilldowns2
Dosant Apr 30, 2020
356b240
merge
Dosant Apr 30, 2020
bb14159
docs: ✏️ make drilldown enhancement comment more general
streamich Apr 30, 2020
60a433a
fix: 🐛 return public type from registerAction() call
streamich Apr 30, 2020
9309e79
docs: ✏️ add comment to value click trigger title field
streamich Apr 30, 2020
930cdba
docs: ✏️ improve comment
streamich Apr 30, 2020
5c885df
fix: 🐛 use second argument of CollectConfigProps interface
streamich Apr 30, 2020
a6b57fb
fix: 🐛 add workaround for Firefox rendering issue
streamich Apr 30, 2020
00b9e02
chore: 🤖 delete unused file
streamich Apr 30, 2020
71f2d23
fix: 🐛 import type from new location
streamich Apr 30, 2020
e91059a
style: 💄 make generic type variable name sconsistent
streamich Apr 30, 2020
17ebb52
fix: 🐛 show "Create drilldown" only on dashboard
streamich Apr 30, 2020
d72961b
test: 💍 add extra unit test for root embeddable type
streamich Apr 30, 2020
b476f4c
Merge branch 'master' into drilldowns
streamich May 3, 2020
fc652d2
docs: ✏️ update generated docs
streamich May 4, 2020
79bc742
chore: 🤖 add example warnings to sample drilldowns
streamich May 4, 2020
aba3b6d
docs: ✏️ add links to example warnings
streamich May 4, 2020
11a25e7
feat: 🎸 add URL drilldown validation and https:// prefixing
streamich May 4, 2020
7221466
fix: 🐛 disable drilldowns for lens
streamich May 4, 2020
2dacae3
refactor: 💡 remove PlaceContext from DrilldownDefinition
streamich May 4, 2020
ebcd579
fix: 🐛 fix type check error
streamich May 4, 2020
33719b1
Merge remote-tracking branch 'upstream/master' into drilldowns
streamich May 4, 2020
d50c59c
feat: 🎸 show warning message if embeddable not provided
streamich May 4, 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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# For more info, see https://help.github.com/articles/about-codeowners/

# App
/x-pack/plugins/dashboard_enhanced/ @elastic/kibana-app
/x-pack/plugins/lens/ @elastic/kibana-app
/x-pack/plugins/graph/ @elastic/kibana-app
/src/legacy/server/url_shortening/ @elastic/kibana-app
Expand Down
1 change: 1 addition & 0 deletions .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"data": "src/plugins/data",
"embeddableApi": "src/plugins/embeddable",
"embeddableExamples": "examples/embeddable_examples",
"uiActionsExamples": "examples/ui_action_examples",
"share": "src/plugins/share",
"home": "src/plugins/home",
"charts": "src/plugins/charts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ esFilters: {
generateFilters: typeof generateFilters;
onlyDisabledFiltersChanged: (newFilters?: import("../common").Filter[] | undefined, oldFilters?: import("../common").Filter[] | undefined) => boolean;
changeTimeFilter: typeof changeTimeFilter;
convertRangeFilterToTimeRangeString: typeof convertRangeFilterToTimeRangeString;
mapAndFlattenFilters: (filters: import("../common").Filter[]) => import("../common").Filter[];
extractTimeFilter: typeof extractTimeFilter;
}
Expand Down
3 changes: 1 addition & 2 deletions examples/ui_action_examples/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
*/

import { UiActionExamplesPlugin } from './plugin';
import { PluginInitializer } from '../../../src/core/public';

export const plugin: PluginInitializer<void, void> = () => new UiActionExamplesPlugin();
export const plugin = () => new UiActionExamplesPlugin();

export { HELLO_WORLD_TRIGGER_ID } from './hello_world_trigger';
export { ACTION_HELLO_WORLD } from './hello_world_action';
23 changes: 16 additions & 7 deletions examples/ui_action_examples/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@
* under the License.
*/

import { Plugin, CoreSetup } from '../../../src/core/public';
import { UiActionsSetup } from '../../../src/plugins/ui_actions/public';
import { Plugin, CoreSetup, CoreStart } from '../../../src/core/public';
import { UiActionsSetup, UiActionsStart } from '../../../src/plugins/ui_actions/public';
import { createHelloWorldAction, ACTION_HELLO_WORLD } from './hello_world_action';
import { helloWorldTrigger, HELLO_WORLD_TRIGGER_ID } from './hello_world_trigger';

interface UiActionExamplesSetupDependencies {
export interface UiActionExamplesSetupDependencies {
uiActions: UiActionsSetup;
}

export interface UiActionExamplesStartDependencies {
uiActions: UiActionsStart;
}

declare module '../../../src/plugins/ui_actions/public' {
export interface TriggerContextMapping {
[HELLO_WORLD_TRIGGER_ID]: {};
Expand All @@ -37,18 +41,23 @@ declare module '../../../src/plugins/ui_actions/public' {
}

export class UiActionExamplesPlugin
implements Plugin<void, void, UiActionExamplesSetupDependencies> {
public setup(core: CoreSetup, { uiActions }: UiActionExamplesSetupDependencies) {
implements
Plugin<void, void, UiActionExamplesSetupDependencies, UiActionExamplesStartDependencies> {
public setup(
core: CoreSetup<UiActionExamplesStartDependencies>,
{ uiActions }: UiActionExamplesSetupDependencies
) {
uiActions.registerTrigger(helloWorldTrigger);

const helloWorldAction = createHelloWorldAction(async () => ({
openModal: (await core.getStartServices())[0].overlays.openModal,
}));

uiActions.registerAction(helloWorldAction);
uiActions.attachAction(helloWorldTrigger.id, helloWorldAction);
uiActions.addTriggerAction(helloWorldTrigger.id, helloWorldAction);
}

public start() {}
public start(core: CoreStart, plugins: UiActionExamplesStartDependencies) {}

public stop() {}
}
3 changes: 1 addition & 2 deletions examples/ui_actions_explorer/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ const ActionsExplorer = ({ uiActionsApi, openModal }: Props) => {
);
},
});
uiActionsApi.registerAction(dynamicAction);
uiActionsApi.attachAction(HELLO_WORLD_TRIGGER_ID, dynamicAction);
uiActionsApi.addTriggerAction(HELLO_WORLD_TRIGGER_ID, dynamicAction);
setConfirmationText(
`You've successfully added a new action: ${dynamicAction.getDisplayName(
{}
Expand Down
16 changes: 8 additions & 8 deletions examples/ui_actions_explorer/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@ export class UiActionsExplorerPlugin implements Plugin<void, void, {}, StartDeps

const startServices = core.getStartServices();

deps.uiActions.attachAction(
deps.uiActions.addTriggerAction(
USER_TRIGGER,
createPhoneUserAction(async () => (await startServices)[1].uiActions)
);
deps.uiActions.attachAction(
deps.uiActions.addTriggerAction(
USER_TRIGGER,
createEditUserAction(async () => (await startServices)[0].overlays.openModal)
);

deps.uiActions.attachAction(COUNTRY_TRIGGER, viewInMapsAction);
deps.uiActions.attachAction(COUNTRY_TRIGGER, lookUpWeatherAction);
deps.uiActions.attachAction(COUNTRY_TRIGGER, showcasePluggability);
deps.uiActions.attachAction(PHONE_TRIGGER, makePhoneCallAction);
deps.uiActions.attachAction(PHONE_TRIGGER, showcasePluggability);
deps.uiActions.attachAction(USER_TRIGGER, showcasePluggability);
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, viewInMapsAction);
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, lookUpWeatherAction);
deps.uiActions.addTriggerAction(COUNTRY_TRIGGER, showcasePluggability);
deps.uiActions.addTriggerAction(PHONE_TRIGGER, makePhoneCallAction);
deps.uiActions.addTriggerAction(PHONE_TRIGGER, showcasePluggability);
deps.uiActions.addTriggerAction(USER_TRIGGER, showcasePluggability);

core.application.register({
id: 'uiActionsExplorer',
Expand Down
1 change: 1 addition & 0 deletions src/core/public/overlays/flyout/flyout_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface OverlayFlyoutStart {
export interface OverlayFlyoutOpenOptions {
className?: string;
closeButtonAriaLabel?: string;
ownFocus?: boolean;
streamich marked this conversation as resolved.
Show resolved Hide resolved
'data-test-subj'?: string;
}

Expand Down
3 changes: 2 additions & 1 deletion src/dev/storybook/aliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
*/

export const storybookAliases = {
advanced_ui_actions: 'x-pack/plugins/advanced_ui_actions/scripts/storybook.js',
apm: 'x-pack/legacy/plugins/apm/scripts/storybook.js',
canvas: 'x-pack/legacy/plugins/canvas/scripts/storybook_new.js',
codeeditor: 'src/plugins/kibana_react/public/code_editor/scripts/storybook.ts',
dashboard_enhanced: 'x-pack/plugins/dashboard_enhanced/scripts/storybook.js',
drilldowns: 'x-pack/plugins/drilldowns/scripts/storybook.js',
embeddable: 'src/plugins/embeddable/scripts/storybook.js',
infra: 'x-pack/legacy/plugins/infra/scripts/storybook.js',
siem: 'x-pack/plugins/siem/scripts/storybook.js',
ui_actions: 'x-pack/plugins/advanced_ui_actions/scripts/storybook.js',
};
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface ClonePanelActionContext {
export class ClonePanelAction implements ActionByType<typeof ACTION_CLONE_PANEL> {
public readonly type = ACTION_CLONE_PANEL;
public readonly id = ACTION_CLONE_PANEL;
public order = 11;
public order = 45;

constructor(private core: CoreStart) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface ReplacePanelActionContext {
export class ReplacePanelAction implements ActionByType<typeof ACTION_REPLACE_PANEL> {
public readonly type = ACTION_REPLACE_PANEL;
public readonly id = ACTION_REPLACE_PANEL;
public order = 11;
public order = 3;

constructor(
private core: CoreStart,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test('DashboardContainer in edit mode shows edit mode actions', async () => {

const editModeAction = createEditModeAction();
uiActionsSetup.registerAction(editModeAction);
uiActionsSetup.attachAction(CONTEXT_MENU_TRIGGER, editModeAction);
uiActionsSetup.addTriggerAction(CONTEXT_MENU_TRIGGER, editModeAction);
setup.registerEmbeddableFactory(
CONTACT_CARD_EMBEDDABLE,
new ContactCardEmbeddableFactory((() => null) as any, {} as any)
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/dashboard/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class DashboardPlugin
): Setup {
const expandPanelAction = new ExpandPanelAction();
uiActions.registerAction(expandPanelAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, expandPanelAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, expandPanelAction.id);
const startServices = core.getStartServices();

if (share) {
Expand Down Expand Up @@ -306,11 +306,11 @@ export class DashboardPlugin
plugins.embeddable.getEmbeddableFactories
);
uiActions.registerAction(changeViewAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, changeViewAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, changeViewAction.id);

const clonePanelAction = new ClonePanelAction(core);
uiActions.registerAction(clonePanelAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, clonePanelAction);
uiActions.attachAction(CONTEXT_MENU_TRIGGER, clonePanelAction.id);

const savedDashboardLoader = createSavedDashboardLoader({
savedObjectsClient: core.savedObjects.client,
Expand Down
1 change: 1 addition & 0 deletions src/plugins/data/public/actions/apply_filter_action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function createFilterAction(
return createAction<typeof ACTION_GLOBAL_APPLY_FILTER>({
type: ACTION_GLOBAL_APPLY_FILTER,
id: ACTION_GLOBAL_APPLY_FILTER,
getIconType: () => 'filter',
getDisplayName: () => {
return i18n.translate('data.filter.applyFilterActionTitle', {
defaultMessage: 'Apply filter to current view',
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/data/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import {
changeTimeFilter,
mapAndFlattenFilters,
extractTimeFilter,
convertRangeFilterToTimeRangeString,
} from './query';

// Filter helpers namespace:
Expand Down Expand Up @@ -96,6 +97,7 @@ export const esFilters = {
onlyDisabledFiltersChanged,

changeTimeFilter,
convertRangeFilterToTimeRangeString,
mapAndFlattenFilters,
extractTimeFilter,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ const indexPatternCache = createIndexPatternCache();

type IndexPatternCachedFieldType = 'id' | 'title';

export interface IndexPatternSavedObjectAttrs {
title: string;
}

export class IndexPatternsService {
private config: IUiSettingsClient;
private savedObjectsClient: SavedObjectsClientContract;
private savedObjectsCache?: Array<SimpleSavedObject<Record<string, any>>> | null;
private savedObjectsCache?: Array<SimpleSavedObject<IndexPatternSavedObjectAttrs>> | null;
private apiClient: IndexPatternsApiClient;
ensureDefaultIndexPattern: EnsureDefaultIndexPattern;

Expand All @@ -53,7 +57,7 @@ export class IndexPatternsService {

private async refreshSavedObjectsCache() {
this.savedObjectsCache = (
await this.savedObjectsClient.find<Record<string, any>>({
await this.savedObjectsClient.find<IndexPatternSavedObjectAttrs>({
type: 'index-pattern',
fields: ['title'],
perPage: 10000,
Expand Down
9 changes: 6 additions & 3 deletions src/plugins/data/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ export class DataPublicPlugin implements Plugin<DataPublicPluginSetup, DataPubli
createFilterAction(queryService.filterManager, queryService.timefilter.timefilter)
);

uiActions.attachAction(
uiActions.addTriggerAction(
SELECT_RANGE_TRIGGER,
selectRangeAction(queryService.filterManager, queryService.timefilter.timefilter)
);

uiActions.attachAction(
uiActions.addTriggerAction(
VALUE_CLICK_TRIGGER,
valueClickAction(queryService.filterManager, queryService.timefilter.timefilter)
);
Expand Down Expand Up @@ -172,7 +172,10 @@ export class DataPublicPlugin implements Plugin<DataPublicPluginSetup, DataPubli
});
setSearchService(search);

uiActions.attachAction(APPLY_FILTER_TRIGGER, uiActions.getAction(ACTION_GLOBAL_APPLY_FILTER));
uiActions.addTriggerAction(
APPLY_FILTER_TRIGGER,
uiActions.getAction(ACTION_GLOBAL_APPLY_FILTER)
);

const dataServices = {
actions: {
Expand Down
Loading