-
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-01-17] Implement Client-side Violations when creating money requests #31092
Comments
@lindboe @cdanwards can you comment here so I can assign you? |
Commenting for assignment |
@cdanwards Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Beginning work on this |
@cdanwards Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Hey @cead22 I've been working on this and had a question about approach. Right now, we're connecting I had a thought that maybe we could update the policy PropTypes to include Similarly we could call Here's the gist of what it would look like:
Let me know what your thoughts are! |
You mean MoneyRequestConfirmPage?
You mean as part of this PR you're working on? I don't see the connection to those collection in main. If that's the case, let me know and I'll check the design doc to see if we're going to use them somewhere else, and we just haven't added the code for it yet
I don't see the benefit of this, but I'm kind of a react noob, can you perhaps spell it out?
I don't see why it's better to have these getters, instead of accessing them like |
@cdanwards Eep! 4 days overdue now. Issues have feelings too... |
Yes! Sorry, I thought I was referring to the correct component.
I think this was just me making an assumption. Those properties weren't listed as being passed down through the functions but they are needed in the subsequent
While originally I was thinking this would be most useful when using the getter |
Thanks for clarifying, that makes sense to me, so long as it doesn't break anything (and let's not block on it) |
Off hold |
Now unblocked. Working to get this ready for PR! |
Commenting for assignment |
This issue has not been updated in over 15 days. @cead22, @lindboe, @cdanwards 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! |
The PR is done, @cead22 can this be closed? |
Yes |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.23-4 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-01-17. 🎊 For reference, here are some details about the assignees on this issue:
|
requiresTag
,requiresCategory
,hasMultipleTagLists
, andisTaxTrackingEnabled
from the policysrc/pages/iou/steps/MoneyRequestConfirmPage.js
let's passprops.policy.policyID
toIOU.requestMoney
> from there togetMoneyRequestInformation
> and from there tobuildOnyxDataForMoneyRequest
buildOnyxDataForMoneyRequest
ViolationUtils.getViolationsOnyxData(transaction, [], policyRequiresTags, policyTags, policyRequiresCategories, policyCategories)
and push the return value to optimisticDatagetViolationsOnyxData
ViolationUtils.getViolationsOnyxData
should show right away (eg, missing tag, missing category, category out of policy,...)The text was updated successfully, but these errors were encountered: