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
[$250] Task – App crashes when click on assignee in existing task #49514
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
@flodnv Maybe it is caused by #48325. I tried to revert to the latest commit in production and install node-module again and the bug didn't happen. The bug started happening when I reverted to the first different between production and staging and re-install node-module again.
The PR that introduced the bug has been identified. Link to the PR: I wasn't able to identify an offending PR
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. Yes - if one doesn't already exist
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.
Closing - I believe that I sent the payment via Upwork, but something looks off in Upwork. Please reply if you didn't get the payment and I'll fund the new job I sent your way. I'll return later to complete the regression test.
@alexpensify I didn't receive any payment, just the notification that the contract has ended and weirdly another about accepting an offer (I've accepted this).
@jjcoffee and @nkdengineer, our team figured out the Upwork bug, and I tried to complete the payment via another payment path in Upwork. Their support team is working on a permanent fix for the bug. I'd really appreciate it if you could confirm today's payment sent successfully under the new contract. Thanks!
Activity
melvin-bot commentedon Sep 20, 2024
Triggered auto assignment to @alexpensify (
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.melvin-bot commentedon Sep 20, 2024
Triggered auto assignment to @flodnv (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.github-actions commentedon Sep 20, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
huult commentedon Sep 20, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
App crashes when click on assignee in existing task
What is the root cause of that problem?
Use 'report' before initialization
App/src/pages/tasks/TaskAssigneeSelectorModal.tsx
Line 127 in 4c9a3fb
What changes do you think we should make in order to solve the problem?
Delay using the report until the report is complete.
// .src/pages/tasks/TaskAssigneeSelectorModal.tsx#L127 const report: OnyxEntry<Report> = useMemo(() => { if (!route.params?.reportID) { return; } + InteractionManager.runAfterInteractions(() => { + requestAnimationFrame(() => { if (report && !ReportUtils.isTaskReport(report)) { Navigation.isNavigationReady().then(() => { Navigation.dismissModal(report.reportID); }); } + }); + }); return reports?.[`${ONYXKEYS.COLLECTION.REPORT}${route.params?.reportID}`]; }, [reports, route]);Details
POCScreen.Recording.2024-09-20.at.16.04.35.mp4
nkdengineer commentedon Sep 20, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
App crashes
What is the root cause of that problem?
The report is used before it's initialize
App/src/pages/tasks/TaskAssigneeSelectorModal.tsx
Lines 123 to 129 in 4c9a3fb
What changes do you think we should make in order to solve the problem?
Update this to get the report data from
reportsto check it's task report or notWhat alternative solutions did you explore? (Optional)
Or we can move the navigate logic to another
useEffectflodnv commentedon Sep 20, 2024
Why did this just start happening upon this deploy? What PR caused this?
nkdengineer commentedon Sep 20, 2024
@flodnv Maybe it is caused by #48325. I tried to revert to the latest commit in production and install node-module again and the bug didn't happen. The bug started happening when I reverted to the first different between production and staging and re-install node-module again.
30 remaining items
alexpensify commentedon Oct 2, 2024
Ugh, automation failed and the payment date should have been yesterday. I'll work on the payment process tomorrow.
jjcoffee commentedon Oct 3, 2024
Regression Test Proposal
Do we agree 👍 or 👎
luacmartins commentedon Oct 3, 2024
I think this will be caught during regular regression tests, since we have many tests on tasks.
alexpensify commentedon Oct 4, 2024
Payouts due: 10-01-2024
Upwork job is here.
alexpensify commentedon Oct 4, 2024
Closing - I believe that I sent the payment via Upwork, but something looks off in Upwork. Please reply if you didn't get the payment and I'll fund the new job I sent your way. I'll return later to complete the regression test.
jjcoffee commentedon Oct 7, 2024
@alexpensify I didn't receive any payment, just the notification that the contract has ended and weirdly another about accepting an offer (I've accepted this).
nkdengineer commentedon Oct 7, 2024
@alexpensify Same for me, the job just closed without payment. I accepted the new 2nd offer though, it can be paid out there.
alexpensify commentedon Oct 7, 2024
Thanks for these updates! There is an issue an Upwork that is being investigated to address the payment process. I'm going to hold until there is a fix. Convo: https://expensify.slack.com/archives/C01GTK53T8Q/p1728319262830679
alexpensify commentedon Oct 8, 2024
@jjcoffee and @nkdengineer, our team figured out the Upwork bug, and I tried to complete the payment via another payment path in Upwork. Their support team is working on a permanent fix for the bug. I'd really appreciate it if you could confirm today's payment sent successfully under the new contract. Thanks!
nkdengineer commentedon Oct 9, 2024
@alexpensify Yes it was sent for me 💯 Thanks!
jjcoffee commentedon Oct 9, 2024
Me too, thank you!
alexpensify commentedon Oct 9, 2024
Awesome, thanks for hanging in there with me. This bug is a wild one on the Upwork side.