[PR #7313] [MERGED] port map: rest-019's old user lists and pack feature flags say where they stop #7485

Closed
opened 2026-11-03 06:40:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7313
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-b-rest-019


📝 Commits (1)

  • 63a9c0a port map: the pre-1.7 user lists and pack feature flags say where they stop

📊 Changes

1 file changed (+11 additions, -11 deletions)

View changed files

📝 tools/port_map/rest-019.tsv (+11 -11)

📄 Description

Rows of tools/port_map/rest-019.tsv (118 rows, map-check clean against 26.3), the server's user lists and the pack repository. Notes only: the eleven missing rows in this batch are real absences, but the notes did not say what the tree has instead.

Notes repaired

  • PackRepository.getRequestedFeatureFlags: no pack's feature_flags are read from its metadata. The only feature list anything consults is the world's own enabled_features, which the game rules (GameRules::load_with_features), the datapack function filter (datapack::enabled_ids) and the command dispatcher (game_dispatcher_with_features) read.
  • OldUsersConverter.readOldListFormat, lookupPlayers, convertUserBanlist, convertIpBanlist, convertOpsList, convertWhiteList: the server reads ops.json, whitelist.json and banned-players.json (game/dedicated.rs:439-441). The pre-1.7 text lists have no reader and no conversion, and names in them are never resolved to uuids.
  • OldUsersConverter.convertMobOwnerIfNecessary: a name owner on an old tamed mob is not turned into a uuid; the datafix handles OwnerUUID only.
  • OldUsersConverter.convertPlayers: old world/players/*.dat files are not moved into playerdata.
  • OldUsersConverter.areOldUserlistsRemoved, renameOldFile: the server does not refuse to start while old list files remain, and nothing renames a converted file to .converted.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-019.tsv
118 rows, no problems.

Proven: every rewritten note; game/dedicated.rs:439-441 constructs the three json lists, world_loading.rs sets level.enabled_features, and the three enabled_features readers are named from the tree.

Not proven: no verdict changes. I did not check whether a server run against a world directory holding the old text lists fails, ignores them or overwrites them — the notes stop at "no reader". None of the gaps is shown to be unportable.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7313 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-b-rest-019` --- ### 📝 Commits (1) - [`63a9c0a`](https://github.com/horizon-rust/horizon/commit/63a9c0afb859f6e1c4b3c7652ecbe7ae95e549db) port map: the pre-1.7 user lists and pack feature flags say where they stop ### 📊 Changes **1 file changed** (+11 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-019.tsv` (+11 -11) </details> ### 📄 Description Rows of `tools/port_map/rest-019.tsv` (118 rows, map-check clean against 26.3), the server's user lists and the pack repository. Notes only: the eleven `missing` rows in this batch are real absences, but the notes did not say what the tree has instead. **Notes repaired** - `PackRepository.getRequestedFeatureFlags`: no pack's `feature_flags` are read from its metadata. The only feature list anything consults is the world's own `enabled_features`, which the game rules (`GameRules::load_with_features`), the datapack function filter (`datapack::enabled_ids`) and the command dispatcher (`game_dispatcher_with_features`) read. - `OldUsersConverter.readOldListFormat`, `lookupPlayers`, `convertUserBanlist`, `convertIpBanlist`, `convertOpsList`, `convertWhiteList`: the server reads `ops.json`, `whitelist.json` and `banned-players.json` (`game/dedicated.rs:439-441`). The pre-1.7 text lists have no reader and no conversion, and names in them are never resolved to uuids. - `OldUsersConverter.convertMobOwnerIfNecessary`: a name owner on an old tamed mob is not turned into a uuid; the datafix handles `OwnerUUID` only. - `OldUsersConverter.convertPlayers`: old `world/players/*.dat` files are not moved into `playerdata`. - `OldUsersConverter.areOldUserlistsRemoved`, `renameOldFile`: the server does not refuse to start while old list files remain, and nothing renames a converted file to `.converted`. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/rest-019.tsv 118 rows, no problems. ``` **Proven:** every rewritten note; `game/dedicated.rs:439-441` constructs the three json lists, `world_loading.rs` sets `level.enabled_features`, and the three `enabled_features` readers are named from the tree. **Not proven:** no verdict changes. I did not check whether a server run against a world directory holding the old text lists fails, ignores them or overwrites them — the notes stop at "no reader". None of the gaps is shown to be unportable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7485
No description provided.