-
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
[$250] Chat - Selected members disappear from search result after returning from confirmation page #39612
Comments
Triggered auto assignment to @muttmuure ( |
@muttmuure FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selected members disappear from search result after returning from confirmation page What is the root cause of that problem?We don't pass What changes do you think we should make in order to solve the problem?We need to pass Line 222 in 93e9719
type SelectedParticipant = {
accountID: number;
login: string;
keyForList?: string;
};
const selectedParticipants: SelectedParticipant[] = selectedOptions.map((option: OptionData) => ({
login: option.login ?? '',
accountID: option.accountID ?? -1,
keyForList: option.keyForList ?? undefined,
}));
{...baseOption, reportID: baseOption.reportID ?? '', keyForList: participant.keyForList}; Resultselected_participants_dissapear.mp4OptionallyWe can also modify |
Proposal updated
|
@muttmuure Huh... This is 4 days overdue. Who can take care of this? |
@muttmuure 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Job added to Upwork: https://www.upwork.com/jobs/~013254e490a0ba9b6d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
I think it makes sense to fix this since we're giving more focus to groups and search is an important part of that |
@Krishna2323 Thanks for the proposal. Searching for the email should also return the selected user (same as in the split flow) Screen.Recording.2024-04-15.at.1.05.10.PM.mov |
@s77rt, IG my solution already does that. seleted_option_search_by_login.mp4 |
@Krishna2323 Try search for a user that does not exist (type random email) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selected members disappear from search results after returning from create group confirmation page What is the root cause of that problem?when going to the confirmation page, we dont set the option Line 259 in ff368b8
the What changes do you think we should make in order to solve the problem?
const selectedParticipants: SelectedParticipant[] = selectedOptions.map((option: OptionData) => ({
login: option.login ?? '',
accountID: option.accountID ?? -1,
searchText: option.searchText ?? '',
}));
const baseOption = OptionsListUtils.getParticipantsOption(
{accountID: participant.accountID, login: participant.login, reportID: '', searchText: participant.searchText},
personalDetails,
); alternativelyor instead of saving the const report = ReportUtils.getReport(participant.reportID);
const searchText = getSearchText(report, displayName, [detail], false, false); then in the return value we should fallback to the new searchText var: searchText: participant.searchText ?? searchText ?? undefined, |
@abzokhattab Thanks for the proposal. Your RCA makes sense. It seems we may face more issues like that (missing option fields). Do you think we can reconstruct all the missing fields without saving them to draft? or find a better way to save selected participants? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The chat page displays "No results found" instead of showing the selected members after returning from group confirmation page What is the root cause of that problem?When we save the group draft, we're only saving the But when we go back to the This is buggy because our own re-constructed option might not match the option that we originally selected, in this case the re-constructed option is missing the What changes do you think we should make in order to solve the problem?We should not reconstruct the option, but should try to retrieve selected options again from the option list instead. So here we already have the options list. When we go back to Now we can just find those selected options in that combined list, which matches the This way, we're sure the options will always match and there's no duplicate logic, because:
So they'll always match, and there's no re-construction needed. What alternative solutions did you explore? (Optional)NA |
@tienifr Thanks for the proposal. Your RCA is correct. I like the approach of the solution. Can you please test if this works on deep link? e.g. when you arrive to the confirmation page refresh the page then try go back, this way the options list is constructed after the selection list PS: When selecting users on the initial page select users from different cases e.g. from recent and a new random user (type their email), etc. |
@s77rt @muttmuure this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@s77rt Sure, it's working just fine, please see below Screen.Recording.2024-04-19.at.4.43.20.PM.mov |
@tienifr Thanks for checking that. Let's get this fixed 🎀 👀 🎀 C+ reviewed |
Not overdue. @neil-marcellini ^ |
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Not overdue. @tienifr got assigned recently |
PR still in progress |
I never got a chance to review the proposal, so before I review the PR I will do that. |
I agree it's a good proposal. I'll review the PR now. |
I merged the PR ✅ |
This issue has not been updated in over 15 days. @s77rt, @neil-marcellini, @muttmuure, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR made it to production 2 weeks ago |
@muttmuure Hi, could you help add Thanks |
Refunded UW payment made in error. I 've requested payment in NewDot. |
$250 approved for @tienifr |
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.60-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The chat page will display the selected members because the search field is not cleared
Actual Result:
The chat page displays "No results found" instead of showing the selected members after returning from group confirmation page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6437927_1712233915147.chat_search.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: