Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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: 0 additions & 1 deletion configs/eslint-config-compass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const extraTsRules = {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-base-to-string': 'warn',
'@typescript-eslint/unbound-method': 'warn',
'@typescript-eslint/no-duplicate-type-constituents': 'warn',
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,14 @@ export const cancelAIPipelineGeneration = (): PipelineBuilderThunkAction<
};
};

type resetIsAggregationGeneratedFromQueryAction = {
type ResetIsAggregationGeneratedFromQueryAction = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small drive-by to match the naming scheme with other actions

type: AIPipelineActionTypes.resetIsAggregationGeneratedFromQuery;
};

export const resetIsAggregationGeneratedFromQuery =
(): PipelineBuilderThunkAction<
void,
resetIsAggregationGeneratedFromQueryAction
ResetIsAggregationGeneratedFromQueryAction
> => {
return (dispatch) => {
dispatch({
Expand Down Expand Up @@ -477,9 +477,8 @@ export type AIPipelineAction =
| AIPipelineFailedAction
| LoadGeneratedPipelineAction
| PipelineGeneratedFromQueryAction
| LoadGeneratedPipelineAction
| CancelAIPipelineGenerationAction
| resetIsAggregationGeneratedFromQueryAction
| ResetIsAggregationGeneratedFromQueryAction
| ShowInputAction
| HideInputAction
| ChangeAIPromptTextAction;
Expand Down Expand Up @@ -567,7 +566,7 @@ const aiPipelineReducer: Reducer<AIPipelineState, AIPipelineAction> = (
}

if (
isAction<resetIsAggregationGeneratedFromQueryAction>(
isAction<ResetIsAggregationGeneratedFromQueryAction>(
action,
AIPipelineActionTypes.resetIsAggregationGeneratedFromQuery
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ export type StageEditorAction =
| ChangeStageValueAction
| ChangeStageOperatorAction
| ChangeStageCollapsedAction
| ChangeStageOperatorAction
| ChangeStageDisabledAction
| StageAddAction
| StageRemoveAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function WorkspaceContainer({
children:
| React.ReactNode
| ((
scrollTriggerRef: (node?: Element | null | undefined) => void
scrollTriggerRef: (node?: Element | null) => void
) => React.ReactNode);
}) {
const darkMode = useDarkMode();
Expand Down
3 changes: 1 addition & 2 deletions packages/compass-telemetry/src/telemetry-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ type AggregationEditedEvent = ConnectionScopedEvent<{
| 'stage_renamed'
| 'stage_added'
| 'stage_deleted'
| 'stage_reordered'
| 'stage_added';
| 'stage_reordered';

/**
* The name of the stage edited.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
return ipc;
}

loadAll(
options?: { signal?: AbortSignal | undefined } | undefined
): Promise<ConnectionInfo[]> {
loadAll(options?: {
signal?: AbortSignal | undefined;
}): Promise<ConnectionInfo[]> {
return this.ipc.loadAll(options);
}

Expand Down Expand Up @@ -86,9 +86,9 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
return await this.ipc.getAutoConnectInfo(autoConnectPreferences);
}

getLegacyConnections(
options?: { signal?: AbortSignal | undefined } | undefined
): Promise<{ name: string }[]> {
getLegacyConnections(options?: {
signal?: AbortSignal | undefined;
}): Promise<{ name: string }[]> {
return this.ipc.getLegacyConnections(options);
}

Expand All @@ -100,14 +100,10 @@ class CompassRendererConnectionStorage implements ConnectionStorage {
return this.ipc.deserializeConnections(args);
}

exportConnections(
args?:
| {
options?: ExportConnectionOptions | undefined;
signal?: AbortSignal | undefined;
}
| undefined
): Promise<string> {
exportConnections(args?: {
options?: ExportConnectionOptions | undefined;
signal?: AbortSignal | undefined;
}): Promise<string> {
return this.ipc.exportConnections(args);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ type StoredLegacyPipelineStage = {
stage: string;
};

function savedPipelineToText(
pipeline?: StoredLegacyPipelineStage[] | undefined
): string {
function savedPipelineToText(pipeline?: StoredLegacyPipelineStage[]): string {
const stages =
pipeline?.map(({ stageOperator, isEnabled, stage }) => {
return stageToString(stageOperator, stage, !isEnabled);
Expand Down
Loading