You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/07/12 09:45:00 UTC

[jira] [Resolved] (SPARK-28354) Use JIRA user name instead of JIRA user key

     [ https://issues.apache.org/jira/browse/SPARK-28354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-28354.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 25120
[https://github.com/apache/spark/pull/25120]

> Use JIRA user name instead of JIRA user key
> -------------------------------------------
>
>                 Key: SPARK-28354
>                 URL: https://issues.apache.org/jira/browse/SPARK-28354
>             Project: Spark
>          Issue Type: Bug
>          Components: Project Infra
>    Affects Versions: 2.3.4, 2.4.4, 3.0.0
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Major
>             Fix For: 3.0.0
>
>
> `dev/merge_spark_pr.py` script always fail for some users (e.g. [~yumwang]) 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`.
> {code}
>     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
> {code}
> This issue fixes it.
> {code}
> -                asf_jira.assign_issue(issue.key, assignee.key)
> +                asf_jira.assign_issue(issue.key, assignee.name)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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