Uh oh!
There was an error while loading. Please reload this page.
save drafts during compose or reply - #690
Conversation
fa1ae49 to
653aaa3Compare
tomholub
left a comment
There was a problem hiding this comment.
Didn't run it yet - comments below.
| private var state: State = .main | ||
| private weak var timer: Timer? |
There was a problem hiding this comment.
Let's call it saveDraftTimer
| } | ||
| } | ||
| private func resolveQueryForDraftAction(raw: String, threadId: String?, draft: GTLRGmail_Draft?) -> GTLRGmailQuery { |
There was a problem hiding this comment.
This should be called createQueryForDraftAction ?
tomholub
commented
Oct 17, 2021
This should be covered by ui tests, I'll file an issue. |
653aaa3 to
0935ba9CompareNeed to make sure that:
I'll mark the PR as a draft until then. Thanks. |
ekievsky
commented
Oct 18, 2021
@tomholub I thought that it will be separate task. I will continue working on this feature then, thank you |
tomholub
commented
Oct 18, 2021
We're getting close to start releasing early versions to customer, so we can no longer merge PRs that cause degradations (eg creating drafts that don't also get cleared) - degradation need to be addressed in the same PR going forward. That's also the reason I couldn't merge half-finished #657 On the other hand, when new functionality is unfinished in a way that doesn't degrade the app, that may be ok to merge. |
ekievsky
commented
Oct 18, 2021
I understand. I will focus on this both tasks to finish them as soon as possible. |
b16618e to
86b3548Compareekievsky
commented
Oct 22, 2021
Still working on current issue.
|
tomholub
commented
Oct 22, 2021
Understood. It's not a small issue. Actually, I think this could be in a separate PR after all:
As long as drafts are not getting created and then left undeleted after the message is sent. (just thought that the user could theoretically finish their draft on the desktop, so it's not useless - please test that scenario) |
7919170 to
6870a9bCompareekievsky
commented
Oct 25, 2021
@tomholub I have done following:
not finished ( can be scoped as another task )
there are some things that I should finish, but if we can, I would like to make it right after this PR is merged as a separate task PS: now I am getting weird crash after "encryptAndSend", I am trying to figure out if my changes caused that or it is known master branch issue. it is only thing that is blocking me of moving this PR from draft status to open. |
tomholub
commented
Oct 25, 2021
Sounds good, I'll start reviewing. Thanks! |
tomholub
commented
Oct 25, 2021
Now after #773 the sending has changed a lot, you should pull the changes from master and see if by any chance the crash is resolved. If not, then you'll have to investigate further. |
cea9282 to
a1726c4Compareekievsky
commented
Oct 26, 2021
@tomholub crash is fixed, please review. |
tomholub
commented
Oct 26, 2021
I'll review functionality, but have a look at the tests - I can't merge until the tests are fixed. |
ekievsky
commented
Oct 26, 2021
@tomholub there is the issue with target architecture, will be resolving this issue |
tomholub
left a comment
There was a problem hiding this comment.
Code looks good. Haven't tested
| } | ||
| } | ||
| func getFraft(with identifier: String) async throws -> GTLRGmail_Draft { |
tomholub
commented
Oct 27, 2021
ekievsky
commented
Oct 27, 2021
@tomholub didn't work for me. @sosnovsky do you have this problem, can you check please? |
sosnovsky
commented
Oct 27, 2021
@ekievsky tests run well for me after changing |
ekievsky
commented
Oct 27, 2021
oh. @sosnovsky also, I am wondering, about Xcode version. It looks like you are always updating to latest one, I think we should commit some specific one and work with it. and migrate to new one together, when we need it. what do you think about it? |
sosnovsky
commented
Oct 28, 2021
@ekievsky I think Xcode version doesn't affect running tests, as it doesn't change our project code, this configuration can be changed on any Xcode version. |
tomholub
commented
Oct 28, 2021
I also support generally updating to latest xcode except if we run into a particular issue that can be traced to some particular new version of xcode. Then we'll let everybody know that some other version is recommended for the time being. But normally, let's all update - it doesn't seem to break stuff. |
ekievsky
commented
Oct 28, 2021
@sosnovsky I am not saying that tests failure are connected to Xcode version. its 2 separate points in my message, but thank you for that tips. I just had not very pleasant experience when developers in big team having different Xcode version, that's why my proposal was to commit some specific version in general. |
sosnovsky
commented
Oct 28, 2021
@ekievsky yeah, I got some issues with different Xcode versions too. But it happened in projects which used storyboards for UI, as some Xcodes make unnecessary code updates even when you just open storyboard file, without changing anything. This lead to some merge conflicts. |
tomholub
commented
Oct 28, 2021
I also heard of problems between xcode versions before, and good to know that they may have been related to storyboards. Hopefully that could mean we won't run into any for a while 👍 |
tomholub
commented
Oct 28, 2021
@ekievsky is the PR ready to potentially merge from your point of view? If yes please mark it as ready. |
tomholub
left a comment
There was a problem hiding this comment.
As implemented, it makes it impossible to type - every other second the phone gets stuck and I can't continue typing for a few hundred ms.
What is it getting stuck on? Seems like some work being done on main thread that should not be done there.
ekievsky
commented
Oct 28, 2021
hmm, I am not getting this kind of problem @tomholub |
tomholub
commented
Oct 28, 2021
Yes, I'm just typing the message and the keyboard keeps getting frozen for a bit here and there after every few key presses, making it nearly unusable. It's on a 12mini, iOS 15.0.2, |
tomholub
commented
Oct 28, 2021
@ivan-ushakov could you see if you can reproduce my issue on this PR? |
ekievsky
commented
Oct 28, 2021
@tomholub issue is fixed, it was issue of thread as you mentioned above. |
275dac4 to
0979af9Compare…ler with message. deleting draft after sending message
ekievsky
commented
Oct 28, 2021
@tomholub I am fixing conflicts, but it should not block you to try latest commit |
0979af9 to
47c5de6Compare
tomholub
left a comment
There was a problem hiding this comment.
code change looks good. will test


This PR is adding feature that saves draft encrypted mail during compose new mail or reply
close#514
Tests(delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):