PromucFlow_constructor/app/client/src/sagas
Rimil Dey f960f67c84
fix: Clear cache when switching pages (#22776)
## Description

We noticed stale data from the previous page when having widgets with
the same name on different pages. This PR fixes this by changing the
data tree in the state when clearing the cache.

Fixes #17097 

PS - This task does not have tests, since we could not come up with an
approach to test this scenario

## Media

https://www.loom.com/share/14b88d57237d4a1097aa82185e9606cd

## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?

- Manual

### Test Plan
tested with table, list and chart widgets

### Issues raised during DP testing
none

## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer-reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reviewing all Cypress test
2023-05-06 19:30:50 +05:30
..
__tests__ 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
ActionExecution fix: Remove toast messages (#22267) 2023-04-27 14:20:23 +05:30
autoHeightSagas feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
CanvasSagas fix: Remove excess padding on right side and fix widget drop in nested containers (#22533) 2023-04-26 13:39:11 -04:00
WebsocketSagas 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
ActionSagas.ts chore: code splitting changes for appsmith ai v0.1 (#22521) 2023-04-20 20:42:35 +05:30
ApiPaneSagas.ts 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
AppThemingSaga.tsx chore: Code splitting FE files to support app level invites on Business edition (#21783) 2023-03-29 17:07:06 +00:00
AutoLayoutUpdateSagas.tsx chore: Removing feature flag for app level invites (#22650) 2023-04-26 12:48:16 +05:30
BatchSagas.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
CollectionSagas.ts 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
ContextSwitchingSaga.ts chore: Removing feature flag for app level invites (#22650) 2023-04-26 12:48:16 +05:30
CurlImportSagas.ts 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
DatasourcesSagas.ts fix: gs import export issue (#22746) 2023-05-04 09:43:34 +05:30
DebuggerSagas.ts chore: Add errorId to DEBUGGER_NEW_ERROR_MESSAGE telemetry (#22542) 2023-04-19 23:42:18 +05:30
editorContextSagas.ts 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
ErrorSagas.tsx feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
EvaluationsSaga.ts fix: Clear cache when switching pages (#22776) 2023-05-06 19:30:50 +05:30
EvalWorkerActionSagas.ts feat: JSObject variable as a state (JSObject variable mutation) (#19926) 2023-04-07 13:11:36 +05:30
FormEvaluationSaga.ts feat: disable spreadsheet entity in case of insert/delete one (#22490) 2023-04-24 10:10:47 +05:30
GitSyncSagas.ts fix: [Git] Avoid 404 when checking out a branch (#21894) 2023-04-04 10:29:00 +05:30
GlobalSearchSagas.ts 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
helper.ts feat: Error Navigation (#21753) 2023-04-10 18:29:14 +05:30
InitSagas.ts fix: 503 error fixed when navigating to homepage (#21971) 2023-04-14 08:19:43 +05:30
JSActionSagas.ts 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
JSLibrarySaga.ts chore: Code splitting FE files to support app level invites on Business edition (#21783) 2023-03-29 17:07:06 +00:00
JSPaneSagas.ts fix: Remove toast messages (#22267) 2023-04-27 14:20:23 +05:30
layoutConversionSagas.ts fix: Layout Conversion bugs for auto Layout (#22565) 2023-05-03 04:26:52 +00:00
LintingSagas.ts feat: show lint errors in async functions bound to sync fields (#21187) 2023-04-03 16:11:15 +05:30
ModalSagas.ts feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
OnboardingSagas.ts feat: signposting stickiness (#22088) 2023-05-02 15:22:05 +05:30
OneClickBindingSaga.ts chore: [one click binding] Property pane control to generate query for a widget (#22172) 2023-04-13 16:39:24 +05:30
PageSagas.tsx chore: Suppress sentry error capture for invalid dynamic path (#22320) 2023-04-13 17:14:24 +05:30
PageVisibilitySagas.ts 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
PluginSagas.ts 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
PostEvaluationSagas.ts chore: Removing the old BINDING_SUCCESS event (#22908) 2023-05-03 12:28:53 +05:30
PostLintingSagas.ts feat: show lint errors in async functions bound to sync fields (#21187) 2023-04-03 16:11:15 +05:30
ProvidersSaga.ts feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
QueryPaneSagas.ts feat: disable spreadsheet entity in case of insert/delete one (#22490) 2023-04-24 10:10:47 +05:30
RecentEntitiesSagas.ts chore: code splitting changes for appsmith ai v0.1 (#22521) 2023-04-20 20:42:35 +05:30
ReplaySaga.ts 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
SaaSPaneSagas.ts 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
selectors.tsx feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
SnapshotSagas.ts fix: Layout Conversion bugs for auto Layout (#22565) 2023-05-03 04:26:52 +00:00
SnipingModeSagas.ts 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
TemplatesSagas.ts feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
ThemeSaga.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
UtilSagas.ts 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
WidgetAdditionSagas.ts feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
WidgetBlueprintSagas.test.ts 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
WidgetBlueprintSagas.ts feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
WidgetDeletionSagas.ts feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
WidgetEnhancementHelpers.ts 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
WidgetLoadingSaga.ts 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
WidgetOperationSaga.test.tsx feat: upgrade to create react app 5 (#14000) 2022-06-21 19:27:34 +05:30
WidgetOperationSagas.tsx fix: available columns calculation in assigning width to fill widgets (#22688) 2023-04-28 15:31:29 -04:00
WidgetOperationUtils.test.ts fix: combineDynamicBindings function (#22600) 2023-04-26 23:58:17 +05:30
WidgetOperationUtils.ts fix: Remove excess padding on right side and fix widget drop in nested containers (#22533) 2023-04-26 13:39:11 -04:00
WidgetSelectionSagas.ts fix: Do not set widget ancestry if selection happens via canvas (#22069) 2023-04-10 12:55:14 +05:30
WidgetSelectUtils.test.ts 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
WidgetSelectUtils.ts chore: Removing feature flag for app level invites (#22650) 2023-04-26 12:48:16 +05:30