Page MenuHomePhabricator

[lib][web][native] Make it possible to remove a subset of drafts
ClosedPublic

Authored by inka on Jan 15 2024, 7:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 6:10 PM
Unknown Object (File)
Mon, Dec 23, 6:09 PM
Unknown Object (File)
Mon, Dec 23, 6:09 PM
Unknown Object (File)
Fri, Nov 29, 2:28 PM
Unknown Object (File)
Nov 26 2024, 2:21 AM
Unknown Object (File)
Nov 6 2024, 12:53 PM
Unknown Object (File)
Oct 14 2024, 6:10 PM
Unknown Object (File)
Oct 14 2024, 6:10 PM
Subscribers

Details

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka added 1 blocking reviewer(s): kamil.
Harbormaster returned this revision to the author for changes because remote builds failed.Jan 15 2024, 7:46 AM
Harbormaster failed remote builds in B25773: Diff 35635!
inka requested review of this revision.Jan 15 2024, 9:20 AM
kamil added inline comments.
native/cpp/CommonCpp/NativeModules/DraftStoreOperations.h
69 ↗(On Diff #35637)

the convention is mixed across different files but let's keep it consistent at least in one file

web/database/queries/draft-queries.test.js
108–112 ↗(On Diff #35637)

I would also check if the remaining draft has key thread_b

This revision is now accepted and ready to land.Jan 17 2024, 1:38 AM
lib/types/draft-types.js
28 ↗(On Diff #36267)

It might be more performant and safer to allow deleting all the entries associated with a given keyserver, e.g.
`DELETE FROM drafts WHERE id LIKE 'threadID|%'. It's probably not worth fixing it now, but it might be a good idea to introduce this improvement later.

lib/types/draft-types.js
28 ↗(On Diff #36267)

I created a task to discuss this, because that could be done in all stores actually ENG-6603