[PR #6845] [MERGED] Clear seven rest-015 rows: /op, /pardon, /pardon-ip and /fetchprofile exist #7139

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-rest-015


📝 Commits (1)

  • 7676138 Clear seven rest-015 rows: /op, /pardon, /pardon-ip and /fetchprofile exist

📊 Changes

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

View changed files

📝 tools/port_map/rest-015.tsv (+7 -7)

📄 Description

Seven tools/port_map/rest-015.tsv rows still said missing for command behaviour current main
has. Each was read in the code, and the row now names where it lives:

  • FetchProfileCommand.resolveName / resolveId ->
    game/commands/extra.rs::Game::cmd_fetchprofile: the lookup is queued on the profile resolver
    and answered on a later tick with commands.fetchprofile.name.* or .id.*, the id parsed with
    the selector's UUID reader.
  • OpCommand.register -> game/commands.rs::Game::execute_command dispatches op to the op arm
    of game/commands/profiles.rs::Game::cmd_profiles: the entry joins the op list, the lists are
    synced and commands.op.success is said.
  • PardonCommand.register -> the same dispatcher, pardon to the pardon arm.
  • PardonCommand.pardonPlayers -> that arm: the profile leaves the ban list with
    commands.pardon.success, and none banned gives commands.pardon.failed.
  • PardonIpCommand.register -> the dispatcher sends pardon-ip to
    game/commands/profiles.rs::Game::cmd_ip_bans.
  • PardonIpCommand.unban -> that function's pardon-ip half: the address leaves the ip ban list
    with commands.pardonip.success; a target that is not an address gives
    commands.pardonip.invalid, one that is not banned commands.pardonip.failed.

All of these are vanilla's CommandSelection.DEDICATED commands: dedicated_lists refuses them
on an integrated server, as vanilla does.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-015.tsv on the build VM -
149 rows, no problems. Each claim is from reading the function named in the row.

Not proven: no in-game check; these are ledger verdicts, not behaviour changes. Rows this sweep
did not settle (ServerPackCommand, SetPlayerIdleTimeoutCommand, SpawnArmorTrimsCommand) are
left as they were.


🔄 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/6845 **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/ledger-rest-015` --- ### 📝 Commits (1) - [`7676138`](https://github.com/horizon-rust/horizon/commit/7676138acf61091f6bda50bfc95bc5a703f0a1a2) Clear seven rest-015 rows: /op, /pardon, /pardon-ip and /fetchprofile exist ### 📊 Changes **1 file changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-015.tsv` (+7 -7) </details> ### 📄 Description Seven `tools/port_map/rest-015.tsv` rows still said `missing` for command behaviour current `main` has. Each was read in the code, and the row now names where it lives: - `FetchProfileCommand.resolveName` / `resolveId` -> `game/commands/extra.rs::Game::cmd_fetchprofile`: the lookup is queued on the profile resolver and answered on a later tick with `commands.fetchprofile.name.*` or `.id.*`, the id parsed with the selector's UUID reader. - `OpCommand.register` -> `game/commands.rs::Game::execute_command` dispatches `op` to the op arm of `game/commands/profiles.rs::Game::cmd_profiles`: the entry joins the op list, the lists are synced and `commands.op.success` is said. - `PardonCommand.register` -> the same dispatcher, `pardon` to the pardon arm. - `PardonCommand.pardonPlayers` -> that arm: the profile leaves the ban list with `commands.pardon.success`, and none banned gives `commands.pardon.failed`. - `PardonIpCommand.register` -> the dispatcher sends `pardon-ip` to `game/commands/profiles.rs::Game::cmd_ip_bans`. - `PardonIpCommand.unban` -> that function's pardon-ip half: the address leaves the ip ban list with `commands.pardonip.success`; a target that is not an address gives `commands.pardonip.invalid`, one that is not banned `commands.pardonip.failed`. All of these are vanilla's `CommandSelection.DEDICATED` commands: `dedicated_lists` refuses them on an integrated server, as vanilla does. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-015.tsv` on the build VM - `149 rows, no problems.` Each claim is from reading the function named in the row. **Not proven:** no in-game check; these are ledger verdicts, not behaviour changes. Rows this sweep did not settle (`ServerPackCommand`, `SetPlayerIdleTimeoutCommand`, `SpawnArmorTrimsCommand`) are left as they were. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:31 +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#7139
No description provided.