From 4c40aab46404cb7ae40575ab5c20ae4ed7413622 Mon Sep 17 00:00:00 2001 From: Vemparala Surya Vamsi <121419957+vsvamsi1@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:41:20 +0530 Subject: [PATCH] chore: trigger linting actions in any non published mode (#34903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description The CE's selector implementation has been changed to lint actions for all non published app modes. Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 6b50ea5ef919b3b79e53642f63c7a9e981d8b307 > Cypress dashboard. > Tags: `@tag.All` > Spec: >
Fri, 12 Jul 2024 11:06:58 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Bug Fixes** - Adjusted linting trigger conditions to ensure linting is activated for all modes except the published mode. --- app/client/src/ce/actions/evaluationActionsList.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/client/src/ce/actions/evaluationActionsList.ts b/app/client/src/ce/actions/evaluationActionsList.ts index 1e248a9f72..f7b6307680 100644 --- a/app/client/src/ce/actions/evaluationActionsList.ts +++ b/app/client/src/ce/actions/evaluationActionsList.ts @@ -123,7 +123,8 @@ export const EVAL_AND_LINT_REDUX_ACTIONS = union( export function getRequiresLinting(action: ReduxAction) { const appMode: ReturnType = getAppMode(store.getState()); + // for any case apart from published mode of an app, we should trigger linting const requiresLinting = - appMode === APP_MODE.EDIT && shouldTriggerLinting(action); + appMode !== APP_MODE.PUBLISHED && shouldTriggerLinting(action); return requiresLinting; }