Revert "fix: debugger errors CE" (#30639)

Reverts appsmithorg/appsmith#30596

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

## Summary by CodeRabbit

- **Refactor**
  - Streamlined error message content during plugin action execution.
  - Simplified entity payload information handling.

- **Chores**
- Restricted the scope of a debugger utility function for internal use.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Trisha Anand 2024-01-25 19:07:32 +05:30 committed by GitHub
parent e11c05495b
commit 7e85ad9d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 5 deletions

View File

@ -15,7 +15,6 @@ export const getEntityPayloadInfo: Record<
iconId: string;
id: string;
pluginType?: PluginType | string;
entityName?: string;
}
> = {
[ENTITY_TYPE.WIDGET]: (entityConfig) => {

View File

@ -622,12 +622,12 @@ export default function* executePluginActionTriggerSaga(
});
if (onError) {
throw new PluginTriggerFailureError(
createMessage(ERROR_ACTION_EXECUTE_FAIL, pluginActionNameToDisplay),
createMessage(ERROR_ACTION_EXECUTE_FAIL, action.name),
[payload.body, params],
);
} else {
throw new PluginTriggerFailureError(
createMessage(ERROR_PLUGIN_ACTION_EXECUTE, pluginActionNameToDisplay),
createMessage(ERROR_PLUGIN_ACTION_EXECUTE, action.name),
[],
);
}

View File

@ -130,7 +130,7 @@ function logLatestEvalPropertyErrors(
messages: errorMessages,
source: {
id: payloadInfo.id,
name: payloadInfo.entityName || entityName,
name: entityName,
type: entityType as ENTITY_TYPE,
propertyPath: logPropertyPath,
pluginType: payloadInfo.pluginType,

View File

@ -341,7 +341,7 @@ export function* startAppEngine(action: ReduxAction<AppEnginePayload>) {
}
}
export function* resetDebuggerLogs() {
function* resetDebuggerLogs() {
// clear all existing debugger errors
const debuggerErrors: ReturnType<typeof getDebuggerErrors> =
yield select(getDebuggerErrors);