Skip to content
Snippets Groups Projects
Commit f09394cf authored by Arturo Herrero's avatar Arturo Herrero
Browse files

Remove Jira Issue username

We are not going to use the username because Jira API doesn't provide
`name` in the case of Jira Cloud.

This partially reverts 63082f24.
parent d0f48240
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -79,7 +79,6 @@ class IssueEntity < Grape::Entity
def jira_user(user)
{
name: user['displayName'],
username: user['name'],
web_url: jira_web_url(user),
avatar_url: user['avatarUrls']['48x48']
}
Loading
Loading
Loading
Loading
@@ -87,13 +87,11 @@
],
author: hash_including(
name: 'reporter',
username: 'reporter@reporter.com',
avatar_url: 'http://reporter.avatar'
),
assignees: [
hash_including(
name: 'assignee',
username: 'assignee@assignee.com',
avatar_url: 'http://assignee.avatar'
)
],
Loading
Loading
@@ -103,11 +101,10 @@
comments: [
hash_including(
id: '10022',
author: hash_including({
author: hash_including(
name: 'comment_author',
username: 'comment@author.com',
avatar_url: 'http://comment_author.avatar'
}),
),
body_html: "<p dir=\"auto\">Comment</p>",
created_at: '2020-06-25T15:50:00.000+0000'.to_datetime.utc,
updated_at: '2020-06-25T15:51:00.000+0000'.to_datetime.utc
Loading
Loading
Loading
Loading
@@ -61,13 +61,11 @@
],
author: hash_including(
name: 'reporter',
username: 'reporter@reporter.com',
avatar_url: 'http://reporter.avatar'
),
assignees: [
hash_including(
name: 'assignee',
username: 'assignee@assignee.com',
avatar_url: 'http://assignee.avatar'
)
],
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment