-
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
[HOLD for payment 2024-05-03] [Backwards Compatibility] [$250] Remove usages of policy.submitsTo
in favor of using a new method PolicyUtils.getSubmitTo
#40356
Comments
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
Dibs |
Thanks @shahinyan11, it'd be great if you could have the PR up today 🙇 |
policy.submitsTo
in favor of using a new method PolicyUtils.getSubmitTo
policy.submitsTo
in favor of using a new method PolicyUtils.getSubmitTo
|
Triggered auto assignment to @sonialiap ( |
|
Triggered auto assignment to Design team member for new feature review - @dannymcclain ( |
Thanks for the heads up! Assigned you, Kevin! 👍 |
policy.submitsTo
in favor of using a new method PolicyUtils.getSubmitTo
policy.submitsTo
in favor of using a new method PolicyUtils.getSubmitTo
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.66-5 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-05-03. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
We could use the same steps detailed in the PR's description #40532 (comment): Test Case 1 - Prevent Self-Approval
Note: Remember to disable prevent self-approval in OldDot after the test is completed. Test Case 2 - Approval optional
Test Case 3 - Self-approval
Test Case 4 - Other approver
Do we agree 👍 or 👎. |
Payment Summary
BugZero Checklist (@trjExpensify)
|
@trjExpensify Friendly bump, payment overdue! |
Yeah, sorry @ikevin127. I was out yesterday for a national holiday here in the UK. Confirming payments as follows:
I've sent offers in Upwork. As for the regression tests. We're shortly going to make self-approval a control plan feature only, so I'm hesitant to add them for collect at this time. The others we have for approvals, so no need for new ones in that regard. |
@bernhardoj - paid! |
@trjExpensify No worries, offer accepted. Cheers! |
Paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Problem
policy.submitsTo
is a field calculated on the fly by the API (and the OldDot JS code). This field is sent to Onyx by the API in thepolicy_
collection, which breaks these fairly newly established Onyx guidelines:Solution
Update App code to stop accessing
policy.submitsTo
and instead implementPolicyUtils.getSubmitTo
, which should match the PHP server implementation:The text was updated successfully, but these errors were encountered: