Merge branch 'release' of https://github.com/appsmithorg/appsmith into release
This commit is contained in:
commit
e544d228e0
|
|
@ -54,7 +54,7 @@ const FormTitle = (props: FormTitleProps) => {
|
|||
}
|
||||
return false;
|
||||
},
|
||||
[currentDatasource, hasNameConflict],
|
||||
[hasNameConflict],
|
||||
);
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import {
|
|||
getPluginImages,
|
||||
getDBDatasources,
|
||||
getAction,
|
||||
getActionResponses,
|
||||
} from "selectors/entitiesSelector";
|
||||
import { PLUGIN_PACKAGE_DBS } from "constants/QueryEditorConstants";
|
||||
import { QueryAction } from "entities/Action";
|
||||
|
|
@ -49,7 +50,7 @@ type ReduxStateProps = {
|
|||
formData: QueryAction;
|
||||
runErrorMessage: Record<string, string>;
|
||||
pluginIds: Array<string> | undefined;
|
||||
executedQueryData: any;
|
||||
responses: any;
|
||||
isCreating: boolean;
|
||||
pluginImages: Record<string, string>;
|
||||
editorConfig: [];
|
||||
|
|
@ -91,7 +92,7 @@ class QueryEditor extends React.Component<Props> {
|
|||
},
|
||||
pluginImages,
|
||||
pluginIds,
|
||||
executedQueryData,
|
||||
responses,
|
||||
isCreating,
|
||||
runErrorMessage,
|
||||
loadingFormConfigs,
|
||||
|
|
@ -135,7 +136,7 @@ class QueryEditor extends React.Component<Props> {
|
|||
editorConfig={editorConfig}
|
||||
loadingFormConfigs={loadingFormConfigs}
|
||||
DATASOURCES_OPTIONS={DATASOURCES_OPTIONS}
|
||||
executedQueryData={executedQueryData[queryId]}
|
||||
executedQueryData={responses[queryId]}
|
||||
runErrorMessage={runErrorMessage[queryId]}
|
||||
/>
|
||||
) : (
|
||||
|
|
@ -166,7 +167,7 @@ const mapStateToProps = (state: AppState, props: any): ReduxStateProps => {
|
|||
runErrorMessage,
|
||||
pluginIds: getPluginIdsOfPackageNames(state, PLUGIN_PACKAGE_DBS),
|
||||
dataSources: getDBDatasources(state),
|
||||
executedQueryData: state.ui.queryPane.runQuerySuccessData,
|
||||
responses: getActionResponses(state),
|
||||
queryPane: state.ui.queryPane,
|
||||
formData,
|
||||
editorConfig: queryAction?.pluginId
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ const initialState: QueryPaneReduxState = {
|
|||
isRunning: {},
|
||||
isSaving: {},
|
||||
isDeleting: {},
|
||||
runQuerySuccessData: {},
|
||||
runErrorMessage: {},
|
||||
lastUsed: "", // NR
|
||||
};
|
||||
|
|
@ -24,7 +23,6 @@ export interface QueryPaneReduxState {
|
|||
isRunning: Record<string, boolean>;
|
||||
isSaving: Record<string, boolean>; // RR
|
||||
isDeleting: Record<string, boolean>;
|
||||
runQuerySuccessData: {};
|
||||
runErrorMessage: Record<string, string>;
|
||||
lastUsed: string; // NR
|
||||
isCreating: boolean; // RR
|
||||
|
|
@ -126,13 +124,8 @@ const queryPaneReducer = createReducer(initialState, {
|
|||
...state.isRunning,
|
||||
[action.payload.id]: true,
|
||||
},
|
||||
runQuerySuccessData: [],
|
||||
};
|
||||
},
|
||||
[ReduxActionTypes.CLEAR_PREVIOUSLY_EXECUTED_QUERY]: (state: any) => ({
|
||||
...state,
|
||||
runQuerySuccessData: [],
|
||||
}),
|
||||
|
||||
[ReduxActionTypes.RUN_ACTION_SUCCESS]: (
|
||||
state: any,
|
||||
|
|
@ -145,10 +138,6 @@ const queryPaneReducer = createReducer(initialState, {
|
|||
...state.isRunning,
|
||||
[actionId]: false,
|
||||
},
|
||||
runQuerySuccessData: {
|
||||
...state.runQuerySuccessData,
|
||||
...action.payload,
|
||||
},
|
||||
runErrorMessage: _.omit(state.runErrorMessage, [actionId]),
|
||||
};
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ export const isStrongPassword = (value: string) => {
|
|||
|
||||
// TODO (abhinav): Use a regex which adheres to standards RFC5322
|
||||
export const isEmail = (value: string) => {
|
||||
const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
return re.test(value);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget";
|
||||
import { WidgetType, WIDGET_PADDING } from "constants/WidgetConstants";
|
||||
import { WidgetType } from "constants/WidgetConstants";
|
||||
import { EventType } from "constants/ActionConstants";
|
||||
import DropDownComponent from "components/designSystems/blueprint/DropdownComponent";
|
||||
import _ from "lodash";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user