use owner login as a fallback for revoke card (can be different display name than rep owner)

This commit is contained in:
Rob Culliton 2018-05-17 11:03:31 -04:00
parent 92a012c2ed
commit a9282f503a
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
3 changed files with 3 additions and 1 deletions

View File

@ -521,6 +521,7 @@ SELECT
r.owner AS repo_owner, r.owner AS repo_owner,
r.owner_avatar_url AS repo_owner_avatar_url, r.owner_avatar_url AS repo_owner_avatar_url,
o.address AS owner_address, o.address AS owner_address,
o.login AS owner_login,
u.address AS payout_address u.address AS payout_address
FROM users o, repositories r, issues i LEFT OUTER JOIN users u ON u.login = i.winner_login FROM users o, repositories r, issues i LEFT OUTER JOIN users u ON u.login = i.winner_login
WHERE WHERE

View File

@ -76,6 +76,7 @@
:type :item-type :type :item-type
:repo_name :repo-name :repo_name :repo-name
:repo_owner :repo-owner :repo_owner :repo-owner
:owner_login :owner-login
:issue_number :issue-number :issue_number :issue-number
:issue_id :issue-id :issue_id :issue-id
:value_usd :value-usd :value_usd :value-usd

View File

@ -328,7 +328,7 @@
"Paid out to " [:span.pg-med.fw5 "@" (or (:winner_login bounty) "Paid out to " [:span.pg-med.fw5 "@" (or (:winner_login bounty)
;; use repo owner for revoked bounties ;; use repo owner for revoked bounties
;; where no winner login is set ;; where no winner login is set
(:repo-owner bounty))]]] (:owner-login bounty))]]]
[small-card-balances bounty]]]) [small-card-balances bounty]]])
(defn expandable-bounty-list [bounty-component bounties] (defn expandable-bounty-list [bounty-component bounties]