From 648832a081179586244d52b1224262f682980bfb Mon Sep 17 00:00:00 2001 From: Manish Kumar <107841575+sondermanish@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:58:01 +0530 Subject: [PATCH] chore: reverted server version number (#34158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description - Reverting server version number from 8 to 7, this would mean that even if the feature flag is on, the server won't see any autocommits. - Following this Pr, after promotion is complete we would go ahead create feature flagging implementation for handling json schema version numbers. Fixes https://github.com/appsmithorg/appsmith/issues/34157 > [!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.Git" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: d6b05f2437c5810d1aa32ad4fb1950a84897e977 > Cypress dashboard url: Click here! ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No ## Summary by CodeRabbit - **Refactor** - Updated server schema version from 8 to 7 for improved compatibility. - Adjusted migration logic to handle server schema version detection more effectively. --- .../com/appsmith/server/migrations/JsonSchemaMigration.java | 3 --- .../com/appsmith/server/migrations/JsonSchemaVersions.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaMigration.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaMigration.java index 34cc075b16..545686921c 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaMigration.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaMigration.java @@ -124,9 +124,6 @@ public class JsonSchemaMigration { case 6: MigrationHelperMethods.ensureXmlParserPresenceInCustomJsLibList(applicationJson); applicationJson.setServerSchemaVersion(7); - case 7: - applicationJson.setServerSchemaVersion(8); - default: // Unable to detect the serverSchema } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersions.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersions.java index dc55314e09..2b81d9a020 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersions.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/JsonSchemaVersions.java @@ -12,6 +12,6 @@ import lombok.Getter; */ @Getter public class JsonSchemaVersions { - public static final Integer serverVersion = 8; + public static final Integer serverVersion = 7; public static final Integer clientVersion = 1; }