Skip to content

Commit 8da3ce2

Browse files
committed
Add Kea logic paths for easier debugging/defaults
1 parent bd6b389 commit 8da3ce2

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

x-pack/plugins/enterprise_search/public/applications/app_search/app_logic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface IAppActions {
1616
}
1717

1818
export const AppLogic = kea<MakeLogicType<IAppValues, IAppActions>>({
19+
path: ['enterpriseSearch', 'appSearch', 'app'],
1920
actions: {
2021
initializeAppData: (props) => props,
2122
},

x-pack/plugins/enterprise_search/public/applications/shared/flash_messages/flash_messages_logic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const convertToArray = (messages: IFlashMessage | IFlashMessage[]) =>
3232
!Array.isArray(messages) ? [messages] : messages;
3333

3434
export const FlashMessagesLogic = kea<MakeLogicType<IFlashMessagesValues, IFlashMessagesActions>>({
35+
path: ['enterpriseSearch', 'flashMessages'],
3536
actions: {
3637
setFlashMessages: (messages) => ({ messages: convertToArray(messages) }),
3738
clearFlashMessages: () => null,

x-pack/plugins/enterprise_search/public/applications/shared/http/http_logic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface IHttpActions {
2727
}
2828

2929
export const HttpLogic = kea<MakeLogicType<IHttpValues, IHttpActions>>({
30+
path: ['enterpriseSearch', 'http'],
3031
actions: {
3132
initializeHttp: ({ http, errorConnecting }) => ({ http, errorConnecting }),
3233
initializeHttpInterceptors: () => null,

x-pack/plugins/enterprise_search/public/applications/workplace_search/app_logic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface IAppActions {
2222
}
2323

2424
export const AppLogic = kea<MakeLogicType<IAppValues, IAppActions>>({
25+
path: ['enterpriseSearch', 'workplaceSearch', 'app'],
2526
actions: {
2627
initializeAppData: ({ workplaceSearch, isFederatedAuth }) => ({
2728
workplaceSearch,

x-pack/plugins/enterprise_search/public/applications/workplace_search/views/overview/overview_logic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface IOverviewValues extends IOverviewServerData {
3131
}
3232

3333
export const OverviewLogic = kea<MakeLogicType<IOverviewValues, IOverviewActions>>({
34+
path: ['enterpriseSearch', 'workplaceSearch', 'overview'],
3435
actions: {
3536
setServerData: (serverData) => serverData,
3637
initializeOverview: () => null,

0 commit comments

Comments
 (0)