Skip to content

Conversation

hillairet
Copy link

I want to create automatically a JIRA project with all the proper permissions so I need to add users and groups to specific roles and they will change everytime. So I added two separate functions to add separately a user or a group to a given role.

Two separate functions added to add separately a user or a group to a
given role.
@review-ninja
Copy link

ReviewNinja

else:
logging.warning(
'Failed to add user %s to role. Got code: %s' % (username, r.status_code))
return r.status_code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function returns bool or int as a result. I think that function result must be consistent - either all time returns bool or int.

@lechat
Copy link
Contributor

lechat commented Aug 10, 2016

There is a Role class in jira.resources that has similar functionality and it is better to add missing functionality to that class.

@hillairet
Copy link
Author

Ok that makes sense. I didn't see this method in the Role class.

@ssbarnea
Copy link
Member

Closing as it would duplicate existing functionality. Even worse it would not re-use the same code.

@ssbarnea ssbarnea closed this Nov 22, 2016
@starryknight64
Copy link

Where is the existing functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants