-
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
Refactor custom unit rate update #10557
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
607e5c5
add copy
jasperhuangg 55af930
update setCustomUnitRate
jasperhuangg 4cbb5d4
update setCustomUnitRate
jasperhuangg ec577cd
merge main
jasperhuangg 065909a
WIP, online updates work, but need to figure out issue with data shap…
jasperhuangg e068def
merge main
jasperhuangg 131144f
merge main
jasperhuangg 5cff69a
remove unused
jasperhuangg d0b1393
remove unused
jasperhuangg ef76111
remove unused
jasperhuangg d2a0ea3
flatten customUnit rate array
jasperhuangg 942416f
flatten customUnit rate array
jasperhuangg 46eb7b5
fix linter error
jasperhuangg f2dbc32
update comment
jasperhuangg 230cf42
revert unused
jasperhuangg 7f7cadd
key by ID to get rates
jasperhuangg 0ced3e5
access directly
jasperhuangg 651ab0a
cleanup
jasperhuangg 1e93077
cleanup
jasperhuangg c6a2304
fix propTypes
jasperhuangg 71447ec
update customUnitRate accessing
jasperhuangg 1da0a2a
remove unused
jasperhuangg 55252de
cleanup
jasperhuangg b31f47b
Merge branch 'main' of github.com:Expensify/App into jasper-refactorP…
jasperhuangg ca7638e
Merge branch 'main' of github.com:Expensify/App into jasper-refactorP…
jasperhuangg 4591cef
add comment
jasperhuangg f862e26
use update instead of set
jasperhuangg 7aa9ab6
remove _.omit
jasperhuangg 74ff01e
round to 3 decimal places before multiplying and passing to Policy ac…
jasperhuangg 49f7118
remove defaults
jasperhuangg be512f5
use onyxRates instead of rates
jasperhuangg 0c591d1
use onyxRates instead of rates
jasperhuangg 8004b38
merge main
jasperhuangg 39c5042
fix stuff messed up in merge
jasperhuangg dbaaa36
rename rateValue => unitRateValue
jasperhuangg c55d97b
fix stuff messed up in merge
jasperhuangg 555a489
rename variables
jasperhuangg d3e4d63
Merge branch 'main' of github.com:Expensify/App into jasper-refactorP…
jasperhuangg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This caused a regression #26676. Previously the custom unit rate was simplified to only include relevant data that should be sent. Now we are sending the data from Onyx which may include client-only fields such as
pendingAction
anderrors
.