Prevent Game Clones From Sharing Source Boxart #777
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
javascript
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com#777
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cloned games must not share the source game's boxart filename or storage object.
The current admin clone flow uses model replication, so the cloned game can inherit the same
boxartvalue as the source game. When admins later upload new boxart for the clone, the edit flow deletes the clone's previous boxart path, which can remove the source game's image because both records pointed at the same file.Scope
Admin\GameController::storeClone.Acceptance Criteria
boxartvalue.Test Coverage Required
Storage::fake('s3')so source and clone storage paths can be asserted safely.vendor/bin/pint --dirty --format agentbefore implementation closeout if PHP files change.Progress Checklist
vendor/bin/pint --dirty --format agentif PHP files changedCloned entries should not use the same image as the chosen gameto Prevent Game Clones From Sharing Source BoxartRe-review after expanding the branch to cover clone/source boxart isolation:
The branch codex/issue-775-prefilled-clone-form now meets the intent of this issue as well as #775. The clone form shows source boxart as reference only, does not submit the source boxart filename, and clone persistence no longer uses model replication. A clone can be saved with no boxart, or with a fresh upload that receives its own storage object. Later clone boxart uploads operate on the clone record and preserve the source game image.
Checklist mapping:
Notes on changed scope:
Verification run: