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-06-05] [$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished #60402
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.1.29-3 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only If this was caught during regression testing, add the test name, ID and link from TestRail:#60158 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Device used: iPhone 11 Pro/ iOS 17.6.1 App Component: Other
Action Performed:
Open app
Create a new account and choose manage my expense flow
Select manage team flow
Click Reports
Click Take a tour
Finish the tour on web then click Return to app
Expected Result:
Redirect to app and the Take a 2-miunute tour task should be completed
Actual Result:
Redirect to app and the Take a 2-miunute tour task is not completed
However, we can't modify it since we don't own (create) create the task. After completing the tour, we are redirected back to concierge. If the route has navattic params with a value of completed, it will mark the task as complete.
However, if access the tour page from mobile and we use the Return to Expensify, it won't include the navattic params, but if we access it from the desktop, the params exist.
What changes do you think we should make in order to solve the problem?
So, we have the code to complete the task in 2 places, when pressing the button (which never works) and when redirected back to the concierge with navattic params.
If we want to complete the task as soon as the user presses the button, then we can remove the canModifyTask condition, or we can follow the condition on the concierge page. If we only want to complete the task after being redirected to concierge page with navattic param, then the internal team needs to fix it. We can also removes the unused complete task when pressing the button.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Please re-state the problem that we are trying to solve in this issue.
Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished
What is the root cause of that problem?
The 2-minute tour task should be completed as soon as pressing the 2-minute tour menu but the task is not getting completed on pressing take-2-minute tour because canModifyTheTask will be false
here
Originally the task used to complete on pressing the take 2 minute tour but there was a problem where completing the task with an archived onboarding policy returned an error from BE so we fixed it here by checking if the user canModifyTheTask && canActionTheTask before completing the task and it used to work well. But another PR changed the logic of modifying tasks to only allow editing tasks (like description title etc) to the creator of the task to disallow non-creator assignees from editing the task title description etc... So canModifyTask was updated to return false for non-creators of the task. So the PR removed canModifyTask conditions from determining if a user can complete a task so that only canActionTask is used to determine the condition if a user is allowed to complete a task. But they forgot to apply this change (of removing canModifyTask) for some cases including our 2 minute tour case.
What changes do you think we should make in order to solve the problem?
We should remove canModifyTask conditions in determining if a user can complete(set as incomplete) a task. We should remove canModifyTask condition for 2-minute tour hereherehere
which will be consistent with what we use here ( The current behavior is we don't see the mark as incomplete button in ReportDetailsPage for the non-creator of the task but the user can still uncheck the complete task check box which is unexpected behavior)
As a side note: BTW regarding the mark as incomplete button in header view we are now allowing TaskHeaderActionButton only for isOpenTaskReport
but the mark as in complete button can only show for complete task but completed task will not have status of open so we should either remove the mark as incomplete button logic in TaskHeaderActionButton because it is now dead code or if we want to show the button we should display the TaskHeaderActionButton if the task report is not a canceled one isTaskReport(report) && !isCanceledTaskReport(report, parentReportAction) whether or not the status is open. And I think this what we want as it was the expected behavior originally here
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N / A
What alternative solutions did you explore? (Optional)
changed the title [-]Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/-][+][$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/+]on Apr 18, 2025
changed the title [-][$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/-][+][Due for payment 2025-06-05] [$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/+]on May 29, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.53-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@parasharrajat@bfitzexpensify@parasharrajat 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]
[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: Not needed
[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
Test:
Create a new account and choose manage my expense flow
Select manage team flow
Click Reports
Click Take a test drive
Redirect to app and the Take a test-Drive task should be completed
As User A create a task and assign User B
As user B complete the task
Click on the task report header to open report details page
Verify Mark as incomplete button exists as User B on report details page.
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 Apr 17, 2025
Triggered auto assignment to @stephanieelliott (
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.bernhardoj commentedon Apr 17, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The tour task isn't marked as complete.
What is the root cause of that problem?
When we press the take tour button, we check if the user can modify and complete the task before completing it.
App/src/pages/Search/EmptySearchView.tsx
Lines 138 to 143 in 96c2585
However, we can't modify it since we don't own (create) create the task. After completing the tour, we are redirected back to concierge. If the route has navattic params with a value of completed, it will mark the task as complete.
App/src/pages/ConciergePage.tsx
Lines 46 to 54 in 96c2585
However, if access the tour page from mobile and we use the Return to Expensify, it won't include the
navatticparams, but if we access it from the desktop, the params exist.What changes do you think we should make in order to solve the problem?
So, we have the code to complete the task in 2 places, when pressing the button (which never works) and when redirected back to the concierge with
navatticparams.If we want to complete the task as soon as the user presses the button, then we can remove the
canModifyTaskcondition, or we can follow the condition on the concierge page. If we only want to complete the task after being redirected to concierge page withnavatticparam, then the internal team needs to fix it. We can also removes the unused complete task when pressing the button.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
FitseTLT commentedon Apr 17, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished
What is the root cause of that problem?
The 2-minute tour task should be completed as soon as pressing the 2-minute tour menu but the task is not getting completed on pressing take-2-minute tour because canModifyTheTask will be false
here
App/src/pages/Search/EmptySearchView.tsx
Lines 138 to 143 in 96c2585
as the current user is not the owner
App/src/libs/actions/Task.ts
Lines 1224 to 1225 in 717b77a
Originally the task used to complete on pressing the take 2 minute tour but there was a problem where completing the task with an archived onboarding policy returned an error from BE so we fixed it here by checking if the user
canModifyTheTask && canActionTheTaskbefore completing the task and it used to work well. But another PR changed the logic of modifying tasks to only allow editing tasks (like description title etc) to the creator of the task to disallow non-creator assignees from editing the task title description etc... So canModifyTask was updated to return false for non-creators of the task. So the PR removed canModifyTask conditions from determining if a user can complete a task so that only canActionTask is used to determine the condition if a user is allowed to complete a task. But they forgot to apply this change (of removing canModifyTask) for some cases including our 2 minute tour case.What changes do you think we should make in order to solve the problem?
We should remove
canModifyTaskconditions in determining if a user can complete(set as incomplete) a task. We should removecanModifyTaskcondition for 2-minute tour here here hereAdditionally remove the conditions here
App/src/pages/ReportDetailsPage.tsx
Line 534 in 717b77a
which will be consistent with what we use here ( The current behavior is we don't see the mark as incomplete button in ReportDetailsPage for the non-creator of the task but the user can still uncheck the complete task check box which is unexpected behavior)
As a side note: BTW regarding the mark as incomplete button in header view we are now allowing TaskHeaderActionButton only for isOpenTaskReport
App/src/pages/home/HeaderView.tsx
Line 403 in 717b77a
App/src/libs/ReportUtils.ts
Lines 1318 to 1322 in 717b77a
but the mark as in complete button can only show for complete task but completed task will not have status of open so we should either remove the mark as incomplete button logic in TaskHeaderActionButton because it is now dead code or if we want to show the button we should display the TaskHeaderActionButton if the task report is not a canceled one
isTaskReport(report) && !isCanceledTaskReport(report, parentReportAction)whether or not the status is open. And I think this what we want as it was the expected behavior originally hereWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N / A
What alternative solutions did you explore? (Optional)
[-]Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/-][+][$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/+]melvin-bot commentedon Apr 18, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021913033064562816058
melvin-bot commentedon Apr 18, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)parasharrajat commentedon Apr 18, 2025
Thanks for the proposals. I will look back into the mentioned issues and give my review.
parasharrajat commentedon Apr 20, 2025
@FitseTLT can you please reword your explanations? I'm having a hard time understanding it.
melvin-bot commentedon Apr 24, 2025
@parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
47 remaining items
[-][$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/-][+][Due for payment 2025-06-05] [$250] Onboarding Task - After take a tour in mweb, on app the take a 2-minute tour is not finished[/+]melvin-bot commentedon May 29, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 29, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.53-7 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-06-05. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 29, 2025
@parasharrajat @bfitzexpensify @parasharrajat 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]
parasharrajat commentedon May 29, 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: fix: Make all task titles/descriptions read-only to all but the author/assignee. #53749 (comment)
[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: Not needed
[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
Test:
Do we agree 👍 or 👎
bfitzexpensify commentedon Jun 6, 2025
Payment summary:
@FitseTLT due $250 - paid via Upwork ✅
@parasharrajat due $250 via ND manual request
parasharrajat commentedon Jun 27, 2025
Payment requested as per #60402 (comment)
JmillsExpensify commentedon Jul 9, 2025
$250 approved for @parasharrajat