-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: paragon frontend ds creation implementation added (#38456)
## Description This PR adds CE changes for the paragon integrations, with this whenever anybody is using CE version, paragon integrations will be visible but once they click on it, it will ask for them to put in email id and request access. It's counterpart EE PR handles the paragon integration creation and authorisation in appsmith. EE PR: appsmithorg/appsmith-ee#5859 EE PR which has both CE and EE changes to ensure all things are working smoothly: appsmithorg/appsmith-ee#5866 Fixes #`38406` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Datasource" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/12627633263> > Commit: 9c1e06b > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12627633263&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Datasource` > Spec: > <hr>Mon, 06 Jan 2025 07:10:57 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Added support for External SaaS datasources and plugins. - Introduced new actions and configurations for External SaaS integration. - **Refactor** - Restructured datasource-related sagas and import paths. - Updated selectors and constants to support new plugin type. - **Code Improvements** - Enhanced datasource management and integration capabilities. - Improved modularity of saga functions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: “sneha122” <“sneha@appsmith.com”>
- Loading branch information
Showing
13 changed files
with
221 additions
and
156 deletions.
There are no files selected for viewing
192 changes: 44 additions & 148 deletions
192
app/client/src/sagas/DatasourcesSagas.ts → app/client/src/ce/sagas/DatasourcesSagas.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
export { createOrUpdateDataSourceWithAction } from "ce/sagas/DatasourcesSagas"; | ||
import { | ||
ReduxActionErrorTypes, | ||
ReduxActionTypes, | ||
ReduxFormActionTypes, | ||
} from "ee/constants/ReduxActionConstants"; | ||
import { all, takeEvery, takeLatest } from "redux-saga/effects"; | ||
import { | ||
addAndFetchDatasourceStructureSaga, | ||
addMockDbToDatasources, | ||
changeDatasourceSaga, | ||
createDatasourceFromFormSaga, | ||
datasourceDiscardActionSaga, | ||
deleteDatasourceSaga, | ||
executeDatasourceQuerySaga, | ||
fetchDatasourcesSaga, | ||
fetchDatasourceStructureSaga, | ||
fetchGsheetColumns, | ||
fetchGsheetSheets, | ||
fetchGsheetSpreadhsheets, | ||
fetchMockDatasourcesSaga, | ||
filePickerActionCallbackSaga, | ||
formValueChangeSaga, | ||
getOAuthAccessTokenSaga, | ||
handleDatasourceNameChangeFailureSaga, | ||
handleFetchDatasourceStructureOnLoad, | ||
initializeFormWithDefaults, | ||
loadFilePickerSaga, | ||
redirectAuthorizationCodeSaga, | ||
refreshDatasourceStructure, | ||
setDatasourceViewModeSaga, | ||
storeAsDatasourceSaga, | ||
switchDatasourceSaga, | ||
testDatasourceSaga, | ||
updateDatasourceAuthStateSaga, | ||
updateDatasourceNameSaga, | ||
updateDatasourceSaga, | ||
updateDatasourceSuccessSaga, | ||
createTempDatasourceFromFormSaga as CE_createTempDatasourceFromFormSaga, | ||
} from "ce/sagas/DatasourcesSagas"; | ||
|
||
export function* watchDatasourcesSagas() { | ||
yield all([ | ||
takeEvery(ReduxActionTypes.FETCH_DATASOURCES_INIT, fetchDatasourcesSaga), | ||
takeEvery( | ||
ReduxActionTypes.FETCH_MOCK_DATASOURCES_INIT, | ||
fetchMockDatasourcesSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.ADD_MOCK_DATASOURCES_INIT, | ||
addMockDbToDatasources, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.CREATE_DATASOURCE_FROM_FORM_INIT, | ||
createDatasourceFromFormSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.CREATE_TEMP_DATASOURCE_FROM_FORM_SUCCESS, | ||
CE_createTempDatasourceFromFormSaga, | ||
), | ||
takeEvery(ReduxActionTypes.UPDATE_DATASOURCE_INIT, updateDatasourceSaga), | ||
takeEvery( | ||
ReduxActionTypes.UPDATE_DATASOURCE_NAME, | ||
updateDatasourceNameSaga, | ||
), | ||
takeEvery( | ||
ReduxActionErrorTypes.UPDATE_DATASOURCE_NAME_ERROR, | ||
handleDatasourceNameChangeFailureSaga, | ||
), | ||
takeEvery(ReduxActionTypes.TEST_DATASOURCE_INIT, testDatasourceSaga), | ||
takeEvery(ReduxActionTypes.DELETE_DATASOURCE_INIT, deleteDatasourceSaga), | ||
takeEvery(ReduxActionTypes.CHANGE_DATASOURCE, changeDatasourceSaga), | ||
takeLatest(ReduxActionTypes.SWITCH_DATASOURCE, switchDatasourceSaga), | ||
takeEvery(ReduxActionTypes.STORE_AS_DATASOURCE_INIT, storeAsDatasourceSaga), | ||
takeEvery( | ||
ReduxActionTypes.UPDATE_DATASOURCE_SUCCESS, | ||
updateDatasourceSuccessSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.REDIRECT_AUTHORIZATION_CODE, | ||
redirectAuthorizationCodeSaga, | ||
), | ||
takeEvery(ReduxActionTypes.GET_OAUTH_ACCESS_TOKEN, getOAuthAccessTokenSaga), | ||
takeEvery( | ||
ReduxActionTypes.FETCH_DATASOURCE_STRUCTURE_INIT, | ||
fetchDatasourceStructureSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.REFRESH_DATASOURCE_STRUCTURE_INIT, | ||
refreshDatasourceStructure, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.EXECUTE_DATASOURCE_QUERY_INIT, | ||
executeDatasourceQuerySaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.INITIALIZE_DATASOURCE_FORM_WITH_DEFAULTS, | ||
initializeFormWithDefaults, | ||
), | ||
// Intercepting the redux-form change actionType to update drafts and track change history | ||
takeEvery(ReduxFormActionTypes.VALUE_CHANGE, formValueChangeSaga), | ||
takeEvery(ReduxFormActionTypes.ARRAY_PUSH, formValueChangeSaga), | ||
takeEvery(ReduxFormActionTypes.ARRAY_REMOVE, formValueChangeSaga), | ||
takeEvery( | ||
ReduxActionTypes.FILE_PICKER_CALLBACK_ACTION, | ||
filePickerActionCallbackSaga, | ||
), | ||
takeLatest( | ||
ReduxActionTypes.FETCH_GSHEET_SPREADSHEETS, | ||
fetchGsheetSpreadhsheets, | ||
), | ||
takeLatest(ReduxActionTypes.FETCH_GSHEET_SHEETS, fetchGsheetSheets), | ||
takeLatest(ReduxActionTypes.FETCH_GSHEET_COLUMNS, fetchGsheetColumns), | ||
takeEvery(ReduxActionTypes.LOAD_FILE_PICKER_ACTION, loadFilePickerSaga), | ||
takeEvery( | ||
ReduxActionTypes.UPDATE_DATASOURCE_AUTH_STATE, | ||
updateDatasourceAuthStateSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.DATASOURCE_DISCARD_ACTION, | ||
datasourceDiscardActionSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.ADD_AND_FETCH_MOCK_DATASOURCE_STRUCTURE_INIT, | ||
addAndFetchDatasourceStructureSaga, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.FETCH_DATASOURCES_SUCCESS, | ||
handleFetchDatasourceStructureOnLoad, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.SOFT_REFRESH_DATASOURCE_STRUCTURE, | ||
handleFetchDatasourceStructureOnLoad, | ||
), | ||
takeEvery( | ||
ReduxActionTypes.SET_DATASOURCE_EDITOR_MODE, | ||
setDatasourceViewModeSaga, | ||
), | ||
]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters