-
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
Remove ReportActionsUtils.getParentReportAction(), ReportUtils.getParentReport(), TransactionUtils.getLinkedTransaction(), ReportUtils.getPolicy(), and TransactionUtils.getTransaction() #27262
Comments
Adding @aimane-chnaif to the GH as he helped review the PR: https://expensify.slack.com/archives/C02NK2DQWUX/p1694749699352029 |
I'm slowly working my way through these, but I wasn't able to get to any of them this week. |
I wrote a new PR for the next one on the list today. |
I haven't had time to do any additional work on this. |
Weekly Update
Next Steps
ETA
|
Weekly Update
Next Steps
ETA
|
Weekly Update
Next Steps
ETA
|
Weekly Update
Next Steps
ETA
|
Weekly Update
|
Weekly Update
|
This issue has not been updated in over 15 days. @tgolen eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
Problem
These methods are anti-patterns because they are most always used for loading data into a component without using
withOnyx()
. This breaks the data flow of a react application. (data is coming from somewhere that is not props or state and cannot be debugged in react dev tools).Solution
Switch all references to properly use
withOnyx()
for components andconnect()
for libs.Components
SplitBillDetailsPageReportActionListNo longer references deprecated methodsComposerWithSuggestions @tgolenalready removed\MoneyRequestView
@tgolen [NO QA] Remove use of deprecated function when showing violations on a transaction #37703HeaderView
@tgolen Refactor HeaderView to access parentReportAction from props #37913ReportActionsListItemRenderer
@tgolen Remove deprecated method and pass down parentReportAction #37449getParentReport()
@tgolen Refactor FlagCommentPage to access parent report directly from Onyx #38356ReportActionUtils.getAllReportActions()
method #39091ReportUtils.getReport()
#40316Libs
IOUalready removedReportUtils.getPolicy()
method #38959Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: