-
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
[PAID] [$250] Leaving a group chat with 0 members inside still populates the search as a result #40493
Comments
Triggered auto assignment to @strepanier03 ( |
Triggered auto assignment to @johnmlee101 ( |
👋 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:
|
This doesn't feel like a deploy blocker to me. @johnmlee101 I can grab this from you if you'd like as it's related to Group Chats. |
Sure go right ahead! |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we leave a from a group chat, the group chat is still accessible from the search page. You don't need to remove other members first, just leave from the group and the issue happens. What is the root cause of that problem?This is an issue with the options list cache in OptionListContextProvider. Currently, we have a logic to update the list cache whenever the report is either updated or added, App/src/components/OptionListContextProvider.tsx Lines 50 to 102 in d47413d
but we don't have the logic to update the cache when a report is removed. Leaving a group chat will remove the report. So, when we open the search page, we still see the group chat in the list, but it looks broken because the data is not available anymore. What changes do you think we should make in order to solve the problem?Update the cache list when a report is deleted. We can follow the update pattern from the add report logic,
or we can simplify it just like this,
If we decided to use the 2nd logic, I think we can add the code in the add logic here, App/src/components/OptionListContextProvider.tsx Lines 80 to 90 in d47413d
so we are not adding another |
Job added to Upwork: https://www.upwork.com/jobs/~01d256e1494b7b0e48 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
@bernhardoj's proposal LGTM! I like the idea of combining the logic in one 🎀👀🎀 C+ reviewed |
Current assignee @marcaaron is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR is ready cc: @jjcoffee |
Looks like automation failed here, this hit production May 9, so payment is due May 16. cc @strepanier03 |
Regression Test Proposal
Do we agree 👍 or 👎 |
@strepanier03 Checklist complete! Friendly bump for payment (the PR hit production May 9) 🙇 |
Payments for @bernhardoj and @jjcoffee are completed via Upwork, contracts are also closed. Reg test GH is created so this is ready to be closed. Thank you all! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.63-0
Reproducible in staging?: y
Reproducible in production?: no new feature
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
Expensify/Expensify Issue URL:
Issue reported by: @johnmlee101
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1713458559012729
Action Performed:
Create a group chat with some group.
Remove each of them then leave the room.
Expected Result:
Group chat should either 1. Be archived or 2. be completely inaccessible.
Actual Result:
Chat shows up like this on the search 's Group Chat and is inaccessible when clicking in.
Chrome - Latest staging
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Recording.2986.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: