-
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-03-29] [$250] [Wave Collect] [Workflows] Clean up the isAutoApprovalEnabled flag #38445
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01573ee41af24d66fa |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clean up the What is the root cause of that problem?We use the
however this flag is not needed anymore since its value is not coming from the backend. We should however use a comparison to the What changes do you think we should make in order to solve the problem?
isActive: policy?.approvalMode === CONST.POLICY.APPROVAL_MODE.BASIC, POCScreen.Recording.2024-03-17.at.2.35.11.AM.mov |
@mountiny confirming we're not looking for volunteers here and we're done? |
We are not, @abzokhattab sorry, I marked this as internal as there might be some changes required in the backend, I will handle this one |
No problem, @mountiny go ahead |
PR is in review |
Current assignee @hoangzinh is eligible for the External assigner, not assigning anyone new. |
Upwork job price has been updated to $250 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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-03-29. 🎊 For reference, here are some details about the assignees on this issue:
|
Triggered auto assignment to @slafortune ( |
$250 to @hoangzinh for this this one |
No need for the checklist here |
Invite sent here @hoangzinh |
Accepted. Thanks @slafortune |
Paid |
Problem
We use the
isAutoApprovalEnabled
flag to decide if the approval toggle should be on or off in Workflows pageApp/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Line 137 in f84219f
We should however use a comparison to the
policy.approvalMode
as we do here to define if the auto approval is enabled. It is true when the approval mode is set to basic.The isAutoApprovalEnabled property is not passed from the backend, it should be removed for now.
This property exists, but its used in different way and we can bring it to the app later.
Solution
Use the
approvalMode
property to determine the toggle stateUpwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @slafortuneThe text was updated successfully, but these errors were encountered: