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-10-06][$250] Android - expense-On opening 1st expense with 1:1 user, receipt placeholder flickers #49470
@isabelastisser 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
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
The PR that introduced the bug has been identified. Link to the PR: The issue was caused by the use of withOnyx, which is now deprecated. We are in the process of migrating to the useOnyx hook, so no specific PR is responsible for this bug.
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: N/A
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
Determine if we should create a regression test for this bug. While I believe this is unnecessary since the migration to the useOnyx hook should prevent this issue from reoccurring, I've included a proposal in case we decide to proceed with a regression test.
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.
Regression Test Proposal
Create a new account
Open a DM with a user
Create an expense
Open the expense
Verify that the receipt placeholder does not flicker
Activity
melvin-bot commentedon Sep 19, 2024
Triggered auto assignment to @isabelastisser (
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.IuliiaHerets commentedon Sep 19, 2024
@isabelastisser 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
[-]Android - expense-On opening 1st expense with 1:1 user, receipt placeholder flickers[/-][+][$250] Android - expense-On opening 1st expense with 1:1 user, receipt placeholder flickers[/+]melvin-bot commentedon Sep 20, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021837170951789576068
melvin-bot commentedon Sep 20, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rayane-djouah (
External)rayane-d commentedon Sep 23, 2024
Waiting on proposals
nkdengineer commentedon Sep 23, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Only in gmail Android app,on opening 1st expense with 1:1 user, receipt placeholder flickers.
What is the root cause of that problem?
Here is the log when adding a
useEffectinMoneyRequestViewThis component is mounted and unmounted several times.
This happens because the deprecated
withOnyxHOC inReportActionsViewthat cause the weird lifecycle of the componentApp/src/pages/home/report/ReportActionsView.tsx
Line 552 in bbc0919
What changes do you think we should make in order to solve the problem?
Remove
withOnyxinReportActionsViewand useuseOnyxhook instead.OPTIONAL: We can also do this for
ReportActionsItemApp/src/pages/home/report/ReportActionsView.tsx
Line 552 in bbc0919
The test branch here.
What alternative solutions did you explore? (Optional)
3 remaining items
melvin-bot commentedon Sep 23, 2024
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
melvin-bot commentedon Sep 23, 2024
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖
[-][$250] Android - expense-On opening 1st expense with 1:1 user, receipt placeholder flickers[/-][+][Hold for payment 2024-10-06][$250] Android - expense-On opening 1st expense with 1:1 user, receipt placeholder flickers[/+]rayane-d commentedon Oct 6, 2024
BugZero Checklist
withOnyx, which is now deprecated. We are in the process of migrating to theuseOnyxhook, so no specific PR is responsible for this bug.useOnyxhook should prevent this issue from reoccurring, I've included a proposal in case we decide to proceed with a regression test.Regression Test Proposal
Do we agree 👍 or 👎
isabelastisser commentedon Oct 7, 2024
@thienlnam, can you please review the test proposal? Thanks!
isabelastisser commentedon Oct 7, 2024
@rayane-djouah @nkdengineer I processed the payments in Upwork. Thanks!
isabelastisser commentedon Oct 8, 2024
All set!