-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-12-19] [$250] WS chat- "Pay with expensify" button blinks to Submit and back after clicking Submit #53226
Comments
Triggered auto assignment to @zanyrenney ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clicking submit button makes flicking on a workspace with delay submissions. What is the root cause of that problem?
The button UI changes by reading Every time the client app gets response from BE it checks if any update is needed: App/src/libs/actions/OnyxUpdates.ts Lines 176 to 179 in 10a7be8
and if updated is needed then this is activated: App/src/libs/Middleware/SaveResponseInOnyx.ts Lines 38 to 39 in 10a7be8
If any update isn't needed to be checked then just onyx is updated w/o any BE update. App/src/libs/Middleware/SaveResponseInOnyx.ts Lines 34 to 36 in 10a7be8
What changes do you think we should make in order to solve the problem?We can let the UI better by passing updates from BE update for There is already a method to check if any update from BE is needed: App/src/libs/Middleware/SaveResponseInOnyx.ts Lines 6 to 8 in 10a7be8
In the array we can add const requestsToIgnoreLastUpdateID: string[] = [
...,
WRITE_COMMANDS.SUBMIT_REPORT,
] Then whenever clicking submit button in a workspace with delay submission, the button isn't flicking because it doesn't update from BE. What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~021862514913604965431 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
📣 @jacobkim9881 You have been assigned to this job! |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rojiphil please review and let me know if we can take @jacobkim9881 proposal. thanks! |
@zanyrenney. The proposal works. Thanks @jacobkim9881 for the proposal. @jacobkim9881 proposal to add |
Triggered auto assignment to @rafecolton, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jacobkim9881 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This comment was marked as outdated.
This comment was marked as outdated.
That's interesting. Looking into this again. |
So, looking at the comment here
@arosiclair The context here is that we are fetching Onyx updates from server in the middle of Now, I am also wondering why |
So our reliable updates system tries to fetch and apply all onyx updates in the correct order. We do this by adding sequential updateIDs to every onyx update. The client tracks the last update it applied ( This is all expected behavior in most cases so it isn't the root problem of the bug we're seeing here. Instead, there's probably an issue with the Onyx updates we're merging (either on the client or from the API) or possibly the issue could be fixed by changing our rendering logic in React. |
Thanks @arosiclair for the detailed explanation. |
I'm not sure I fully understand. I think we should find out what data in these onyx updates cause the button to blink. Then we can think about how to fix that. |
The following excerpt from the root cause in proposal answers what data is causing this.
And the response from API request is what changes back to |
Alright that sounds accurate. So I would say we should find out why we're queuing that additional update for the Alternatively, we could use |
If this requires a back-end investigation, I will need to hand it off. @arosiclair do you have bandwidth to take this over or should we ask Zany to find a volunteer? |
No bandwidth atm unfortunately. I'll grab the issue if I get some cycles and it's still not fixed though. |
@zanyrenney I think it's best if I unassign at this point, can you please find a volunteer to take this over? |
@arosiclair Could I ask a question please? When is the most neccessary time to call |
@arosiclair Thanks for sharing time for this issue though. |
Basically any time Onyx updates get delivered in the wrong order, we would call |
Looking for a BE engineer to pick this up -added to the right project / release. |
For this issue, the sync will be missed while clicking Example) |
I wanted to say the chances to lose Onyx data is rare. But blinking issue occurs every time any user clicks submit button. |
FYI @garrettmknight i chatted to @mountiny about this one and whether we could have an external contributor pick it up. He suggested this should be a Thank you! |
Waiting for an internal engineer to pick this up. |
This issue has not been updated in over 15 days. @rojiphil, @jacobkim9881, @zanyrenney eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.67-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5263862
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
"Pay with expensify" button appears on the expense preview after clicking on "Submit" button. The button does not blink.
Actual Result:
"Pay with expensify" button blinks to Submit and back after clicking Submit button on the expense preview.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6678319_1732730867265.submit_button_blinks.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: