Page MenuHomePhabricator

[SQLite] Add a new column to outbound_p2p_messages table
ClosedPublic

Authored by tomek on Jul 15 2024, 3:07 AM.
Tags
None
Referenced Files
F3346002: D12742.diff
Fri, Nov 22, 7:47 AM
Unknown Object (File)
Thu, Nov 21, 1:53 AM
Unknown Object (File)
Fri, Nov 8, 12:26 PM
Unknown Object (File)
Wed, Oct 23, 8:52 AM
Unknown Object (File)
Oct 19 2024, 4:35 AM
Unknown Object (File)
Oct 18 2024, 10:24 PM
Unknown Object (File)
Oct 18 2024, 1:58 PM
Unknown Object (File)
Oct 18 2024, 10:27 AM
Subscribers

Details

Summary

Add a field that marks messages as being subjects to automatic retries.

https://linear.app/comm/issue/ENG-8729/automatic-retries-for-non-composable-dms

Test Plan

Open an existing app and check if the migration doesn't throw. Start a fresh app and check if the DB creation succeeds. Further testing is performed later in the stack.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
2521–2522 ↗(On Diff #42279)

These changes were made by clang-format-all

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 15 2024, 3:43 AM
Harbormaster failed remote builds in B30318: Diff 42279!
tomek requested review of this revision.Jul 15 2024, 3:54 AM
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
689 ↗(On Diff #42279)

This column name comes across as "past tense", basically indicating whether this message has been automatically retried. But from the diff description, it seems like it's more about whether the message CAN be automatically retried. Should we consider something like "can_be_automatically_retried" or "supports_automatic_retry" or "supports_auto_retry"?

812 ↗(On Diff #42279)

Nit: typo (missing space)

kamil added inline comments.
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
689 ↗(On Diff #42279)

agree with that

This revision is now accepted and ready to land.Jul 16 2024, 3:08 AM

Rename column

native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
689 ↗(On Diff #42279)

Makes sense - renamed to supports_auto_retry

Heads-up that I landed a different migration 48 in D12759, so you'll have to rebase this one. Sorry about that!