Page MenuHomePhabricator

[sqlite] add methods to operate on synced metadata table
ClosedPublic

Authored by will on Mar 27 2024, 1:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 3:38 AM
Unknown Object (File)
Fri, Apr 12, 3:37 AM
Unknown Object (File)
Thu, Apr 11, 2:05 AM
Unknown Object (File)
Tue, Apr 9, 2:14 PM
Unknown Object (File)
Mon, Apr 8, 7:04 PM
Unknown Object (File)
Sun, Apr 7, 3:28 AM
Unknown Object (File)
Fri, Apr 5, 1:24 PM
Unknown Object (File)
Wed, Apr 3, 1:32 AM
Subscribers

Details

Summary

This implements the C++ SQLite operations for the synced metadata store

Depends on D11416

Test Plan

synced metadata queries test

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

will requested review of this revision.Mar 27 2024, 2:11 PM
kamil added inline comments.
native/ios/Comm.xcodeproj/project.pbxproj
146 ↗(On Diff #38396)

how about adding to makefile on Android?

web/shared-worker/queries/synced-metadata-queries.test.js
11–12 ↗(On Diff #38396)

I think you can add more specific types or you don;t have to use ? operator below when calling methods

63–65 ↗(On Diff #38396)

looks like the test name is not correct with what the test is doing

web/shared-worker/types/sqlite-query-executor.js
129 ↗(On Diff #38396)

match param names here with native code for clarity

This revision is now accepted and ready to land.Mar 28 2024, 4:44 AM
native/ios/Comm.xcodeproj/project.pbxproj
146 ↗(On Diff #38396)

I think I understand what's going on. A similar issue was mentioned in https://phab.comm.dev/D11300?vs=37980&id=38151#toc, where I didn't include IntegrityThreadHash.h in project.pbxproj.

I just removed SyncedMetadataEntry.h from project.pbxproj and everything still seems to compile. This explains why CommunityInfo.h wasn't included in project.pbxproj in its diff stack.

I think I can remove all references to SyncedMetadataEntry.h in project.pbxproj and create a follow-up task to remove IntegrityThreadHash.h as well.

I believe this means we don't need to include them in the android Makefile

will marked 3 inline comments as done.Mar 28 2024, 9:41 AM
native/ios/Comm.xcodeproj/project.pbxproj
146 ↗(On Diff #38396)