The migrations are broken because we weren't using the right shape of the specification. This diff fixes it and introduces necessary type checks.
https://linear.app/comm/issue/ENG-9467/redux-migrations-are-broken
Paths
| Differential D13571 Authored by tomek on Oct 2 2024, 5:04 AM.
Details
Summary The migrations are broken because we weren't using the right shape of the specification. This diff fixes it and introduces necessary type checks. https://linear.app/comm/issue/ENG-9467/redux-migrations-are-broken Test Plan Tested this by creating a new migration on the web where a new draft is created. Run the app, and reopened it. Checked if the SET_CLIENT_DB_STORE action contains the draft.
Diff Detail
Event Timeline
Harbormaster completed remote builds in B32012: Diff 44821.Oct 2 2024, 5:25 AM2024-10-02 05:25:14 (UTC-7) tomek edited the test plan for this revision. (Show Details)Oct 2 2024, 5:25 AM2024-10-02 05:25:44 (UTC-7) ashoat added inline comments. This revision is now accepted and ready to land.Oct 2 2024, 5:31 AM2024-10-02 05:31:24 (UTC-7) Harbormaster completed remote builds in B32011: Diff 44820.Oct 2 2024, 5:34 AM2024-10-02 05:34:46 (UTC-7)
Harbormaster completed remote builds in B32017: Diff 44827.Oct 2 2024, 9:11 AM2024-10-02 09:11:46 (UTC-7) Closed by commit rCOMM85789c85773e: [lib] Fix SQLite migrations (authored by tomek). · Explain WhyOct 2 2024, 10:30 AM2024-10-02 10:30:55 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 44831 lib/shared/redux/client-db-utils.js
lib/utils/migration-utils.js
native/redux/client-db-utils.js
native/redux/persist.js
web/redux/persist.js
|