You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-14] [$250] Accounting - Last synced time doesn't reflect the correct time #45780
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.0.9-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Navigate to staging.new.expensify.com
Create a workspace
Establish a connection with Xero
Wait for a few minutes and refresh the page to update the latest synced time
Click on three dot and click on sync now
Expected Result:
The last synced time updates
Actual Result:
The last synced time shows stale data
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@VictoriaExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Please re-state the problem that we are trying to solve in this issue.
Last synced time doesn't reflect the correct time
What is the root cause of that problem?
On sync connection, We don't add optimistic data to update the lastSync when calling SyncPolicyToXero or other connections
And the new lastSync onyx data received on the GetMissingOnyxMessages API response after SyncPolicyToXero done, so it will be some delay updating the last synced time. This delay can be more noticeable if the internet speed is slow
What changes do you think we should make in order to solve the problem?
Update the lastSyncsuccessfulDate value on syncConnectionoptimisticDatahere
changed the title [-]Accounting - Last synced time doesn't reflect the correct time[/-][+][$250] Accounting - Last synced time doesn't reflect the correct time[/+]on Jul 22, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@eh2077] The PR that introduced the bug has been identified. Link to the PR:
[@eh2077] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@eh2077] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@eh2077] Determine if we should create a regression test for this bug.
[@eh2077] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@VictoriaExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@eh2077] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
[@eh2077] Determine if we should create a regression test for this bug. Yes
Regression test
Create a workspace
Establish a connection with Xero
Wait for a few minutes and refresh the page to update the latest synced time
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 19, 2024
Triggered auto assignment to @VictoriaExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Jul 19, 2024
@VictoriaExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Jul 19, 2024
We think that this bug might be related to #wave-collect - Release 2
nyomanjyotisa commentedon Jul 20, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Last synced time doesn't reflect the correct time
What is the root cause of that problem?
On sync connection, We don't add optimistic data to update the
lastSyncwhen callingSyncPolicyToXeroor other connectionsAnd the new
lastSynconyx data received on theGetMissingOnyxMessagesAPI response afterSyncPolicyToXerodone, so it will be some delay updating the last synced time. This delay can be more noticeable if the internet speed is slowWhat changes do you think we should make in order to solve the problem?
Update the
lastSyncsuccessfulDatevalue onsyncConnectionoptimisticDatahereRESULT
-2-New-Expensify.1.mp4
What alternative solutions did you explore? (Optional)
VictoriaExpensify commentedon Jul 22, 2024
I wasn't able to view your video past 2 seconds @lanitochka17 , but your Action Performed was clear and I've been able to reproduce the issue
Agree this is Wave_Collect
[-]Accounting - Last synced time doesn't reflect the correct time[/-][+][$250] Accounting - Last synced time doesn't reflect the correct time[/+]melvin-bot commentedon Jul 22, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0117d6782d3d2e2e77
melvin-bot commentedon Jul 22, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (
External)25 remaining items
melvin-bot commentedon Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-08-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 7, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
VictoriaExpensify commentedon Aug 15, 2024
Payment Summary:
Contributor+: @eh2077 paid $250 via Upwork
@daledah - please accept the Upwork offer so I can process your payment.
daledah commentedon Aug 15, 2024
@VictoriaExpensify Accepted thank u
VictoriaExpensify commentedon Aug 18, 2024
Payment summary:
Contributor: @daledah paid $250 via Upwork
VictoriaExpensify commentedon Aug 18, 2024
@eh2077 can you please finish the checklist so I can close the issue out? Thank you!
eh2077 commentedon Aug 19, 2024
Checklist
Regression test
Do you agree 👍 or 👎
cc @VictoriaExpensify
VictoriaExpensify commentedon Aug 19, 2024
Request to add this to Test Rail - https://github.com/Expensify/Expensify/issues/421594