PromucFlow_constructor/app/client/cypress
sneha122 b7c104c66f
fix: ds discard popup issue fixes (#19114)
This PR includes following changes:
- With latest datasource autosave improvements, we do not save the
datasource immediately but save it on explicit click of save button, so
in case user has not saved any changes and tries to leave the page, we
have added a popup to inform users that they have unsaved changes and
whether they would like to save them or not.
- The issue was in case of postgres and authenticated API datasource,
this popup was getting seen even when the user has not made any changes
in the datasource configuration. This PR solves that issue.
- The unsaved changes popup needs to be shown only when user has made
any new changes in the datasource form

TL;DR
- We have used redux form's isDirty method to check if user has made any
new updates to the form or not. This isDirty compares initial value of
datasource form with current form value and if current form value is
different it shows the unsaved changes popup
- The issue occurred because in case of postgres and authenticated API
datasource, we initialise 1 default pair of host address and port
(postgres), and default pairs of headers and query parameters
(Authenticated API). These initial default changes made the form dirty
and so user used to see the popup even when they have not explicitly
made any changes.
- This PR fixes the issue by setting initial form value with these
defaults so they do not make the form dirty.

Fixes #18962 , #18998 

https://user-images.githubusercontent.com/30018882/208931098-b570e3c4-10bc-4b76-bd54-531ccf869436.mov

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2022-12-30 15:53:24 +05:30
..
fixtures fix: hide the fork template button when there are no workspaces to fork to (#19226) 2022-12-29 17:01:10 +05:30
integration fix: ds discard popup issue fixes (#19114) 2022-12-30 15:53:24 +05:30
locators fix: update button states to secondary (#19048) 2022-12-29 11:08:13 +00:00
manual_TestSuite fix: show more modal of a truncated text widget is flickering (#18888) 2022-12-14 13:43:43 +05:30
patches test: Script updates for flaky fixes (#16143) 2022-08-24 19:53:41 +05:30
plugins Cypress version upgrade for timeout issue resolution (#15917) 2022-08-16 09:31:16 +05:30
snapshots/Smoke_TestSuite/ClientSideTests/VisualTests chore: Update Logo/Favicon url + remove EE cypress code for Branding + Update screenshots tests (#18872) 2022-12-15 14:59:26 +05:30
support fix: ds discard popup issue fixes (#19114) 2022-12-30 15:53:24 +05:30
.eslintrc.json
apply-patches.js test: Script updates for flaky fixes (#16143) 2022-08-24 19:53:41 +05:30
cypress-docker-compose.yml
index.ts
init-mysql-dump-for-test.sql
init-pg-dump-for-test.sql
setup-test-fat.sh Removed the conflicting part with TED (#16022) 2022-08-16 11:01:25 +05:30
setup-test.sh Fix TED run command updated (#16089) 2022-08-18 10:09:12 +05:30
test.sh
tsconfig.json fix: rts version file moved to src (#15963) 2022-08-12 21:10:50 +05:30
xataadd.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30
xatadel.sh ci: Comment failing tests to PR (#18450) 2022-12-19 16:23:39 +05:30