-
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
Remove the usage of isApprovalModeEnabled #38545
Conversation
@hoangzinh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, it seems like we're still discussing if we need to remove the isAutoApprovalEnabled
param from the API call
/** Whether the auto approval is enabled */ | ||
isAutoApprovalEnabled?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property is right now, never returned from the backend to the client so we can remove it from the type
value: JSON.stringify({ | ||
...value, | ||
// This property should now be set to false for all Collect policies | ||
isAutoApprovalEnabled: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed this and we actually want the autoapproval to be off for Collect policies
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-03-19.at.18.17.09.android.movAndroid: mWeb ChromeScreen.Recording.2024-03-19.at.18.01.11.android.chrome.moviOS: NativeScreen.Recording.2024-03-19.at.18.20.04.ios.moviOS: mWeb SafariScreen.Recording.2024-03-19.at.18.25.12.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-03-19.at.17.51.33.web.movMacOS: DesktopScreen.Recording.2024-03-19.at.17.54.39.desktop.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.55-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.55-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.55-3 🚀
|
Details
The
isApprovalModeEnabled
is not a property we would use to determine if the Approval toggle in Workflows should be on, that should be the approvalMode. The toggle is on when the approval mode is BASICFixed Issues
$ #38445
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Screen.Recording.2024-03-18.at.23.00.46.mp4
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop