|
@@ -1,5 +1,5 @@
|
|
|
import pick from 'lodash/pick';
|
|
|
-import {createStore, StoreDefinition} from 'reflux';
|
|
|
+import {createStore} from 'reflux';
|
|
|
|
|
|
import {mergeGroups} from 'sentry/actionCreators/group';
|
|
|
import {
|
|
@@ -13,6 +13,8 @@ import {Group, Organization, Project} from 'sentry/types';
|
|
|
import {Event} from 'sentry/types/event';
|
|
|
import {makeSafeRefluxStore} from 'sentry/utils/makeSafeRefluxStore';
|
|
|
|
|
|
+import {CommonStoreDefinition} from './types';
|
|
|
+
|
|
|
// Between 0-100
|
|
|
const MIN_SCORE = 0.6;
|
|
|
|
|
@@ -114,7 +116,9 @@ type InternalDefinition = {
|
|
|
api: Client;
|
|
|
};
|
|
|
|
|
|
-interface GroupingStoreDefinition extends StoreDefinition, InternalDefinition {
|
|
|
+interface GroupingStoreDefinition
|
|
|
+ extends CommonStoreDefinition<State>,
|
|
|
+ InternalDefinition {
|
|
|
getInitialState(): State;
|
|
|
init(): void;
|
|
|
isAllUnmergedSelected(): boolean;
|
|
@@ -615,6 +619,10 @@ const storeConfig: GroupingStoreDefinition = {
|
|
|
this.trigger(state);
|
|
|
return state;
|
|
|
},
|
|
|
+
|
|
|
+ getState(): State {
|
|
|
+ return this.state;
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
const GroupingStore = createStore(makeSafeRefluxStore(storeConfig));
|