-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat(portal): new addGroupUsers() function #585
Conversation
AFFECTS PACKAGES: @esri/arcgis-rest-portal ISSUES CLOSED: #584
Codecov Report
@@ Coverage Diff @@
## master #585 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 93 95 +2
Lines 1366 1407 +41
Branches 245 248 +3
=====================================
+ Hits 1366 1407 +41
Continue to review full report at Codecov.
|
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 looks great @haoliangyu!
One small change.
return request(url, requestOptions).catch(error => { | ||
return { | ||
// the request should either add users or admins, not both | ||
notAdded: requestOptions.users || requestOptions.admins, |
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.
I don't think we should populate notAdded
when there are errors. We don't want them to get mixed up w/ any that were not added b/c they were already in the group.
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.
I have updated the code
resolve #584