PromucFlow_constructor/app/client/src/pages/Editor
Rahul Barwal cd3da34158
fix: Add initDatasourceConnectionDuringImportRequest action to partialImportSaga (#29974)
## Description
This pull request adds the `initDatasourceConnectionDuringImportRequest`
action to the `partialImportSaga` function in order to initialize the
datasource connection during the partial import process.

<ins>Root cause</ins>
During partial import, we were not initializing the datasources with
default values.
This for some reason, happens only from client side and has no handling
on the server side. We replicated the flow during normal import and
added a call to this redux
event(`INIT_DATASOURCE_CONNECTION_DURING_IMPORT_REQUEST`), which ensured
that our datasources were initialized with defaults.

#### PR fixes following issue(s)
Fixes #29915

#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change
> Please delete options that are not relevant.
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- Chore (housekeeping or task changes that don't impact user perception)
- This change requires a documentation update
>
>
>
## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] 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

- **New Features**
- Enhanced widget import process with automatic datasource connection
initialization.

- **Refactor**
- Improved internal checks for datasource connections during import
workflows.

- **Documentation**
- Updated comments and documentation to reflect new logic for datasource
initialization.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-01-03 12:37:44 +05:30
..
__tests__ feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
APIEditor chore: action editor right pane refactor (#29757) 2023-12-20 18:02:09 +05:30
AppSettingsPane chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
CanvasLayoutConversion chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
CanvasPropertyPane chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
commons chore: Add IDE side pane and manage navigation (#28063) 2023-10-18 12:44:10 +05:30
CommunityTemplates/Modals fix: Update maxTagCount in UseCasesSelect component (#29962) 2024-01-01 16:58:47 +05:30
CustomWidgetBuilder chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
DataSourceEditor fix: Blank states sidebar (#29768) 2023-12-26 14:39:14 +05:30
DatasourceInfo chore: Refactoring entity types and updating DS action create permission to fix some bugs on EE (#29573) 2023-12-14 20:14:30 +05:30
EditorName fix: Improvements to Sidebar for navigation (#29205) 2023-11-30 06:11:59 +05:30
EntityNavigation chore: Custom widget (alpha) (#27571) 2023-11-14 10:03:37 +05:30
Explorer feat: adds see more to canvas starter templates (#29777) 2023-12-27 10:29:33 +05:30
FirstTimeUserOnboarding fix: add implementation for onForkButtonTrigger in building block (#29976) 2024-01-03 10:01:43 +05:30
GeneratePage chore: add analytics event for query failure post schema fetch pass (#28574) 2023-11-07 16:27:19 +05:30
gitSync fix: Add initDatasourceConnectionDuringImportRequest action to partialImportSaga (#29974) 2024-01-03 12:37:44 +05:30
GlobalHotKeys chore: Refactor entity explorer to support displaying module instances in the list (#28855) 2023-11-16 17:03:59 +05:30
GuidedTour chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
IDE chore: Final fixes required for release of Editor Pane segments (#29947) 2024-01-02 10:34:48 +05:30
IntegrationEditor fix: Refactoring code to fix a couple of issues related to modules on EE (#29843) 2023-12-26 11:38:00 +05:30
JSEditor fix: Blank states sidebar (#29768) 2023-12-26 14:39:14 +05:30
MultiSelectPropertyPane changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
NavigationSettings chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
PropertyPane chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30
QueryEditor fix: Blank states sidebar (#29768) 2023-12-26 14:39:14 +05:30
SaaSEditor chore: Refactoring header actions on datasource page to support reusable queries on EE (#29442) 2023-12-08 17:12:14 +05:30
ThemePropertyPane chore: Create a separate theme settings panel for WDS (#29196) 2023-12-01 15:39:21 +03:00
WDSThemePropertyPane chore: New Theme Settings Integration (#29848) 2023-12-28 13:58:33 +05:30
WidgetsEditor feat: adds see more to canvas starter templates (#29777) 2023-12-27 10:29:33 +05:30
ActionSettings.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
AppsmithLink.tsx chore: Refactoring code for entity explorer on app editor to support package editor (#27844) 2023-10-11 19:41:07 +05:30
Canvas.tsx fix: Fixed Layout system: Main container background underflow (#29796) 2024-01-03 01:17:56 +05:30
EditorHeader.tsx chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
EditorSaveIndicator.tsx chore: Refactoring editor app name component for modules (#28055) 2023-10-16 14:37:39 +05:30
EditorShareButton.tsx chore: Refactoring code for entity explorer on app editor to support package editor (#27844) 2023-10-11 19:41:07 +05:30
EntityNotFoundPane.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
FormConfig.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
FormControl.tsx changes in evaluation for EE - split (#27144) 2023-09-12 17:21:39 +05:30
HelpBarInHeader.tsx feat: branch protection (#28526) 2023-11-03 22:43:36 +05:30
HelpButton.tsx chore: added intercom consent analytics event (#29722) 2023-12-19 18:08:33 +05:30
index.tsx feat: ui for autocommit (#29441) 2023-12-11 21:11:43 +05:30
loader.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
MainContainerWidthToggles.test.tsx chore: Rename and cleanup of editor components (#26944) 2023-09-12 19:44:02 +05:30
MainContainerWidthToggles.tsx chore: Rename and cleanup of editor components (#26944) 2023-09-12 19:44:02 +05:30
Popper.tsx fix: Adjust evaluated popover position based on the target's position in the view port (#29912) 2023-12-29 12:53:09 +05:30
PropertyPaneHelpButton.tsx chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
RealtimeAppEditors.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
RequestConfirmationModal.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
ShareApplicationForm.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
ToggleModeButton.tsx chore: update preview button to make use of toggle (#26822) 2023-08-31 14:44:50 +05:30
utils.ts chore: action response view refactor (#29031) 2023-11-24 11:34:06 +05:30
WidgetCard.tsx fix: Anvil Editor issues with Resizer in safari (#28361) 2023-10-26 10:07:06 +05:30
WidgetCardsPane.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
WidgetsEditorEntityExplorer.tsx [Chore]: App Sidebar Library Pane (#28332) 2023-11-03 10:54:58 +05:30
WidgetSidebarWithTags.tsx chore: custom widget (#28926) 2023-12-28 12:16:28 +05:30