Add admin-side import of game metadata into requests #943

Open
opened 2026-09-09 18:40:28 -05:00 by Veilor · 0 comments
Member

Game requests can represent the same game across multiple platforms, creating repetitive admin data entry.

Provide an admin-only source game ID field and import action that reuses existing game metadata without changing request submission or review flows.

Scope

  • Add source-game lookup and import behavior to the existing admin request workflow.
  • Copy supported game metadata into the selected request while preserving request-specific platform, status, requester, and review fields.
  • Display validation and not-found errors without mutating the request.
  • Reuse existing authorization, game models, request handling, and admin UI conventions.

Acceptance Criteria

  • An authorized administrator can enter a valid existing game ID on a request and import its supported metadata.
  • The target request is updated with the imported metadata and retains its own platform and request-specific values.
  • Invalid, missing, or inaccessible source IDs produce a clear validation error and leave the target request unchanged.
  • The import control is unavailable to non-administrators and does not alter public request submission behavior.
  • The admin interface clearly indicates which fields are imported and provides success or failure feedback.

Test Coverage Required

  • Feature coverage for an authorized administrator importing metadata from an existing game into a request.
  • Feature coverage confirming request-specific fields remain unchanged after import.
  • Feature coverage for invalid and nonexistent source IDs, including no partial update.
  • Authorization coverage confirming non-admin users cannot invoke the import behavior.

Progress Checklist

  • Trace the existing request model, admin controller or Livewire surface, routes, and views.
  • Define the allowlisted game fields eligible for import.
  • Implement validated admin-only lookup and atomic metadata copy.
  • Add focused feature and authorization tests.
  • Run the affected test suite and formatting checks.
Game requests can represent the same game across multiple platforms, creating repetitive admin data entry. Provide an admin-only source game ID field and import action that reuses existing game metadata without changing request submission or review flows. ## Scope - Add source-game lookup and import behavior to the existing admin request workflow. - Copy supported game metadata into the selected request while preserving request-specific platform, status, requester, and review fields. - Display validation and not-found errors without mutating the request. - Reuse existing authorization, game models, request handling, and admin UI conventions. ## Acceptance Criteria - An authorized administrator can enter a valid existing game ID on a request and import its supported metadata. - The target request is updated with the imported metadata and retains its own platform and request-specific values. - Invalid, missing, or inaccessible source IDs produce a clear validation error and leave the target request unchanged. - The import control is unavailable to non-administrators and does not alter public request submission behavior. - The admin interface clearly indicates which fields are imported and provides success or failure feedback. ## Test Coverage Required - Feature coverage for an authorized administrator importing metadata from an existing game into a request. - Feature coverage confirming request-specific fields remain unchanged after import. - Feature coverage for invalid and nonexistent source IDs, including no partial update. - Authorization coverage confirming non-admin users cannot invoke the import behavior. ## Progress Checklist - [ ] Trace the existing request model, admin controller or Livewire surface, routes, and views. - [ ] Define the allowlisted game fields eligible for import. - [ ] Implement validated admin-only lookup and atomic metadata copy. - [ ] Add focused feature and authorization tests. - [ ] Run the affected test suite and formatting checks.
Codex changed title from The ability to import game info from other entries to requests to Add admin-side import of game metadata into requests 2026-09-09 18:41:01 -05: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
MyVideoGameList/myvideogamelist.com#943
No description provided.