fix wasteful backup search in inbox on Gmail API#355
Conversation
tomholub
left a comment
There was a problem hiding this comment.
Code looks good, will test functionality manually now
There was a problem hiding this comment.
This still does not address the issue. When I try it on my personal account, it shows:
"ℹ️[App Start][GlobalRouter] proceed for session nil"
"ℹ️[Keychain][KeyChainService] LocalStorage.secureKeychainPrefix generating new: wFjxOWGVu77zZW4o"
"ℹ️[Keychain][KeyChainService] generateAndSaveStorageEncryptionKey"
"ℹ️[Js][Core] JsContext took 0.532 ms to start"
"ℹ️[App Start][GlobalRouter] Sign in with gmailLogin(<FlowCrypt.SignInViewController: 0x108059c00>)"
"ℹ️[App Start][GlobalRouter] proceed for session Optional(FlowCrypt.SessionType.google(...)"
"ℹ️[App Start][GoogleUserService] Renew session for google user"
"ℹ️ [Setup] searching for backups in inbox"
"🏷[GmailService] will begin searching for backups"
"🏷[GmailService] searching done, found 24 backup messages"
"🏷[GmailService] processing backup \'Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Fwd: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Fwd: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Problems with my Flowcrypt account\' with 1 attachments"
"🏷[GmailService] processing backup \'Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'FlowCrypt Feedback from ...@gmail.com\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Your FlowCrypt Backup\' with 2 attachments"
"🏷[GmailService] processing backup \'Fwd: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Please Provide Assistance\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Your FlowCrypt Backup\' with 2 attachments"
"🏷[GmailService] processing backup \'FlowCrypt Feedback from ...@gmail.com\' with 1 attachments"
"🏷[GmailService] processing backup \'Fwd: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Passphrase lost\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: FlowCrypt Feedback from ...@gmail.com\' with 3 attachments"
"🏷[GmailService] processing backup \'Pass phrase\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Problems with my Flowcrypt account\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Passphrase lost\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Your FlowCrypt Backup\' with 2 attachments"
"🏷[GmailService] processing backup \'Fwd: Your FlowCrypt Backup\' with 1 attachments"
"🏷[GmailService] processing backup \'FlowCrypt Feedback from ...@gmail.com\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Your FlowCrypt Backup\' with 2 attachments"
"🏷[GmailService] processing backup \'FlowCrypt Feedback from ...@gmail.com\' with 1 attachments"
"🏷[GmailService] processing backup \'Re: Passphrase lost\' with 1 attachments"
"🏷[GmailService] downloading 30 attachments with possible backups in them"
"🏷[GmailService] downloaded 30 attachments that contain 2171kB of data"
"❗️[Js][Core] ------ js err -------\nCore parseKeys:\nTypeError: coreHost.log is not a function. (In \'coreHost.log(String(x))\', \'coreHost.log\' is undefined)\n_log\n\n\nasyncFunctionResume@[native code]\n[native code]\npromiseReactionJobWithoutPromise@[native code]\n------- end js err -----"
|
Problems:
Also it should NOT be searching for items that are in trash. I think |
|
Btw you don't have to construct the search query manually. If you can supply a textual query, then use endpoint called |
|
If you do prefer to construct this query in Swift anyway for some reason, then here is an exact test case to copy, the test case you wrote is too vague: |
|
@tomholub can you please check with query generated with |
tomholub
left a comment
There was a problem hiding this comment.
This looks like it will work - will test
...rypt/Functionality/Mail Provider/SearchMessage Provider/GmailSearchExpressionGenerator.swift
Outdated
Show resolved
Hide resolved
tomholub
left a comment
There was a problem hiding this comment.
Code looks good. Will test
|
This worked for the search, but after entering pass phrase, it sent me back to splash screen. Log: |
|
I have added some logs. Can you please try to reproduce this issue once again? |
|
"ℹ️[Keychain][KeyChainService] LocalStorage.secureKeychainPrefix generating new: 6D1zqclvuM3iBVUz" |
|
thanks for reporting, will investigate this |
|
@Kharchevskyi I'll take a look. Please edit your comment per the above bot. Eg you can say |
|
That's not what I meant. The comment was asking you to redact email address from your earlier comment here #355 (comment) |
|
This is a public repo, we don't want email addresses mentioned publicly here. |
|
my own account: |
|
compatibility account - worked normally: |
probably issue is here |
|
Sent to your email |
|
Copying from email:
|
tomholub
left a comment
There was a problem hiding this comment.
Code looks ok - I'm not at my mac until wednesday to test it. I'll merge it and create another issue in case it misbehaves.
|
However tests are failing - can you take a look? |
|
This fixed the issue, thank you |
|
@Kharchevskyi the CI still cannot build it, I've updated from master |
|
also #381 was observed on this PR |
|
Last commits should also fix #381 |
This PR fix wasteful backup search in inbox on Gmail API
close #309
Tests:
GmailServicetestsGoogleUserServiceTypeandGmailBackupSearchQueryProviderTypeTo be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):