HomePhabricator
Diffusion Comm 48e72dc9548c

[CommCoreModule] Remove `last[NavigatedTo/Pruned]` from `MessageStoreThread`…

Tags
None
Referenced Files
F821725: 86e4f2.png
Oct 19 2023, 7:45 AM
File Not Attached
F821724: 7f7378.png
Oct 19 2023, 7:45 AM
File Not Attached
F821730: c45df9.png
Oct 19 2023, 7:45 AM
File Not Attached
Subscribers

Description

[CommCoreModule] Remove last[NavigatedTo/Pruned] from MessageStoreThread and message_store_threads table

Summary:

IMPORTANT: While I tested this migration a few times and read through things as carefully as I could, making changes to C++ codebase and SQLite store can be risky. Adding @ashoat and @kamil as blocking to take a look... would appreciate careful review to ensure everything is correct.

In this diff we:

  1. Remove lastPruned/lastNavigatedTo from MessageStoreThread struct and remove usages on C++ side.
  2. Introduce SQLite migration that drops lastPruned and lastNavigatedTo columns.

As of D9475, we've started ignoring what's persisted here in SQLite entirely... so this is effectively just dead code that we're cleaning up.


Depends on

D9475

Test Plan:

  1. C++ codebase continues to build/run without issue.
  2. recreate_message_store_threads_table migration succeeded and new message_store_threads table is as expected:

c45df9.png (402×1 px, 81 KB)

Before:

7f7378.png (1×1 px, 276 KB)

After:

86e4f2.png (1×1 px, 262 KB)

Reviewers: ashoat, kamil, tomek, ginsu, rohan

Reviewed By: ashoat, kamil

Subscribers: wyilio, ashoat, kamil

Differential Revision: https://phab.comm.dev/D9517