-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-27] [$500] Remove the selected participants from the search results in the split / group chat flow #29836
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Waiting to add external until we confirm this is the desired functionality https://expensify.slack.com/archives/C05RECHFBEW/p1697553482299739 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Remove the selected participants from the search results in the split / group chat flow What is the root cause of that problem?We always pass selected participants to the options selector here: App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Lines 107 to 115 in 8bc86cc
Once selected, the option will always appear. We have to make sure the selected participants react to the searchTerm .
What changes do you think we should make in order to solve the problem?We need to:
We will be modifying the behaviour of the this section to filter according to searchTerm: App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Lines 107 to 115 in f626744
We will filter out participants when searchTerm is not empty. data: _.chain(participants)
.filter((participant) => searchTerm === '' || participant.searchText.includes(searchTerm))
.map((participant) => {
const isPolicyExpenseChat = lodashGet(participant, 'isPolicyExpenseChat', false);
return isPolicyExpenseChat ? OptionsListUtils.getPolicyExpenseReportOption(participant) : OptionsListUtils.getParticipantsOption(participant, personalDetails);
})
.value(), Before mapping the participants, we will filter them by checking the presence of searchTerm in Result:Screencast.from.18-10-23.07.38.24.AM.IST.webm |
Job added to Upwork: https://www.upwork.com/jobs/~016fdba16a8b2fba60 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
As a reminder, we still want to show the selected participant if they show up as part of the search results |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selected participants are always in the option list, it should only show up it matching the search term, if there's no search term then all should show up. What is the root cause of that problem?In here, we're pushing in the list of participants regardless of the search results, so all the participants will show at all time. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)In 2, we can simplify by removing this part An alternative is to fix inside |
@dukenv0307 's proposal here #29836 (comment) looks good and works well. 🎀 👀 🎀 |
Current assignee @thienlnam is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Due to the urgency on this - I'm going to take the PR so we can get it merged today, since I'm using part of Dukes solution we can do a partial payment since it appears to be 1am in your time |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.87-12 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-27. 🎊 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:
|
@danielrvidal, @kevinksullivan, @thienlnam, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Not a regression. Implementation of new expectation.
Yes.
|
I think @kevinksullivan is off until next week so will get back to it then. I don't have test rail set up unfortunately so couldn't figure out where to put the tests. |
@thienlnam can you assign me to this issue for payment purpose, thanks! |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Just a note here @kevinksullivan when you get back, this was a deploy blocker and required an urgent fix so I used part of @dukenv0307's solution and added it myself so that only requires a partial payment (I believe 50% is fair?) And then full payment for the C+ that reviewed the PR You may need to adjust the automated offers that were sent out |
I'm good with this, thank you! |
@abdulrahuman5196 can you accept the offer in upwork? Lmk here once you've done so! |
Paid @dukenv0307 |
@kevinksullivan accepted the offer |
all set |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: Version 1.3.83-1 (1.3.83-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation: https://expensify.slack.com/archives/C05RECHFBEW/p1697553482299739
Action Performed:
Break down in numbered steps
Expected Result:
When you start searching, the selected participants should not show up unless they are part of the search results.
When the search text is empty, the selected participants should show up again
Actual Result:
Selected participants are always in the option list
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Yes, but it's confusing on smaller screens
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
https://files.slack.com/files-pri/T047TPA624F-F061DSHBHAS/screenshot_2023-10-17_at_3.55.35_pm.png
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: