From ed21a8f44c6e93ee95413696b66cd8a5f4cb93f8 Mon Sep 17 00:00:00 2001 From: Anagh Hegde Date: Mon, 8 Jul 2024 18:13:07 +0530 Subject: [PATCH] fix: Queries do not fetch any data when datasources are configured while importing an app (#34789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description The null check for adding datasource information to an action was invalid. And all the actions get the datasource from the existing datasource object. Hence all the actions were failing with missing workspaceId. Fixes https://github.com/appsmithorg/appsmith/issues/34772 ## Automation /ok-to-test tags="@tag.Git, @tag.ImportExport, @tag.Templates" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 8854a2701d4aebf7601efba7643acfe3d44d712d > Cypress dashboard. > Tags: `@tag.Git, @tag.ImportExport, @tag.Templates` >
Mon, 08 Jul 2024 12:31:17 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Refactor** - Simplified conditional checks in the backend to improve code readability and maintainability. --- .../newactions/importable/NewActionImportableServiceCEImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java index 68d61168fe..bcf7b45564 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/importable/NewActionImportableServiceCEImpl.java @@ -321,7 +321,7 @@ public class NewActionImportableServiceCEImpl implements ImportableServiceCE