You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/11 21:18:53 UTC

[GitHub] [spark] dongjoon-hyun opened a new pull request #25120: [SPARK-28354][INFRA] Use JIRA user name instead of JIRA user key

dongjoon-hyun opened a new pull request #25120: [SPARK-28354][INFRA] Use JIRA user name instead of JIRA user key
URL: https://github.com/apache/spark/pull/25120
 
 
   ## What changes were proposed in this pull request?
   
   `dev/merge_spark_pr.py` script always fail for some users because they have different `name` and `key`.
   
   - https://issues.apache.org/jira/rest/api/2/user?username=yumwang
   
   JIRA Client expects `name`, but we are using `key`. This PR fixes it.
   ```
       def assign_issue(self, issue, assignee):
           """Assign an issue to a user. None will set it to unassigned. -1 will set it to Automatic.
   
           :param issue: the issue ID or key to assign
           :param assignee: the user to assign the issue to
   
           :type issue: int or str
           :type assignee: str
   
           :rtype: bool
           """
           url = self._options['server'] + \
               '/rest/api/latest/issue/' + str(issue) + '/assignee'
           payload = {'name': assignee}
           r = self._session.put(
               url, data=json.dumps(payload))
           raise_on_error(r)
           return True
   ```
   
   ## How was this patch tested?
   
   Manual.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org