-
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
[HOLD for payment 2024-02-26] [$500] Expense - "Recent" and "All" appear in report field selection list when there is no result #35832
Comments
👋 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:
|
Triggered auto assignment to @NikkiWines ( |
We think that this bug might be related to #wave6 |
ProposalPlease re-state the problem that we are trying to solve in this issue."Recent" and "All" appear in report field selection list when there is no result What is the root cause of that problem?We have a condition to always show the recents regardless of the list being empty
What changes do you think we should make in order to solve the problem?Update the function to only show the recents if the list is not empty shouldShow: !_.isEmpty(recentlyUsedOptions) We already do that at other places App/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js Line 166 in 34330e2
Same approach will be followed for What alternative solutions did you explore? (Optional)N/A |
Not a blocker, this is behind beta cc @thienlnam @allroundexperts |
Job added to Upwork: https://www.upwork.com/jobs/~01d9bb73088604e957 |
Current assignee @allroundexperts is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to @slafortune ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Recent and All text is visible when there is no data for the respective sections. What is the root cause of that problem?we are using the EditReportFieldDropdownPage component to display the edit report field page here, App/src/pages/EditReportFieldPage.tsx Lines 104 to 116 in 92e46ff
beneat the EditReportFieldPage we are showing the Recents and All section here, App/src/pages/EditReportFieldDropdownPage.tsx Lines 51 to 72 in 92e46ff
above we can see the shouldShow is hard coded true, show it doesnt matter the length of the all or recent data we always show the All and Recent text, thats the cause of the issue What changes do you think we should make in order to solve the problem?We have to add the check here for the respective option
shouldShow: filteredRecentOptions.length > 0,
App/src/pages/EditReportFieldDropdownPage.tsx Lines 63 to 64 in 92e46ff
shouldShow: filteredRestOfOptions.length > 0, Resultrecent-and-all-text-hide-on-empty.movWhat alternative solutions did you explore? (Optional)none |
Just making my proposal noticeable as i posted it before the help wanted tag 😅😁 |
@allroundexperts can you give the proposals here a review? 🙇 |
@Amarparab2024's proposal looks good to me. @jayeshmangwani your proposal seems to be a duplicate. 🎀 👀 🎀 C+ reviewed |
Current assignee @NikkiWines is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@allroundexperts Sorry, can you which part do you think is duplicate ? |
Hi @Amarparab2024 , Yes I know the rule, but can you check your
|
I think this was a fairly simple to fix bug and the first proposal is conveying the RCA correctly as well. Elaborating it further doesn't seem to make your proposal any better. I would still go with the first proposal, but lets wait on the assigned internal engineer 😄 |
Thanks you so much @allroundexperts :) |
Yeah, agreed with @allroundexperts here. For such a simple bug, @Amarparab2024's proposal is totally sufficient. @jayeshmangwani, your proposal is also good, but in this scenario, there's not significant enough of a difference between the proposals to warrant choosing the later one. |
📣 @Amarparab2024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR #36304 ready for review :) @allroundexperts |
The PR was deployed to staging 5 days back, did the automation fail, or do we need to wait until it is deployed to production ? @slafortune @NikkiWines 🤔 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-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 2024-02-26. 🎊 For reference, here are some details about the assignees on this 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:
|
Waiting on @allroundexperts to complete checklist - @allroundexperts requires payment through NewDot Manual Requests - $500 |
Checklist
|
Thanks @allroundexperts ! @allroundexperts requires payment through NewDot Manual Requests - $500 |
$500 approved for @allroundexperts based on summary above. |
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: .1.4-36.1
Reproducible in staging?: Y
Reproducible in production?: N
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: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition:
Note that "Recent" and "All" appear when there are no relevant results
Expected Result:
In Step 4, when there is no recent item, "Recent" will not appear in the list
In Step 5, when there is no search result, "Recent" and "All" will not appear in the list
Actual Result:
In Step 4, when there is no recent item, "Recent" appears in the list
In Step 5, when there is no search result, "Recent" and "All" also appear in the list
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6367962_1707149161081.bandicam_2024-02-05_21-13-05-298__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: