-
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
[$500] Distance IOU - Recent appears in the Category list when there is no recent category #28517
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issueDistance IOU - Recent appears in the Category list when there is no recent category What is the root cause of that problem?This is due to default value stored in App/src/libs/OptionsListUtils.js Line 756 in 5fd69da
[""] ).
What changes do you think we should make in order to solve the problem?Add condition to filter out blank values, i.e., App/src/libs/OptionsListUtils.js Line 736 in 5fd69da
as _.filter(recentlyUsedCategories, (category) => !_.includes(selectedOptionNames, category) && !_.isEmpty(category)) What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance IOU - Recent appears in the Category list when there is no recent category #28517 What is the root cause of that problem?When setting policyRecentlyUsedCategories field on ONYX we always put category at the first even though the value of category is empty Line 490 in 2160bab
It makes filteredRecentlyUsedCategories in here App/src/libs/OptionsListUtils.js Lines 734 to 740 in 2160bab
filteredRecentlyUsedCategories === [''] and cause this bug What changes do you think we should make in order to solve the problem?We should update logic here Line 490 in 2160bab
We only should put category if it is valuable like this
Result |
@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01e0113af0faf571ed |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
@shubham1206agra Thanks for the proposal. I don't think your RCA is correct. Onyx do not have any default values. |
@DylanDylann Thanks for the proposal. Your RCA makes sense and the solution looks good to me. (Can you also please check if same bug exists on tags?) 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @roryabraham, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@s77rt How we can access to Tag page correctly? I use deep link to access to Tag page and see like this I am not sure if this bug happens for tag page. But from the code, We are doing the same thing like category page. Line 496 in c222b7f
|
📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@kevinksullivan Are we eligible for compensation for our effort? Contributors are already assigned and started on the PR. It's just due to the other changes and the solution becomes outdated. cc @s77rt |
I think 25% would be fair for this case. |
The proposal is valid at the time the contributor is assigned and the PR is created. Unfortunately, other change make the proposal is outdated. So I think the payment should be 100% like some other similar cases below: |
@kevinksullivan Bump could you help to check above comment? |
Sorry, but our policy is we only pay for completed jobs |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #26141
Action Performed:
Expected Result:
'Recent' will not appear in the list since there is no recent category
Actual Result:
'Recent' appears in the list when there is no recent category
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Notes/Photos/Videos: Any additional supporting documentation
Bug6219294_1696006232063.20230929_234834.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: