-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathoverviewLogic.tsx
31 lines (29 loc) · 1.28 KB
/
overviewLogic.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { connect, kea, path } from 'kea'
import { teamLogic } from 'scenes/teamLogic'
import { DESTINATION_TYPES } from './destinations/constants'
import { pipelineDestinationsLogic } from './destinations/destinationsLogic'
import type { pipelineOverviewLogicType } from './overviewLogicType'
import { pipelineTransformationsLogic } from './transformationsLogic'
export const pipelineOverviewLogic = kea<pipelineOverviewLogicType>([
path(['scenes', 'pipeline', 'overviewLogic']),
connect({
values: [
teamLogic,
['currentTeamId'],
pipelineTransformationsLogic,
['loading as transformationsLoading', 'transformations'],
pipelineDestinationsLogic({ types: DESTINATION_TYPES }),
['loading as destinationsLoading', 'destinations'],
],
actions: [
pipelineTransformationsLogic,
['loadPlugins as loadTransformationPlugins', 'loadPluginConfigs as loadTransformationPluginConfigs'],
pipelineDestinationsLogic({ types: DESTINATION_TYPES }),
[
'loadPlugins as loadDestinationPlugins',
'loadPluginConfigs as loadDestinationPluginConfigs',
'loadBatchExports as loadBatchExportConfigs',
],
],
}),
])