You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/07/11 21:16:00 UTC
[jira] [Created] (SPARK-28354) Use JIRA user name instead of JIRA
user key
Dongjoon Hyun created SPARK-28354:
-------------------------------------
Summary: 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
`dev/merge_spark_pr.py` script always fail for some users (e.g. [~yumwang]) because they have different `name` and `key`.
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