Skip to content

Commit fbda9c2

Browse files
authored
fix(aggregations): pass dataService to redux thunk arg, fix types COMPASS-9375 (#6999)
fix(aggregations): pass dataService to redux thunk arg, fix types
1 parent 1cebaa0 commit fbda9c2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/compass-aggregations/src/modules/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ const rootReducer = combineReducers({
9595
export type RootState = ReturnType<typeof rootReducer>;
9696

9797
export type PipelineBuilderExtraArgs = {
98-
globalAppRegistry: AppRegistry;
99-
localAppRegistry: AppRegistry;
98+
globalAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener'>;
99+
localAppRegistry: Pick<AppRegistry, 'on' | 'emit' | 'removeListener'>;
100100
pipelineBuilder: PipelineBuilder;
101-
pipelineStorage: PipelineStorage;
101+
pipelineStorage: PipelineStorage | undefined;
102102
workspaces: WorkspacesService;
103103
preferences: PreferencesAccess;
104104
logger: Logger;

packages/compass-aggregations/src/stores/store.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ export function activateAggregationsPlugin(
135135

136136
const stagesIdAndType = mapStoreStagesToStageIdAndType(stages);
137137

138-
const store: Store<RootState> & {
139-
dispatch: PipelineBuilderThunkDispatch;
140-
} = createStore(
138+
const store = createStore(
141139
reducer,
142140
{
143141
// TODO: move this to thunk extra arg
@@ -189,6 +187,7 @@ export function activateAggregationsPlugin(
189187
atlasAiService,
190188
connectionInfoRef,
191189
connectionScopedAppRegistry,
190+
dataService,
192191
})
193192
)
194193
);

0 commit comments

Comments
 (0)