Remove deprecated FLAT user storage - #320
Merged
Merged
Conversation
BenCodez
marked this pull request as ready for review
September 12, 2026 22:51
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
First of the two requested users/storage PRs for native-platform preparation. Remove FLAT now; do not add another migration system.
UserStorage.FLATand the normal flat-file read/write, existence/deletion, enumeration, column-copy/wipe, and startup paths.UserData.getData(String)and the per-player file CRUD helpers fromFileThread.ReadThread; retain generic file utilities and their existing runner.DataStorage: FLATwith instructions to convert on the previous version rather than silently selecting an empty SQLite database. Reject a null backend atloadUserAPI.Upgrade and compatibility
This is the explicitly requested removal, including the deprecated FLAT-only public APIs. Servers still using FLAT must complete the existing conversion process on the previous version before upgrading. No new migration, automatic conversion, automatic storage switch, or deletion of existing
Data/*.ymlfiles is introduced. Normal configuration YAML support remains.One Maven project. No dependency, POM, workflow, reward-queue, or loader-packaging changes. SimpleAPI stays
1.0.2-SNAPSHOT; the removed dependency-pinning test stays removed. #314 remains closed.Follow-up: #321. Merge this PR first. #321 builds on this commit and separates SQL user access from Bukkit-facing ownership. Coordinate both changes with #317's user/cache changes; this PR does not modify or merge #317.
Verified GitHub Actions build
Java CI with Maven — run 602 passed. Inspected completed build job
103631354043and its Maven log:mvn -B -f AdvancedCore/pom.xml packageon Temurin Java 21.0.12.UserStorageTest: 4 passed, including the two new SQL-only/FLAT-rejection cases.SqlOnlyUserDataTest: all 3 new SQL read/write/delete compatibility cases passed.1.0.2-20260912.212854-22. This records the tested input; the POM remains1.0.2-SNAPSHOT.AdvancedCore/target/AdvancedCore.jargenerated; shading completed; BUILD SUCCESS.220a7172d432dcf851859d802e36b319a8b3be6dfor candidatee0f56679b12b0f0d7e67c655383e0f33b628d938and baseb03cb7f8a26c22e1e35b0c1a44ac1df7d5d8098d.These are GitHub Actions results, not a full local Maven build. Shade emitted overlap/minimization warnings; successful packaging does not establish packaged runtime compatibility.
Local checks
AdvancedCorePlugin.javaagainst Git blob1bed9a5cafc4f4ebbe892a6d63beb2e2211cfa3b; its change is confined to the storage loader.UserStoragewith Java 21 and ran a JDK-only selection probe: SQL choices retained, unknown/null inputs unchanged, FLAT variants rejected with upgrade guidance.git diff --no-index --checkproduced no whitespace diagnostics; reviewed the SQL branch removals and checked uploaded production blob hashes against the local candidates.Draft validation limits
Maven is absent and dependency/repository host DNS is unavailable in the editing container. Full local Maven and downstream SimpleAPI -> AdvancedCore -> VotingPlugin builds, actual database/server tests, packaged-linkage validation, and a fresh independent review have not been run. Same-context source inspection is not an independent clean verdict. Keep the PR draft until the required checks are complete.
Base:
b03cb7f8a26c22e1e35b0c1a44ac1df7d5d8098d.Candidate:
e0f56679b12b0f0d7e67c655383e0f33b628d938.No merge, release, deployment, or manual external review request was performed.