PromucFlow_constructor/app/client/src/sagas
Hetu Nandu 89154c56cd
fix: RBAC errors not showing toasts (#36244)
## Description

Updates the error handling for Access Control scenarios to show toasts
when correct permissions are not present


Fixes #36229

## Automation

/ok-to-test tags="@tag.AccessControl"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]
> 🔴 🔴 🔴 Some tests have failed.
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/10807287223>
> Commit: 08edaeefb87d02f8951a38cef2ac0c608d8fe8f8
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10807287223&attempt=2&selectiontype=test&testsstatus=failed&specsstatus=fail"
target="_blank">Cypress dashboard</a>.
> Tags: @tag.AccessControl
> Spec: 
> The following are new failures, please fix them before merging the PR:
<ol>
> <li>cypress/e2e/Regression/ServerSide/GenerateCRUD/MySQL2_Spec.ts</ol>
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/identified-flaky-tests-65890b3c81d7400d08fa9ee3?branch=master"
target="_blank">List of identified flaky tests</a>.
> <hr>Wed, 11 Sep 2024 08:28:37 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced error handling with structured Redux actions for better state
management.
	- Improved clarity in error message construction based on error types.
- **Bug Fixes**
- Refined logic for displaying toast notifications based on the `show`
parameter.
- **Documentation**
	- Updated comments for better understanding of error handling logic.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-11 14:06:28 +05:30
..
__tests__ fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ActionExecution fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
autoHeightSagas fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
BuildingBlockSagas fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
CanvasSagas fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
PartialImportExportSagas fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
PasteWidgetUtils chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
WebsocketSagas chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
ActionSagas.ts fix: RBAC errors not showing toasts (#36244) 2024-09-11 14:06:28 +05:30
AnalyticsSaga.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ApiPaneSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
AppThemingSaga.tsx chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
AutoLayoutUpdateSagas.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
BatchSagas.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
CommunityTemplatesSagas.tsx chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
CurlImportSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
DatasourcesSagas.ts feat: Improved-error-messages-for-postgres-connection (#35167) 2024-09-09 15:22:59 +01:00
DebuggerSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
editorContextSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ErrorSagas.tsx fix: RBAC errors not showing toasts (#36244) 2024-09-11 14:06:28 +05:30
EvalErrorHandler.ts chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
EvaluationsSaga.test.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
EvaluationsSaga.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
EvaluationsSagaUtils.test.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
EvaluationsSagaUtils.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
EvalWorkerActionSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
FocusRetentionSaga.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
FormEvaluationSaga.ts chore: adding telemetry for klona (#35918) 2024-08-29 12:35:48 +05:30
getNextEntityAfterRemove.test.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
GitSyncSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
GlobalSearchSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
helper.test.ts
helper.ts chore: adding telemetry for klona (#35918) 2024-08-29 12:35:48 +05:30
IDESaga.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
InitSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
JSLibrarySaga.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
JSPaneSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
layoutConversionSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
LintingSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
loadGoogleApi.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ModalSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
NavigationSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
OnboardingSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
OneClickBindingSaga.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
PageVisibilitySagas.ts
PluginSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
PostEvaluationSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
PostLintingSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
QueryPaneSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
RecentEntitiesSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ReplaySaga.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
SaaSPaneSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
selectors.tsx chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
SnapshotSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
SnipingModeSaga.test.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
SnipingModeSagas.ts chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
TemplatesSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
TernSaga.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ThemeSaga.tsx fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
ToastSagas.ts chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
UtilSagas.ts chore: Cleanup Redux Actions file (#35720) 2024-08-22 09:49:30 +05:30
WidgetAdditionSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
WidgetBlueprintSagas.test.ts fix: jest test failures coz of getIsAnvilLayout (#32664) 2024-04-15 09:17:23 +05:30
WidgetBlueprintSagas.ts chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
WidgetDeletionSaga.test.ts fix: Prevent Errors in Debugger When Deleting List Widget (#35820) 2024-08-30 10:38:19 +01:00
WidgetDeletionSagas.ts fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
WidgetEnhancementHelpers.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
WidgetLoadingSaga.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
WidgetOperationSaga.test.tsx chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
WidgetOperationSagas.tsx fix: Fall of the error toasts wall (#35839) 2024-09-05 11:06:43 +05:30
WidgetOperationUtils.test.ts chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
WidgetOperationUtils.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
WidgetSelectionSagas.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
WidgetSelectUtils.test.ts
WidgetSelectUtils.ts chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00