-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-07-10] [$1000] Web- Chat - Unable to leave the Concierge "Welcome Message" thread #20197
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Unable to leave the thread that was created with Concierge What is the root cause of that problem?When leaving chat we will navigate to Conciege Chat as default App/src/libs/actions/Report.js Line 1667 in 9fa12f3
But in here App/src/libs/actions/Report.js Lines 769 to 771 in 9fa12f3
Both the main Concierge chat and thread chat with Concierge will be assigned to conciergeChatReportID So that when leaving the thread with Conciegre, the App will re-direct again to this chat What changes do you think we should make in order to solve the problem?Because
And then we will update all places that use this function and this is my suggestion, maybe we need to confirm more
### What alternative solutions did you explore? (Optional)After leaving the child thread, we can navigate to parent chat instead of Concierge chat. if do that we can pass parentReportID to App/src/libs/actions/Report.js Line 1638 in 9fa12f3
and in here App/src/libs/actions/Report.js Line 1667 in 9fa12f3
navigate to parent chat instead of conciege chat Or we can remove navigate function in leaveRoom function and navigate to parent chat in here App/src/pages/ReportDetailsPage.js Line 116 in 9fa12f3
like this
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
We're on staging v1.3.24-4, please re-test on the newest version. I am not seeing this issue on my end. |
@jliexpensify I'm still able to reproduce on Cool.mov |
Proposalposted in slack 5 days ago Please re-state the problem that we are trying to solve in this issueUnable to leave the thread that was created with Concierge What is the root cause of that problem?App/src/libs/actions/Report.js Lines 761 to 772 in edf9b18
In Report.js we are updating conciergeChatReportID in the handleReportChanged function and when we create a new thread from concierge chat, this gets updated to the chat thread instead of the actual concierge report. Therefore, when we exit the thread, it tries to direct the user to what it thinks is concierge chat but actually is the chat that we left.
What changes do you think we should make in order to solve the problem?Before updating Lines 376 to 378 in edf9b18
So, we need to add an additional condition to this method report.parentReportID === null . So we can use the function isThread(report) to do that as well. This will make sure that we don't set a thread of concierge as the conciergeChatReportID and this successfully eliminates this issue.
Complete implementation function isConciergeChatReport(report) {
return lodashGet(report, 'participants', []).length === 1 && report.participants[0] === CONST.EMAIL.CONCIERGE && !isThread(report);
} What alternative solutions did you explore? (Optional) |
Thanks @esh-g for testing - so I misunderstood the original issue and tested on a standard thread in Concierge, which works as normal. I can repro the behaviour with the Concierge auto-message, but I would also say an additional issue is that Concierge is duplicating the exact same message in-thread (when you leave it): |
Job added to Upwork: https://www.upwork.com/jobs/~0168a95ee497fd9964 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @tylerkaraszewski ( |
There is an issue for that also |
Oh, you're right - #19982. I'll amend the title. |
@tylerkaraszewski @esh-g's proposal looks good to me. Let me know your thoughts, thanks! |
@Santhosh-Sellavel What do you think about my proposal. My proposal comes first. |
It's okay to proposal the solution on slack as per guideline. And Bring to github for review before it's too late. |
📣 @esh-g You have been assigned to this job by @tylerkaraszewski! |
@Santhosh-Sellavel The PR is here #21481 |
Hired @adeel0202 and @Santhosh-Sellavel . @esh-g - your profile (I assume it's "Esh G.") seems to have an issue when I invite it...it says it doesn't exist? |
@jliexpensify I submitted a proposal for the job. Here is my profile: https://www.upwork.com/freelancers/~0186b1d7cc69656f22 |
Oh, ok - different profile, thanks @esh-g! |
Thanks for sending the offer! I have accepted it 👍 |
🎯 ⚡️ Woah @Santhosh-Sellavel / @esh-g, 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 🚀 |
PR is merged. |
@jliexpensify - I am leaving on sabbatical today. I don't expect this issue to need any further engineering input, but if it does, please unassign me and re-apply the |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.35-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-07-10. 🎊 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.
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:
|
@Santhosh-Sellavel before any payments are made, can you please complete the checklist? I'll also need to assign a new Engineer to review this checklist, as Tyler is on sabbatical. |
bump @Santhosh-Sellavel |
Let me know your thoughts thanks @jliexpensify! |
Paid @adeel0202 and @esh-g . @Santhosh-Sellavel - I'll let you record your own payment (you qualify for a bonus). Job closed and removed. |
Requested Payment on ND |
Approved $1500 with bonus for Santhosh on ND |
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:
Note: this only occurs on the Welcome message
Expected Result:
Thread is no longer there on LHN
Actual Result:
Thread is still there on LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.24-4
Reproducible in staging?: yes
*Reproducible in production?: n/a
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
Screen.Recording.2023-05-29.at.8.47.50.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685376970661379
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: