-
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 2023-08-17] [$1000] Completed task gets re-indexed if edited. #23883
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Completed task should not be reindex and should not move to top to the report list or if it has to move up then it should persist its index. What is the root cause of that problem?The root cause of this issue is the ordering of the report ID's based on their status and when the completed task has a draft comment, According to the current logic all draft report comes on the top. Lines 142 to 145 in 62622e9
if (report.hasDraft) {
draftReports.push(report);
return;
} This is the part of the code, which is causing the current issue. What changes do you think we should make in order to solve the problem?The actual solution to this issue is to keep the Completed task at their position even if the task has a draft comment. We can check if this REPORT is a task and completed one, We will not put the REPORT in the draftReports array. // The completed tasks should not move the position when have a draft
if (report.hasDraft && !(ReportUtils.isTaskReport(report) && ReportUtils.isCompletedTaskReport(report))) {
draftReports.push(report);
return;
} As per the another half comment of the issue by the reporter "if it has to move up then it should persist its index." What alternative solutions did you explore? (Optional)N/A |
Not a bug, we prioritize the draft report on LHN |
I agree, this is intentional. Not a bug. |
I had the same initial view but in the video, it looks like after you send the message it is reverting it’s position which is the bug here. I agree it reindexing while in draft state is correct, but it seems like after the message is sent and it is no longer in draft state it should stay at the top |
Hmmm, yes I haven't not used focus mode for a long time. I'll retest this. |
Yes, You are right @thienlnam. either the completed task should change the position on draft and keep the position after sending the message or should not change the position when has the draft message. According to me, It should not come to top position with draft message as the task has been completed and that's the solution i have provided. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Completed tasks move to the top while writing something in Composer and get back to its position if the message is sent. What is the root cause of that problem?
Line 176 in 751d797
Lines 152 to 155 in 751d797
What changes do you think we should make in order to solve the problem?I think we should not consider a completed task as a Archived report but Non Archived Report instead. Since as I see in the UI. An archived report always has two characteristics
![]() Therefore, after marking a completed task as non archived report, the after adding a new comment, completed tasks will stay on top in LHNResult:Screen.Recording.2023-08-02.at.17.18.48.movWhat alternative solutions did you explore? (Optional) |
@thienlnam Completed tasks are initially marked as Archived Report in this PR files https://github.com/Expensify/App/pull/18931/files |
@twisterdotcom Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This makes sense to me. |
Job added to Upwork: https://www.upwork.com/jobs/~01ffb623af5dcd64cc |
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
@parasharrajat and @thienlnam - can we assign @dukenv0307 on this one? |
IMO, @dukenv0307 's proposal looks good. But I am not sure of the Task design. Why did we move the task to archived when a user can still message in that thread? 🎀 👀 🎀 C+ reviewed |
@parasharrajat The PR is ready for review |
I noticed that all reports change position when drafts are added/removed from them. Are we trying to change that? Earlier, I got distracted by the mention of the completion of a task in the issue. And I focused on #23883 (comment) & #23883 (comment) as the expected result from triaging. If this is in fact the expected result then we are on track and no action is due. Thus we should update the issue @twisterdotcom to correctly reflect that. Otherwise, we should fix the issue description and discuss the real problem that |
🎯 ⚡️ Woah @parasharrajat / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
This is just because the draft moves up in the hierarchy though right? When the message is sent, it doesn't move back down again. If so, I think this is fine. |
Yeah, it does not move back down. |
@parasharrajat @twisterdotcom, why I always have to send proposals on Upwork, I already have 2 jobs assigned to me on Upwork. I have sent a proposal for this one just now, pls let me know if you can help. Thanks |
You shouldn't have to send a proposal on Upwork anymore. We should automatically send you a contract if we have your Upwork profile saved. Only proposals in GitHub. |
@twisterdotcom, but I haven't got any reporter role job for this one... |
@Krishna2323 Can you please email the email address you linked to GH/Upwork to [email protected] and we can take a look from there? |
@thienlnam, email sent, thanks. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-5 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 2023-08-17. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
hi @thienlnam, still haven't received job offer for reporter role. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@Krishna2323 I took a look, and our automation doesn't work with the Upwork custom profile links. You'll have to update your stored upwork link to your regular profile link. Can you paste the below in a comment?
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Payment Summary:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@thienlnam, thanks a lot. |
Payment requested. |
Reviewed the details for @parasharrajat. Approved for $1,500 payment in NewDot based on the BZ summary above. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Completed task should not be reindex and should not move to top to the report list or if it has to move up then it should persist its index.
Actual Result:
Completed tasks moves to top while writing something in composer and gets back to its position if the message is sent.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
completed_task_reindexing.mp4
Recording.1403.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Krishna2323
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690436338235719
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: