Open anmurali opened 2 weeks ago
This is not a bug, it requires to refactor the old logic. Currently, we use this logic to determined the Task report with GBR
- Make the GBR on tasks at highest context
Initially, we must eliminate the outdated logic https://github.com/Expensify/App/blob/ab1e924bf0d4f928a9006f5bdd6b9da60346b1df/src/libs/ReportUtils.ts#L2247
followed by segregating the task report with GBR into a distinct variable
const assignedTaskReports: Array<OnyxEntry<Report>> = [];
if (requiresAttentionFromCurrentUserToAssignedTask(report, reportAction)) {
assignedTaskReports.push(report);
} else {
...... <old logic>
}
The requiresAttentionFromCurrentUserToAssignedTask
function will be designed as follows:
- Assign all the onboarding tasks created for a user to said user
When generating onboarding tasks, it's necessary to assign taskReport.managerID = currentUserID
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Job added to Upwork: https://www.upwork.com/jobs/~01c009eba2b6e9b0b1
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External
)
Auto-assigning issues to engineers is no longer supported. If you think this issue should receive engineering attention, please raise it in #whatsnext.
Taking over!
Unassigning due to low bandwidth, thanks @allroundexperts!
@cretadn22 Do you have any branch with these changes so I can test?
@allroundexperts Are you inquiring about the process of coding it? Certainly, I'll submit a pull request for my solution. Before I do, could you share your thoughts on the approach I've taken?
Thanks
@cretadn22 I need to test your approach a little. Did you test that as well? If so, can you provide a link to your branch?
@allroundexperts This is my draft implementation: https://github.com/Expensify/App/pull/42025
@allroundexperts In this point:
Assign all the onboarding tasks created for a user to said user
we require some changes from BE to finish
Thanks @cretadn22. I will review this today.
@cretadn22 I reviewed the draft implementation and its looking fine to me. Can you elaborate in more detail what exact changes you need from the backend?
@allroundexperts More detail here: https://github.com/Expensify/App/pull/42025#discussion_r1600813641
Thoughts on that, @allroundexperts?
Thoughts on that, @allroundexperts?
Will update today.
@allroundexperts I would think that we want the back-end to set hasOutstandingChildRequest
on these reports, just like we do for expense reports, IOUs etc. Otherwise if you're in focus mode, the app won't have enough info to know whether to show the GBR.
@allroundexperts I would think that we want the back-end to set
hasOutstandingChildRequest
on these reports, just like we do for expense reports, IOUs etc. Otherwise if you're in focus mode, the app won't have enough info to know whether to show the GBR.
Given this, @cretadn22 shouldn't you update your proposal? I think that will make things more easier?
Any update here @cretadn22?
We are currently deliberately not assigning the onboarding tasks to users because the GBRs on the tasks are at lowest context. I.e. each task is shown in the LHN with a GBR and it looks very noisy and potentially annoying. But we're losing out by doing this because after the first read, the user can ignore the chat with their onboarding tasks, or worse forget where it was originally and kinda lose motivation.
So, let's
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Santhosh-Sellavel