Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
22973fb
feat: bounty claims
zcesur Jan 12, 2025
e3589d2
handle all kinds of ticket_refs
zcesur Jan 13, 2025
dcc7921
refactor controller for better control and o11y
zcesur Jan 13, 2025
de8ccb6
properly set ids
zcesur Jan 13, 2025
18d3cd5
update claim notif
zcesur Jan 13, 2025
abc648e
improve notif handling
zcesur Jan 13, 2025
0378891
restructure claim schema
zcesur Jan 13, 2025
fd16bef
add /claims/:id
zcesur Jan 13, 2025
a31a8af
render claim body
zcesur Jan 13, 2025
b238a22
improve claim page
zcesur Jan 13, 2025
b0e5563
simplify claim status values
zcesur Jan 16, 2025
0df6624
drop unique constraint on claims
zcesur Jan 16, 2025
6536c47
add group share on claims
zcesur Jan 16, 2025
02e79ab
update seeds to add shared claims
zcesur Jan 16, 2025
96243ed
update claim page to display co-authors
zcesur Jan 16, 2025
0c8f1b0
display paid amount on claim page
zcesur Jan 17, 2025
744269b
handle not found case
zcesur Jan 17, 2025
fd671f7
include all claims when calculating total paid
zcesur Jan 17, 2025
a86dc57
handle all types of claim payment statuses
zcesur Jan 17, 2025
edc17cd
update context in rendered markdown
zcesur Jan 17, 2025
bb67b0b
reorganize page
zcesur Jan 17, 2025
b5e0134
reorganize more
zcesur Jan 17, 2025
1410b54
update styling
zcesur Jan 17, 2025
e0efa61
impl create_payment_session
zcesur Jan 18, 2025
ee945e2
in midst of implementing reward_bounty
zcesur Jan 18, 2025
9b52008
handle splits
zcesur Jan 18, 2025
e1c0c60
miscellanea
zcesur Jan 18, 2025
d0fbaab
add reward bounty drawer
zcesur Jan 19, 2025
c17705a
finalize reward bounty form
zcesur Jan 20, 2025
9c62bbe
filter specific event actions
zcesur Jan 20, 2025
605b576
fix miscellanea
zcesur Jan 20, 2025
d2c4a76
update tests
zcesur Jan 20, 2025
dd270c5
add label on bounty created
zcesur Jan 20, 2025
d44f886
delete obsolete class
zcesur Jan 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ config :algora, Oban,
comment_consumers: 1,
github_og_image: 5,
notify_bounty: 1,
notify_tip_intent: 1
notify_tip_intent: 1,
notify_claim: 1
]

# Configures the mailer
Expand Down
15 changes: 9 additions & 6 deletions lib/algora/accounts/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,15 @@ defmodule Algora.Accounts do
end

def get_random_access_tokens(n) when is_integer(n) and n > 0 do
Identity
|> where([i], i.provider == "github" and not is_nil(i.provider_token))
|> order_by(fragment("RANDOM()"))
|> limit(^n)
|> select([i], i.provider_token)
|> Repo.all()
case Identity
|> where([i], i.provider == "github" and not is_nil(i.provider_token))
|> order_by(fragment("RANDOM()"))
|> limit(^n)
|> select([i], i.provider_token)
|> Repo.all() do
[""] -> []
tokens -> tokens
end
end

defp update_github_token(%User{} = user, new_token) do
Expand Down
Loading
Loading