-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] [Wave 6: Workspace Chats] Refactor ReportUtils.requiresAttentionFromCurrentUser #30668
Comments
Hello, Im Artem from Callstack and would like to help with this issue! |
Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~019b604f4627d28c77 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($500) |
@waterim can you please post a proposal with your general planned approach for us to agree on before starting the PR? Thanks! |
Sure, thank you, one question Do we have some specific requirements for these steps? |
Nothing thought through. Just that right now the function is confusing because it is in ReportUtils, but is technically called with both reports and optionItems. And reports and optionItems don't have all the same properties and that makes the code both more confusing and more likely to have a bug introduced. And we seem to already have run into at least one bug as a result. |
@waterim Which logics are shared between optionItem and report? What are the distinct logics for each?
I believe relying on a field such as To get rid of confusing logic, the best way to go will be splitting the function. |
The downside of two separate functions is that they need to use the same logic and have the potential to get out of sync. So I think I like the typescript types approach and we do it once https://github.com/Expensify/App/pull/29012/files is done. What do y'all think about that? |
@puneetlath I agree. We can just wait for #29012 to get merged. It is being actively worked on. |
Still holding on #29012 |
ReportUtils to TS was merged, so you're unblocked from going forward here @waterim |
How's this going @waterim? |
@puneetlath Updated today, waiting for C+ answers |
Ok great. |
This issue has not been updated in over 15 days. @puneetlath, @sobitneupane, @waterim 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! |
@sobitneupane @waterim everything is done here right? If so, all that is left is to pay @sobitneupane for C+? |
Yep @puneetlath. |
Great. Please request on NewDot. Payment summary:
|
$500 approved for @sobitneupane based on comment above. |
Right now, ReportUtils.requiresAttentionFromCurrentUser can take either an option item or a report. This leads to some confusing to follow logic which is dependent on what type of argument its taking. Ideally we can clean this up to either:
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: