-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update client version in JsonSchemaVersionsFallback (#38390) #38391
Merged
rahulbarwal
merged 5 commits into
release
from
rahulbarwal/increase-clientSchemaVersion-to-prevent-HTML-column-based-apps-import-to-old-versions
Jan 3, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b3aaaea
fix: update client version in JsonSchemaVersionsFallback (#38390)
rahulbarwal 0d745ea
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
rahulbarwal d24930d
fix: update clientSchemaVersion to prevent backward compatibility issues
rahulbarwal 019a8da
Updates clientSchemaVersion to latest
rahulbarwal 51523c9
update versions in json file
rahulbarwal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...server/appsmith-server/src/test/resources/com/appsmith/server/migrations/application.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/file-with-v1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"serverSchemaVersion": 1, | ||
"clientSchemaVersion": 1 | ||
"clientSchemaVersion": 2 | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Test resources need to be updated to match new client schema version
The clientSchemaVersion update to 2.0 in migrations/application.json is correct and matches JsonSchemaVersionsFallback.clientVersion = 2, but other test resources are still using version 1.0/1 which needs to be updated:
test_assets/ImportExportServiceTest/*.json
files need clientSchemaVersion: 2git/*.json
files need clientSchemaVersion: 2imports/internal/faulty-dsl.json
needs clientSchemaVersion: 2These test files are used in import/export and migration tests that verify version compatibility. Having inconsistent versions across test resources could lead to false test failures.
🔗 Analysis chain
LGTM! Version update aligns with PR objectives.
The clientSchemaVersion update from 1.0 to 2.0 correctly implements the intended breaking change for HTML column type support.
Let's verify consistency across other test resources:
Inconsistent schema versions found in test resources - update needed
All test resources except
migrations/application.json
are using clientSchemaVersion 1.0/1, which conflicts with the schema version upgrade to 2.0. These test files need to be updated to maintain consistency:test_assets/ImportExportServiceTest/*.json
files (7 files)git/*.json
files (4 files)imports/internal/faulty-dsl.json
Let's verify if these files are used in migration/import tests that specifically need the older version:
Let's check the test files to understand if they specifically test version compatibility:
Let's try a different approach to find version-related test cases:
Let's check the JsonSchemaVersions class to understand the version management:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 6498
Script:
Length of output: 1148
Script:
Length of output: 789
Script:
Length of output: 69826
Script:
Length of output: 4895