Skip to content
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

Add --upgrade command to Schema Loader #1208

Merged
merged 3 commits into from
Nov 4, 2023
Merged

Conversation

Torch3333
Copy link
Contributor

@Torch3333 Torch3333 commented Oct 20, 2023

Description

This adds a new --upgrade command to the Schema Loader, which directly calls the Admin API upgrade() method.
For more details about what upgrade does, please refer to #1204

Related issues and/or PRs

Changes made

Adds a new --upgrade command to the Schema Loader

Checklist

The following is a best-effort checklist. If any items in this checklist are not applicable to this PR or are dependent on other, unmerged PRs, please still mark the checkboxes after you have read and understood each item.

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

  • The documentation will be updated in another PR

Release notes

Added a new command --upgrade to the Schema Loader. Running this method when updating an existing environment to ScalarDB 4.X is necessary to support backward incompatible changes introduced by the new "namespaces management" feature. This command is strictly equivalent to the Admin API upgrade() method.

@Torch3333 Torch3333 self-assigned this Oct 20, 2023
@Torch3333 Torch3333 added the enhancement New feature or request label Oct 20, 2023
@Torch3333 Torch3333 changed the title Add upgrade to schema loader Add --upgrade command to Schema Loader Oct 20, 2023
@Torch3333 Torch3333 changed the base branch from master to add_upgrade October 20, 2023 06:01
@Torch3333 Torch3333 force-pushed the add_upgrade_to_schema_loader branch from 345cb55 to e44abc9 Compare October 20, 2023 07:01
Base automatically changed from add_upgrade to master October 23, 2023 07:52
@Torch3333 Torch3333 force-pushed the add_upgrade_to_schema_loader branch from 8892882 to 7f5e898 Compare October 29, 2023 15:39
@Torch3333 Torch3333 marked this pull request as ready for review November 1, 2023 21:40
Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

Copy link
Contributor

@feeblefakie feeblefakie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!
Left one super minor comment.

throws SchemaLoaderException {
Either<Path, Properties> config = new Left<>(configPath);
upgrade(config, options);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor, but we probably need an empty line?

Copy link
Contributor Author

@Torch3333 Torch3333 Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thank you.
It's a shame Spotless does not enforce having a blank line between method definitions.
be5165f

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@brfrn169 brfrn169 merged commit f8905c8 into master Nov 4, 2023
23 checks passed
@brfrn169 brfrn169 deleted the add_upgrade_to_schema_loader branch November 4, 2023 16:35
Torch3333 added a commit that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants