-
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-10-30] [HOLD for payment 2023-10-27] [$500] New user disappears from search results when selected #29917
Comments
Triggered auto assignment to @anmurali ( |
Bug0 Triage Checklist (Main S/O)
|
This is a follow up from a PR I created that we're rushing due to urgency for the activation, I'm waiting till it's merged before adding the external label |
Job added to Upwork: https://www.upwork.com/jobs/~01e7a262c69c9017a0 |
Current assignee @abdulrahuman5196 is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.New user disappears from search results when selected What is the root cause of that problem?This happens as new user is not returned from getFilteredOptions if it is already a selectedOption here: App/src/libs/OptionsListUtils.js Line 1211 in c23adc0
It is not sent as part of any other section as since no report is created yet, the app officially does not 'know' this user App/src/libs/OptionsListUtils.js Lines 1201 to 1205 in c23adc0
So it not a part of What changes do you think we should make in order to solve the problem?We should return a result of searching We will perform a search here: App/src/libs/OptionsListUtils.js Line 1120 in c23adc0
then exclude selectedOptions from other search results. The returned selected options result will go in the else block for this (will be shown when searchTerm is not empty): App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Line 108 in 1bfd5f1
What alternative solutions did you explore? (Optional)The When searchTerm is not empty, in the else block for this: App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Line 108 in 1bfd5f1
We will filter participants according to else {
// filter logic:
const searchedParticipants = _.filter(participants, (participant) => participant.searchText.includes(searchTerm));
// push the searched participants into the list. We only change data to map searchedParticipants.
newSections.push({
title: undefined,
data: _.map(searchedParticipants, (participant) => {
const isPolicyExpenseChat = lodashGet(participant, 'isPolicyExpenseChat', false);
return isPolicyExpenseChat ? OptionsListUtils.getPolicyExpenseReportOption(participant) : OptionsListUtils.getParticipantsOption(participant, personalDetails);
}),
shouldShow: true,
indexOffset,
});
indexOffset += searchedParticipants.length;
} |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we search for a new user, and click add to group, the user disappears. What is the root cause of that problem?On line 75 of NewChatPage.js we are purposely omitting the selected users section unless the search term is empty.
What changes do you think we should make in order to solve the problem?Remove the if statement that prevents selected users from being shown. With these changes it functions like this, keeping the list consistent with visible feedback for the user across selection tasks. thething.movWhat alternative solutions did you explore? (Optional)I also explored changing the title of the list to "Add Users to Group Chat", instead of undefined. |
@abdulrahuman5196 @thienlnam In my original proposal for #29836, I've already included the solution for this issue. I'm assuming I could have first dibs in this issue once I bring that same proposal here (@neonbhai 's proposal is similar), since my fix was essentially first, just that it wasn't implemented during the PR process for that issue. Do you think that's reasonable? |
Your previous solution doesn't really outline the root cause of this problem, and because I used pieces of your proposal we're compensating you in the previous issue. Though I do think you should handle #29916 since you originally mentioned that in your proposal. Does that sound good? Also, since we're dealing with urgency for these specific issues it is hard with the different time zone to get on it at the same time |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Current assignee @thienlnam is eligible for the Engineering assigner, not assigning anyone new. |
I'm looking into this one with @abdulrahuman5196 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.88-11 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-10-30. 🎊 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:
|
@anmurali, @allroundexperts, @thienlnam Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Approved for @allroundexperts to be paid $500 for this PR via New Dot. |
$500 payment approved for @allroundexperts based on comment above. |
@anmurali, @allroundexperts, @thienlnam Huh... This is 4 days overdue. Who can take care of this? |
Looks like all that is left here is a partial payment to @neonbhai cc @anmurali Context here: #29917 (comment) I've been doing 50% payments for these situations, so that would be $250 |
@anmurali, @allroundexperts, @thienlnam Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@anmurali, @allroundexperts, @thienlnam Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@anmurali offer accepted. Thank you! |
@anmurali, @allroundexperts, @thienlnam Still overdue 6 days?! Let's take care of this! |
cc @anmurali Issue just pending payout now |
@anmurali, @allroundexperts, @thienlnam Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@anmurali, @allroundexperts, @thienlnam 12 days overdue now... This issue's end is nigh! |
Paid. |
Follow up from #29903
Action Performed:
Break down in numbered steps
Expected Result:
The option should not disappear when you choose 'Add to Group'
Actual Result:
When choose to group is selected, the option disappears from the search results
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Yes, you can still remove the search to show all the selected participants
Platforms:
Which of our officially supported platforms is this issue occurring on?
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: