-
Notifications
You must be signed in to change notification settings - Fork 18
Conversation
This modification makes sure that all requests to do association/dissociation of roles use the right api key for the role. This will break tests because currently the code doesn't use the right api key for role modification
The data to how to map a role to various things was spread out. This PR moves them all into one object. Also, with moving into one object, we have the apiKey field. This field is now used
1fa6728
to
0ed527b
Compare
@@ -164,6 +150,7 @@ export class UserStore extends BaseStore { | |||
const orgPermissionsReq = cfApi.deleteOrgUserPermissions( | |||
action.userGuid, | |||
action.orgGuid, | |||
'users', |
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.
@jcscottiii This might be a duplicated line
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.
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.
it's meant to be duplicated but let me re-work it so it's more clear as to why it's like that.
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.
Got it
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 overall.
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 with exception to the one comment
@jcscottiii Merged because it does what it is supposed to do. |
First commit: Fix functional test server to check for correct roles
This modification makes sure that all requests to do
association/dissociation of roles use the right api key for the role.
This will break tests because currently the code doesn't use the right
api key for role modification but will be fixed in following commits.
Other commits: fixing the api calls and tests