-
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-06-13] [$250] mWeb - Tax - Saving tax name without altering displays error message #42556
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Saving tax name with no edit throws error What is the root cause of that problem?We currently do not have any check in place to check if the new tag name is same as current tag name, we directly call App/src/pages/workspace/taxes/NamePage.tsx Lines 47 to 50 in 791058a
Then when we make this request to the What changes do you think we should make in order to solve the problem?We should const submit = () => {
if(name === currentTaxRate?.name)
{
goBack();
return;
}
renamePolicyTax(policyID, taxID, name);
goBack();
}; What alternative solutions did you explore? (Optional) |
@lanitochka17 , i guess automation didn't work, can you add those labels again ? |
Triggered auto assignment to @laurenreidexpensify ( |
@laurenreidexpensify 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.The API update continues to be triggered even when we update with the old value. This issue also persists on the tax value page. What is the root cause of that problem?App/src/pages/workspace/taxes/NamePage.tsx Lines 47 to 50 in c19eea6
App/src/pages/workspace/taxes/ValuePage.tsx Lines 43 to 47 in c19eea6
In these instances, we don't check if the updated value is similar to the old value and thus do not prevent updating. What changes do you think we should make in order to solve the problem?We should implement the same logic as we did in the EditTagPage. This means applying it to the Name page and Value page as well.
For the Value page:
We're considering adding Keyboard.dismiss(); to enhance the user experience on mobile devices Optional: We should also address the same issue on other pages if it exists like PolicyDistanceRateEditPage App/src/pages/workspace/distanceRates/PolicyDistanceRateEditPage.tsx Lines 46 to 50 in c19eea6
What alternative solutions did you explore? (Optional)NA |
Keyboard is already dismissed on Native applications @cretadn22 :) RPReplay_Final1716615262.mp4
And the value page doesn’t have a keyboard popup as it is a numpad input. |
@GandalfGwaihir, I recommend adding Keyboard.dismiss() because it aligns with our existing pattern of usage in scenarios like editing tags, categories, distance rates, and others. It's worth delving deeper to clarify why this function is necessary for consistency across our application. |
@laurenreidexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~01f750a4457ca441b3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
Calm down melvin, not overdue, just waiting for proposals and review |
@rojiphil bump for review ^^ thanks |
Thanks for your proposals. Both proposals have got the RCA correct. @cretadn22 additionally proposed to trim the value but that is just a minor change and could have been identified during PR review. Calling Keyboard.dismiss() is not required here as there is no value-add and is not fixing any bug. Implementing the same logic to @GandalfGwaihir proposal LGTM as that was the first one to get to the correct RCA and solution |
📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @GandalfGwaihir 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR would be ready by EOD 👍 |
Android build is failing on main 😞 we have active slack convo too, if this doesn't get resolved by today i will still put up the PR on all other platforms except android native |
Android finally builds 🥳 , PR ready for review c.c. @rojiphil |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-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 2024-06-13. 🎊 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:
|
@allgandalf just to confirm - are you Rohan in Upwork ? |
Yes @laurenreidexpensify , that is right 👍 |
Payment Summary:
@rojiphil pls confirm checklist and regression steps above thanks |
|
@laurenreidexpensify BZ Checklist done and accepted offer. Thanks. |
Payment Summary:
|
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.75
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:
When user saves without altering tax name, it must not display error message
Under new tax rate created error message must not be shown
Actual Result:
When user saves without altering tax name, it displays error message " An error occurred while updating tax rate. Please try again or ask concierge for help. " Under new tax rate created error message " Duplicate tax name" is shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6489742_1716489237727.tax.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @laurenreidexpensifyThe text was updated successfully, but these errors were encountered: