-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Clean up policy actions #6080
Clean up policy actions #6080
Conversation
@@ -27,7 +27,7 @@ import { | |||
} from '../../../components/Icon/Expensicons'; | |||
import Permissions from '../../../libs/Permissions'; | |||
import ONYXKEYS from '../../../ONYXKEYS'; | |||
import {create, isAdminOfFreePolicy} from '../../../libs/actions/Policy'; | |||
import * as Policy from '../../../libs/actions/Policy'; |
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.
NAB: Why *
and not just replace create
with createAndNavigate
?
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.
More context here: #5984 (comment)
Basically we are going to change these all eventually so I got to this one now.
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.
Looks good and tests well. Had one NAB question that I'll wait on before merging.
✋ 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 @roryabraham in version: 1.1.13-3 🚀
|
cc @roryabraham Longer term we probably want to solve the issue of why we can't get policies and create them at the same time, but this feels like a logical refactor. I think by splitting these out into their own methods things feel more intentional - even if the behavior is exactly the same for now.
Details
Clean up Policy actions
Fixed Issues
$ #6153
Tests / QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android