-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix: filter out unchanged taxrates from changed list #1914
Conversation
🦋 Changeset detectedLatest commit: c92cbac The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1914 +/- ##
=======================================
Coverage 94.63% 94.64%
=======================================
Files 147 148 +1
Lines 5089 5097 +8
Branches 1382 1383 +1
=======================================
+ Hits 4816 4824 +8
Misses 270 270
Partials 3 3 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @antoniolodias,
Even though it's not strictly needed, I still think it will be nice if we can add an test assertion to show that the unchanged tax rates
were completely omitted in the resulting action.
Summary
support ticket
When trying to update one tax rate inside a tax category, all the tax rates for the tax category are updated by the API.
Description
This happens because there's no
update
action for taxRates, but onlyreplace
, so any taxRate sent to the API is taken to be replaced.Tried just filtering out from the FE, but that conflicted with
remove
logicThis PR just filters out unchanged tax rates from the action
Todo
Type
label for the PR