fix: zero cache stale replica & improved mentioned document chip handling#1388
fix: zero cache stale replica & improved mentioned document chip handling#1388AnishSarkar22 wants to merge 9 commits into
Conversation
|
@AnishSarkar22 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Motivation and Context
FIX #1355
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR upgrades the Rocicorp Zero cache from version 0.26.2 to 1.4.0 and addresses a critical bug where zero-cache could become stuck on a stale replica snapshot. A new Alembic migration forces a resync of the
zero_publicationusing the correctCOMMENT ON PUBLICATIONbookend pattern that properly triggers Zero's schema-change hooks. Additionally, documentation warnings were added to existing migrations to prevent future developers from using the problematicDROP/CREATE PUBLICATIONanti-pattern that caused the original issue.⏱️ Estimated Review Time: 15-30 minutes
💡 Review Order Suggestion
surfsense_backend/alembic/versions/143_force_zero_publication_resync.pysurfsense_backend/alembic/versions/116_create_zero_publication.pysurfsense_backend/alembic/versions/117_optimize_zero_publication_column_lists.pysurfsense_backend/alembic/versions/118_add_local_folder_sync_and_versioning.pysurfsense_backend/alembic/versions/139_add_user_to_zero_publication.pysurfsense_backend/alembic/versions/140_premium_tokens_to_credit_micros.pydocker/docker-compose.deps-only.ymldocker/docker-compose.dev.ymldocker/docker-compose.ymlsurfsense_web/package.jsonsurfsense_web/pnpm-lock.yaml