Skip to content

feat(api): expose linked vehicle mounting positions in v3 - #220

Merged
octfx merged 1 commit into
developfrom
feat/vehicle-mounting-positions
Nov 21, 2026
Merged

octfx merged 1 commit into
developfrom
feat/vehicle-mounting-positions

Conversation

@octfx

@octfx octfx commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Expose mounting_positions on v3 vehicle detail responses. Join each position to its loadout port by snapshot-local port_id. New snapshots can return []; older snapshots omit the field.

Mark turrets.manned, turrets.remote, and turrets.pdc deprecated in OpenAPI. Runtime notices appear only on v3 detail responses that provide mounting_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

  • API baseline: 49f78846. Fleet verification candidate: 18345cbb. API head with separately reviewed deprecation and regression tests: 871144a0.
  • Dumper baseline: ad899ef. Verified dumper candidate: 5cdca0d (identical tree to the fleet-tested 5472476) (dumper PR).
  • Export both fleets from the same game build with php cli.php load:vehicles GAME_DATA OUTPUT. Set SCUNPACKED_PATH to each export root and use identical supporting manufacturer, label, and item data on both sides.
  • In separate disposable local databases, set QUEUE_CONNECTION=sync. Register the build with php artisan game:add-version 4.10.3-LIVE.13165946 --default, then run php artisan game:import-manufacturers and php artisan game:import-vehicles 4.10.3-LIVE.13165946. Compare GET /api/v3/vehicles/{uuid} responses.

This PR does not remove legacy fields or deploy the migration. Ship this change with the matching dumper revision.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T11:54:33.106539Z 9e2c177 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +483 to +487
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'),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@octfx
octfx force-pushed the feat/vehicle-mounting-positions branch 2 times, most recently from 7c63015 to 3a0a040 Compare November 20, 2026 18:59
@octfx
octfx force-pushed the feat/vehicle-mounting-positions branch from 3a0a040 to 4e8f7eb Compare November 21, 2026 09:19
@octfx
octfx added this pull request to stack #222 November 21, 2026 09:21
@octfx octfx changed the title Expose linked vehicle mounting positions in v3 feat(api): expose linked vehicle mounting positions in v3 Nov 21, 2026
@octfx
octfx merged commit 493f04d into develop Nov 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant