mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-20 13:18:22 +00:00
quickfix to deal with revoked bounties
This commit is contained in:
parent
c18076d14f
commit
e178be949d
@ -133,7 +133,10 @@
|
|||||||
[:h3.pg-book "Nothing to confirm"]
|
[:h3.pg-book "Nothing to confirm"]
|
||||||
[:p "Here you will see the merged claims awaiting payment confirmation"]]
|
[:p "Here you will see the merged claims awaiting payment confirmation"]]
|
||||||
(into [:div]
|
(into [:div]
|
||||||
(for [bounty bounties
|
;; FIXME we remove all bounties that Andy 'won' as this basically
|
||||||
|
;; has been our method for revocations. This needs to be cleaned up ASAP.
|
||||||
|
;; https://github.com/status-im/open-bounty/issues/284
|
||||||
|
(for [bounty (filter #(not= "andytudhope" (:winner_login %)) bounties)
|
||||||
;; Identifying the winning claim like this is a bit
|
;; Identifying the winning claim like this is a bit
|
||||||
;; imprecise if there have been two PRs for the same
|
;; imprecise if there have been two PRs for the same
|
||||||
;; bounty by the same contributor
|
;; bounty by the same contributor
|
||||||
@ -143,7 +146,7 @@
|
|||||||
(filter #(= (:user_login %)
|
(filter #(= (:user_login %)
|
||||||
(:winner_login bounty)))
|
(:winner_login bounty)))
|
||||||
util/assert-first)]]
|
util/assert-first)]]
|
||||||
^{:key (:issue_id bounty)}
|
^{:key (:issue-id bounty)}
|
||||||
[:div.mb3.br3.shadow-6.bg-white
|
[:div.mb3.br3.shadow-6.bg-white
|
||||||
[:div.pa3
|
[:div.pa3
|
||||||
[bounty-card bounty]]
|
[bounty-card bounty]]
|
||||||
@ -160,7 +163,7 @@
|
|||||||
(into [:div]
|
(into [:div]
|
||||||
(for [bounty bounties
|
(for [bounty bounties
|
||||||
:let [claims (:claims bounty)]]
|
:let [claims (:claims bounty)]]
|
||||||
^{:key (:issue_id bounty)}
|
^{:key (:issue-id bounty)}
|
||||||
[:div.mb3.shadow-6
|
[:div.mb3.shadow-6
|
||||||
[:div.pa3.bg-white.br3.br--top
|
[:div.pa3.bg-white.br3.br--top
|
||||||
[bounty-card bounty]
|
[bounty-card bounty]
|
||||||
@ -245,7 +248,7 @@
|
|||||||
[:div.cf.nl2.nr2
|
[:div.cf.nl2.nr2
|
||||||
(for [bounty (cond->> bounties
|
(for [bounty (cond->> bounties
|
||||||
(not @expanded?) (take 3))]
|
(not @expanded?) (take 3))]
|
||||||
^{:key (:issue_id bounty)}
|
^{:key (:issue-id bounty)}
|
||||||
[bounty-component bounty])]
|
[bounty-component bounty])]
|
||||||
(when (> (count bounties) 3)
|
(when (> (count bounties) 3)
|
||||||
[:div.tr
|
[:div.tr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user