## Description Reverted consolidated api changes and also some CE related changes to make it compatible with EE. #### PR fixes following issue(s) Reverts #29650 & #29939 #### Type of change - Chore (housekeeping or task changes that don't impact user perception) > > > ## Testing #### How Has This Been Tested? - [ ] Manual - [ ] JUnit - [ ] Jest - [x ] Cypress > > #### Test Plan > Add Testsmith test cases links that relate to this PR > > #### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) > > > ## Checklist: #### Dev activity - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag #### QA activity: - [ ] [Speedbreak features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-) have been covered - [ ] Test plan covers all impacted features and [areas of interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-) - [ ] Test plan has been peer reviewed by project stakeholders and other QA members - [ ] Manually tested functionality on DP - [ ] We had an implementation alignment call with stakeholders post QA Round 2 - [ ] Cypress test cases have been added and approved by SDET/manual QA - [ ] Added `Test Plan Approved` label after Cypress tests were reviewed - [ ] Added `Test Plan Approved` label after JUnit tests were reviewed <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Enhanced the reliability and efficiency of Cypress e2e tests by adjusting wait conditions and assertions. - Simplified network request handling across various test cases. - Updated test logic to align with changes in application data structure and network requests. - **Tests** - Improved test stability for application import/export, Git sync, page load behavior, and widget interactions. - Refined mobile responsiveness tests to accurately validate layout conversions and autofill behaviors. - **Chores** - Removed deprecated feature flags and code related to consolidated page load functionality. - Cleaned up unused parameters and simplified action payloads in Redux actions. - **Documentation** - Updated comments for clarity in test specifications. - **Style** - Adjusted code styling for consistency across test suites. - **Bug Fixes** - Fixed data retrieval logic in tests to ensure correct data extraction from API responses. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
73 lines
2.0 KiB
TypeScript
73 lines
2.0 KiB
TypeScript
import type {
|
|
ReduxAction,
|
|
ReduxActionWithoutPayload,
|
|
} from "@appsmith/constants/ReduxActionConstants";
|
|
import {
|
|
ReduxActionTypes,
|
|
ReduxActionErrorTypes,
|
|
} from "@appsmith/constants/ReduxActionConstants";
|
|
import type { PluginFormPayload } from "api/PluginApi";
|
|
import type { DependencyMap } from "utils/DynamicBindingUtils";
|
|
|
|
export const fetchPlugins = (payload?: {
|
|
workspaceId?: string;
|
|
}): ReduxAction<{ workspaceId?: string } | undefined> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGINS_REQUEST,
|
|
payload,
|
|
});
|
|
|
|
export const fetchPluginFormConfigs = (): ReduxActionWithoutPayload => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_REQUEST,
|
|
});
|
|
|
|
export interface PluginFormsPayload {
|
|
formConfigs: Record<string, any[]>;
|
|
editorConfigs: Record<string, any[]>;
|
|
settingConfigs: Record<string, any[]>;
|
|
dependencies: Record<string, DependencyMap>;
|
|
datasourceFormButtonConfigs: Record<string, string[]>;
|
|
}
|
|
|
|
export const fetchPluginFormConfigsSuccess = (
|
|
payload: PluginFormsPayload,
|
|
): ReduxAction<PluginFormsPayload> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_CONFIGS_SUCCESS,
|
|
payload,
|
|
});
|
|
|
|
export interface PluginFormPayloadWithId extends PluginFormPayload {
|
|
id: string;
|
|
}
|
|
|
|
export const fetchPluginFormConfigSuccess = (
|
|
payload: PluginFormPayloadWithId,
|
|
): ReduxAction<PluginFormPayloadWithId> => ({
|
|
type: ReduxActionTypes.FETCH_PLUGIN_FORM_SUCCESS,
|
|
payload,
|
|
});
|
|
|
|
export const fetchPluginFormConfigError = (
|
|
payload: GetPluginFormConfigRequest,
|
|
): ReduxAction<GetPluginFormConfigRequest> => ({
|
|
type: ReduxActionErrorTypes.FETCH_PLUGIN_FORM_ERROR,
|
|
payload,
|
|
});
|
|
|
|
export interface GetPluginFormConfigRequest {
|
|
id: string;
|
|
}
|
|
|
|
// To fetch plugin form config for individual plugin
|
|
export const fetchPluginFormConfig = ({
|
|
pluginId: id,
|
|
}: {
|
|
pluginId: GetPluginFormConfigRequest;
|
|
}) => ({
|
|
type: ReduxActionTypes.GET_PLUGIN_FORM_CONFIG_INIT,
|
|
payload: id,
|
|
});
|
|
|
|
export const fetchDefaultPlugins = (): ReduxActionWithoutPayload => ({
|
|
type: ReduxActionTypes.GET_DEFAULT_PLUGINS_REQUEST,
|
|
});
|