Add last_updated field to PhotoGallery#8530
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @CouchersBot[bot]'s task in 41s —— View job Migration safety review
Result: SAFE. The migration adds |
Migration ReviewOne of our most common issues is migrations that don't work with existing data in production. This is very hard to catch with CI, so we have this bot to check for potential problems. Overall Risk: SAFE Files Reviewed
FindingsNo issues found.
One minor (non-blocking) observation: every existing gallery row will be backfilled with the same migration-time timestamp, which means existing galleries will all look "freshly updated" right after deploy. This is almost certainly the intended/acceptable behavior, but worth noting if SummaryA clean, low-risk additive migration with a server-side default that safely backfills existing rows. No action required. |
|
@aapeliv Does it need to be added to the protos? |
📝 Release NotesThis PR does not need to be included in release notes. Reason: This is a backend data-model change adding a freshness timestamp for photo galleries. The PR does not expose any new user-facing feature, visible UX improvement, or clearly described reliability/performance benefit for end users on its own. It appears to enable future functionality rather than deliver a noticeable change now. 🤖 Bot Debug InformationModel: |
Adds a
last_updatedtimestamp toPhotoGallerythat is bumped whenever a gallery is mutated (photo added, removed, moved, or caption changed). CurrentlyUser.profile_last_updatedis only updated viaUpdateProfile, so changes to a user's profile photo gallery are not reflected anywhere; this gives gallery freshness its own timestamp on the gallery itself.Testing
src/tests/test_galleries.py, 42 tests) still passes.last_updatedbehavior yet — could add coverage that each mutation advances the timestamp and the no-op move does not.Backend checklist
developif necessary for linear migration historyFor maintainers
This PR was created with the Couchers PR skill.