Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GROOMING-REVIEW] Contact sync v2 #2205

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

[GROOMING-REVIEW] Contact sync v2 #2205

wants to merge 19 commits into from

Conversation

nqhhdev
Copy link
Member

@nqhhdev nqhhdev commented Jan 7, 2025

No description provided.

Copy link

github-actions bot commented Jan 7, 2025

This PR has been deployed to https://linagora.github.io/twake-on-matrix/2205

this.status,
});

String? calLookupAddress({required HashDetailsResponse hashDetails}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please separate function calculateHash(HashDetailsResponse hashDetails)

@hoangdat
Copy link
Member

hoangdat commented Jan 8, 2025

  • please add alt_lookup_pepper and related logic

Map<String, List<String>> hashToContactIdMappings,
Map<String, Contact> contactIdToHashMap,
) {
for (final contact in chunkContacts) {
Copy link
Member

@hoangdat hoangdat Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need 2 duplicated for loop? L40?

);
}

Contact? processContacts(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specific in what kind of process?

Suggested change
Contact? processContacts(
Contact? calculateHashForContact(

Comment on lines +110 to +111
Map<String, List<String>> phoneToHashMap,
Map<String, List<String>> emailToHashMap,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in use?

final totalChunks = chunks.length;

yield await _handleLookupMappings(
progress: lookupChunkSize ~/ totalChunks,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why chunk size / totalChunks? it is constant number, it is not progress.


class GetPhonebookContactsSuccess extends Success {
final int progress;
final int chunkSize;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, we dont need it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants