Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit history testing #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

edit history testing #5

wants to merge 2 commits into from

Conversation

PIG208
Copy link
Owner

@PIG208 PIG208 commented Aug 25, 2023

This runs the tests without the third final commit

edith007 and others added 2 commits October 5, 2023 21:46
This is the first migration to migrate edit_history field of
AbstractMessage model from TextField to JSONField.
This migration just adds the edit_history_entries field in the model.

Co-Authored-By: Zixuan James Li <p359101898@gmail.com>
We cast edit_history because it already stores valid JSON consistently.
Skipping the null values because we want to fall back to "[]" in that case.

We also implement double-write for edit_history_entries so that we have a
window to run the backfilling migration without downtime or extensive
locking, which also prepares us to stop using the edit_history field.

Co-Authored-By: Zixuan James Li <p359101898@gmail.com>
@PIG208 PIG208 force-pushed the JSON-testing branch 3 times, most recently from 89c89d9 to ae97bfd Compare October 6, 2023 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants