-
Notifications
You must be signed in to change notification settings - Fork 54
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
TDL-19198: Provide description of groups in README #88
TDL-19198: Provide description of groups in README #88
Conversation
@@ -67,6 +69,8 @@ This tap: | |||
can be found. For example, it might look like: | |||
`https://mycompany.atlassian.net`. | |||
|
|||
The `groups` specifies groups for users stream. `groups` is optional parameter. Default value of groups is ["jira-administrators", "jira-software-users", "jira-core-users", "jira-users", "site-admin", "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.
I think the default value is as per below.
Lines 230 to 234 in 41be597
groups = ["jira-administrators", | |
"jira-software-users", | |
"jira-core-users", | |
"jira-users", | |
"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.
Yea, I have updated the groups default values as shown in streams.py
README.md
Outdated
@@ -41,7 +41,8 @@ This tap: | |||
"password": "your-jira-password", | |||
"base_url": "https://your-jira-domain", | |||
"user_agent": "<user-agent>", | |||
"request_timeout": 300 | |||
"request_timeout": 300, | |||
"groups": "jira-administrators,site-admins,jira-software-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.
"groups": "jira-administrators,site-admins,jira-software-users" | |
"groups": "jira-administrators, site-admins, jira-software-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.
As shown in the code, when we split the 'groups' value, we are not removing extra spaces. So if we are giving 'groups' value with space as shown in the above suggestion, we are getting a list ["jira-administrators", " site-admins", " jira-software-users"]
instead of ["jira-administrators", "site-admins", "jira-software-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.
I think extra space should not fail the tap. Ideally after a split we should strip() the leading spaces.
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.
In the existing code, we are not using strip, but this suggestion is right, we should ignore extra spaces, so added strip() and also updated README as per code change.
README.md
Outdated
@@ -56,7 +57,8 @@ This tap: | |||
"cloud_id": "<cloud-id>", | |||
"refresh_token": "<refresh-token>", | |||
"start_date": "<i.e. 2017-12-04T19:19:32Z>", | |||
"request_timeout": 300 | |||
"request_timeout": 300, | |||
"groups": "jira-administrators,site-admins,jira-software-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.
"groups": "jira-administrators,site-admins,jira-software-users" | |
"groups": "jira-administrators, site-admins, jira-software-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.
As discussed above we can not pass 'groups' value with extra spaces.
README.md
Outdated
@@ -67,6 +69,8 @@ This tap: | |||
can be found. For example, it might look like: | |||
`https://mycompany.atlassian.net`. | |||
|
|||
The `groups` specifies groups for users stream. `groups` is optional parameter. Default value of groups is `["jira-administrators", "jira-software-users", "jira-core-users", "jira-users", "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.
The `groups` specifies groups for users stream. `groups` is optional parameter. Default value of groups is `["jira-administrators", "jira-software-users", "jira-core-users", "jira-users", "users"]`. | |
The `groups` specifies groups for users stream. It is an optional parameter. Default value is `["jira-administrators", "jira-software-users", "jira-core-users", "jira-users", "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.
Yeah, it looks good, I have updated the comment as per suggestion.
Description of change
Manual QA steps
Risks
Rollback steps