David Taylor
b0fda61a8e
DEV: Apply syntax_tree formatting to `db/*`
2023-01-09 11:59:41 +00:00
Penar Musaraj
a571efba35
FIX: Rename deprecated icons, allow custom icons in badges
...
- adds a migration renaming FA4 icon names in badges
- allows all icons to be used in badges (previously was limited to icons prefixed with fa-)
- renames remaining FA 4.7 icons equivalents
2019-07-16 11:13:44 -04:00
Sam Saffron
30990006a9
DEV: enable frozen string literal on all files
...
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.
Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Gerhard Schlager
d82628987a
FIX: Badges appeared in wrong badge group
...
Some badges always appeared in the "Other" group (the default group) and some badges were always moved back into the original group during seeding.
Now badges are either in the correct, seeded group or stay in a custom group if the admin moved the badge into a custom group.
2019-01-21 21:09:33 +01:00
Bianca Nenciu
b69652278f
FEATURE: Add Wiki Editor badge. ( #6511 )
2018-10-19 15:30:27 +02:00
Sam
5f64fd0a21
DEV: remove exec_sql and replace with mini_sql
...
Introduce new patterns for direct sql that are safe and fast.
MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API
- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder
See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
Régis Hanol
8a935a4b5f
FEATURE: new badges when visiting the forum for 10, 100 and 365 consecutive days
2017-09-06 22:35:08 +02:00
Guo Xiang Tan
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
Robin Ward
f05f1a24d3
Change Anniversary badge to be multiple grant, once per year
2017-04-28 14:22:54 -04:00
Robin Ward
fc7fa4c0ad
Rename "Rookie of the Month" to "New User of the Month"
2017-03-31 16:30:30 -04:00
Robin Ward
893e93dfbe
New badge, Rookie of the Month, for two new high quality users.
2017-03-31 15:06:31 -04:00
Régis Hanol
f51e3b2131
FIX: should not be able to rename a system badge
2017-02-20 14:35:05 +01:00
Régis Hanol
e55e2aff94
FIX: FirstReplyByEmail badge wasn't granted
...
DEPRECATED: PostProcess badge trigger
2016-08-10 19:24:01 +02:00
Régis Hanol
e97e0bb311
FEATURE: new FirstReplyByEmail bronze badge
2016-06-13 15:37:14 +02:00
Robin Ward
0396b14b70
FEATURE: New "First Onebox" badge
2016-04-12 15:31:14 -04:00
Robin Ward
5059ee04b9
Remove `UserFirst` table and grant Emoji badge directly
2016-04-07 12:31:41 -04:00
Robin Ward
5866f0df18
Remove UserFirst for mention since it can be retrieved elsewhere
2016-04-06 14:01:37 -04:00
Robin Ward
50fbda1ab7
FIX: Not sure why the default group didn't work
2016-04-05 15:37:41 -04:00
Robin Ward
c30d327b77
FEATURE: Two new badges - First Emoji and First Mention
2016-04-05 15:17:41 -04:00
Robin Ward
5f54dd908a
Recategorize link badges
2016-03-25 12:21:24 -04:00
Robin Ward
56c13856dd
Move Editor and First Flag to "Getting Started" category
2016-03-25 12:19:12 -04:00
Robin Ward
717b54d64b
Adjust badges to match descriptions cc @coding-horror
2016-03-22 10:51:42 -04:00
Robin Ward
b0e23c9f56
FIX: Thank you badge had incorrect criteria
2016-03-17 13:03:47 -04:00
Robin Ward
d9080b9d69
Rename "My Cup Runneth Over" to "Higher Love". Winwood!
2016-03-17 11:42:41 -04:00
Robin Ward
0346efd0d5
FIX: New badges ended up with no grouping
2016-03-16 14:44:42 -04:00
Robin Ward
7c384fc740
Adjusted "Gives Back" badge
2016-03-16 13:48:14 -04:00
Robin Ward
35c2339c2a
Updated badges for receiving likes
2016-03-16 13:03:17 -04:00
Robin Ward
25c26dcd51
Create rarity levels for using up all likes
2016-03-16 12:31:26 -04:00
Robin Ward
06591022fe
FEATURE: Generous badge
2016-03-15 16:08:29 -04:00
Robin Ward
cfe18c3f5b
FEATURE: Gives Back badge
2016-03-15 16:08:29 -04:00
Robin Ward
e60da531ba
FEATURE: Admired Badge for high like ratio
2016-03-15 16:08:29 -04:00
Régis Hanol
d96531b163
FEATURE: bronze/silver/gold badges for popular links
2015-08-27 18:52:31 +02:00
Sam
1db92e6027
FEATURE: make it easier to get invite badges
...
Campaigner, 3*TL1 users
Champion, 5*TL2 users
2015-06-15 14:30:42 +10:00
Sam
2955507a57
FEATURE: badges for inviting users
...
First invite = Promoter
3 TL2 = Campaigner
10 TL3 = Champion
2015-05-15 12:04:41 +10:00
Robin Ward
aef7bf8b31
FIX: It should be `BadgeType::Silver`
2015-02-19 15:39:49 -05:00
Sam
1aa1e30e88
anniversary is silver
...
added copy
2015-02-19 11:17:30 +11:00
Régis Hanol
0fca0e9758
FEATURE: 1 year anniversary badge
2015-02-18 19:30:07 +01:00
Sam
72a28aeb7c
FEATURE: always show highest trust level badge in card
...
FEATURE: fa-user icon for trust level badges
2014-10-02 16:08:31 +10:00
Sam
43e132d5a6
FEATURE: sharing badges (nice share, good share, great share)
...
FIX: bad translation
2014-09-11 13:10:37 +10:00
Sam
7f3797b635
FEATURE: Nice Topic, Good Topic and Great Topic badges
...
Note we will revoke all old badges post badges that went to post #1
and instead get topic badges
2014-09-11 12:36:37 +10:00
Sam
96ac2f63cd
Rename trust level badges
2014-09-05 16:38:29 +10:00
Sam
b8d7fb8735
FIX: first flag should not auto revoke
2014-08-10 08:41:23 +10:00
Sam
0b01310c84
FIX: system badges where created under id 100
2014-08-06 10:51:39 +10:00
Sam
81c0fe2894
FIX: Don't trigger share badge (only run daily)
...
too expensive, wrong trigger anyway.
2014-08-01 12:48:11 +10:00
Sam
ebf385aedc
FEATURE: allow title overridable
2014-07-30 08:46:59 +10:00
Sam
0ab456b647
FIX: allow position to be changed post seed
2014-07-27 11:33:33 +10:00
Sam
782773f774
FIX: kick system badges out of other
2014-07-27 11:30:55 +10:00
Sam
0f9678fe49
FIX: faster update of all badges
...
Introduced badge triggers, introduced concept of badge that happens due to a post but has the post hidden
Delta badge grant happens once a minute, backed by redis
2014-07-23 11:46:07 +10:00
Sam
007310c4a2
Wire up triggers
2014-07-23 11:43:17 +10:00
Sam
4feedecce4
BUGFIX: orphan badge groupings
2014-07-18 15:55:42 +10:00