Repository navigation
feat(api): expose linked vehicle mounting positions in v3 - #220
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9e2c17723c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| new OA\Property( | ||
| property: 'mounting_positions', | ||
| description: 'Weapon and utility mounting positions in the loadout, including vacant and occupied gun, turret, missile rack, and utility tool positions. Excludes unrelated equipment such as shields and coolers. Each position links to one loadout port by port_id. Only on v3 detail responses for snapshots that provide this list.', | ||
| type: 'array', | ||
| items: new OA\Items(ref: '#/components/schemas/game_vehicle_mounting_position'), |
There was a problem hiding this comment.
Deprecate the superseded turret summary
When the new v3 mounting-position contract is published, generated clients will still see the overlapping turrets property as fully supported because its OpenAPI definition remains neither deprecated nor documented with a migration path. Mark the legacy turret summary as deprecated in both the annotation and generated swagger.yaml so consumers can discover and migrate to mounting_positions rather than continuing to adopt the representation this change supersedes.
Useful? React with 👍 / 👎.
7c63015 to
3a0a040
Compare
3a0a040 to
4e8f7eb
Compare
Summary
Expose
mounting_positionson v3 vehicle detail responses. Join each position to its loadout port by snapshot-localport_id. New snapshots can return[]; older snapshots omit the field.Mark
turrets.manned,turrets.remote, andturrets.pdcdeprecated in OpenAPI. Runtime notices appear only on v3 detail responses that providemounting_positions. Legacy values and older-snapshot fallback remain unchanged. See the migration guide for a worked example.Evidence
The local paired import covered all 332 vehicles in build
4.10.3-LIVE.13165946. All 551 legacy turret rows, 998 nested mounts, and 970 weapon entries reconstructed exactly from the replacement data. Existing turret summaries, crew counts, aggregate DPS, and fixed weapons matched the baseline. All 2,188 positions linked uniquely. The four scoped Galaxy Cargo routes match the dump; the other routes omit the scope field.Local import handoff
49f78846. Fleet verification candidate:18345cbb. API head with separately reviewed deprecation and regression tests:871144a0.ad899ef. Verified dumper candidate:5cdca0d(identical tree to the fleet-tested5472476) (dumper PR).php cli.php load:vehicles GAME_DATA OUTPUT. SetSCUNPACKED_PATHto each export root and use identical supporting manufacturer, label, and item data on both sides.QUEUE_CONNECTION=sync. Register the build withphp artisan game:add-version 4.10.3-LIVE.13165946 --default, then runphp artisan game:import-manufacturersandphp artisan game:import-vehicles 4.10.3-LIVE.13165946. CompareGET /api/v3/vehicles/{uuid}responses.This PR does not remove legacy fields or deploy the migration. Ship this change with the matching dumper revision.