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
[Due for payment 2025-02-18] [$250] Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup #55732
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: v9.0.89-2 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):htad26+ri@gmail.com Issue reported by: Applause Internal Team Device used: iPhone 13/iOS 18.2.1, Tecno Spark/Android 11 App Component: Other
Action Performed:
Prerequisite
Have an account with one workspace connected to Sage Intacct
Log into the account on the iOS/Android app
Create a new workspace other than the one that is already connected to Sage Intacct
Enable Accounting
Accounting > Sage Intacct > Connect > Upgrade > Next
When you reach the credentials page, exit the setup with back button without entering credentials
Tap on "Connect" button next to Sage Intacct
Expected Result:
App proceeds to Sage Intacct connection setup
Actual Result:
"Connect" button becomes unresponsive and user is unable to procced to Sage Intacct connection setup
changed the title [-]Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup[/-][+][$250] Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup[/+]on Jan 27, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@shubham1206agra / @eh2077@trjExpensify@shubham1206agra / @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
@trjExpensify Just stating for the record. The answer is no. Since this PR has made some race conditions more visible, which will be fixed in #56594. And as for the #56505, I was able to repro this on main if we do throttle the system.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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: NA. It wasn't caused by a recent PR. The issue exits before TS migration, so it's not easy to find the PR to blame.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Have an account with one workspace connected to Sage Intacct
Test:
Open App.
Open a workspace other than the one that is already connected to Sage Intacct (use control workspace)
Enable Accounting
Click Accounting > Sage Intacct > Connect
Verify that the existing connection popover appears.
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 Jan 24, 2025
Triggered auto assignment to @trjExpensify (
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.shubham1206agra commentedon Jan 24, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup
What is the root cause of that problem?
In step 6, when we click on connect, we try to render the popover menu component defined here
App/src/components/ConnectToSageIntacctFlow/index.tsx
Line 76 in 264728f
as
hasPoliciesConnectedToSageIntacctis true due to existing connection present.But in https://github.com/Expensify/App/blob/264728f1b086117b9cabfd4728ff30b8afdfc520/src/components/PopoverWithMeasuredContent.tsx, we have 2 setState conditions having race condition
App/src/components/PopoverWithMeasuredContent.tsx
Line 82 in 264728f
and
App/src/components/PopoverWithMeasuredContent.tsx
Line 94 in 264728f
which caused
App/src/components/PopoverWithMeasuredContent.tsx
Line 147 in 264728f
Which causes the bug
What changes do you think we should make in order to solve the problem?
Let's solve the race condition entirely
Transform this block of code
App/src/components/PopoverWithMeasuredContent.tsx
Lines 77 to 86 in 264728f
to
Here
prevIsVisiblecomes fromconst prevIsVisible = usePrevious(isVisible);. And we get rid ofisPopoverVisiblestate since it is no longer needed.Note
Optional: We can change
App/src/components/PopoverWithMeasuredContent.tsx
Line 150 in 264728f
popoverDimensions={{height: popoverHeight, width: popoverWidth}}Result
Screen.Recording.2025-01-24.at.10.36.52.PM.mov
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA since change is related to UI component
What alternative solutions did you explore? (Optional)
[-]Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup[/-][+][$250] Sage Intacct - Connect button becomes unresponsive in Sage Intacct after exiting setup[/+]melvin-bot commentedon Jan 27, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021883892443394659534
melvin-bot commentedon Jan 27, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eh2077 (
External)19 remaining items
melvin-bot commentedon Feb 11, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-6 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 2025-02-18. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 11, 2025
@shubham1206agra / @eh2077 @trjExpensify @shubham1206agra / @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
shubham1206agra commentedon Feb 11, 2025
@trjExpensify Just stating for the record. The answer is no. Since this PR has made some race conditions more visible, which will be fixed in #56594. And as for the #56505, I was able to repro this on main if we do throttle the system.
trjExpensify commentedon Feb 18, 2025
👋 @eh2077 checklist time here, please. Thanks!
eh2077 commentedon Feb 19, 2025
Yeah, I will update by tomorrow. Thank you
trjExpensify commentedon Feb 19, 2025
Sounds good!
eh2077 commentedon Feb 20, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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: NA. It wasn't caused by a recent PR. The issue exits before TS migration, so it's not easy to find the PR to blame.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
trjExpensify commentedon Feb 20, 2025
Thanks! I've suggested a regression test for reuse connection.
Payment summary as follows:
@shubham1206agra, please accept the offer.
shubham1206agra commentedon Feb 20, 2025
@trjExpensify Offer accepted
trjExpensify commentedon Feb 20, 2025
Paid, closing!
JmillsExpensify commentedon Feb 20, 2025
$250 approved for @eh2077