5
3
mirror of https://github.com/tildeverse/lobsters synced 2024-06-23 16:57:04 +00:00
Commit Graph

140 Commits

Author SHA1 Message Date
Peter Bhat Harkins
c3f8625788 standardrb
I can't take Rubocop any more. Moving up to Ruby 3 forces us to update RuboCop,
and it comes with dozens of linters that I'd have to evaluate, none of which is
a marginal improvement. I'm done having opinions.
2023-09-08 15:39:50 -05:00
Peter Bhat Harkins
896ed1dd6b prod db.schema - updated charsets because 4 is bigger than 3 2023-09-01 19:14:23 -05:00
Peter Bhat Harkins
42d3ad4c30 find similar_stories by normalizing, not regexping
Big performance win to drop a query that regexps every URL in stories (400-650ms
in prod).

Fix #931
Relates to #932
2023-08-28 17:35:11 -05:00
Peter Bhat Harkins
0f9ddbfa69 materialize confidence_order column 2023-08-24 02:54:26 -05:00
Peter Bhat Harkins
b731305b94 tweak new domain controller - copy, var names, spec 2022-09-01 07:45:18 -05:00
Fat Shinobi
f10529e727
Domains: web editing, transparency in tracker banning (#1119) 2022-08-31 13:23:33 +00:00
Thomas Dziedzic
7a5fe3d7a9
Update to Rails 7.0 (#1100) 2022-07-06 14:01:46 +00:00
Peter Bhat Harkins
344e947374 Fix fake_data task; add CI test for it (#1087)
The test is overdue for how brittle fake_data.rb is, but as that's a slow
process that's not critical functionality, I only want it running on CI.
2022-06-01 05:57:18 -05:00
Peter Bhat Harkins
905526c815 run migration to match prod output 2022-05-19 00:52:27 -05:00
Peter Bhat Harkins
78deac1312
Merge branch 'master' into feature-917-category-editing 2022-05-19 05:39:33 +00:00
vincentrolfs
b90a2cb3c8
Make system messages deleteable (Fix #1049) 2022-04-20 13:09:37 +00:00
Peter Bhat Harkins
dba88ba6c8 Story: rename expired -> deleted to match usage 2022-02-08 22:20:41 -06:00
Peter Bhat Harkins
6d933465f8 fix current + old formatting in multiline mod_notes 2022-01-28 07:44:22 -06:00
Three Planets Software
67c67dd7de
Merge branch 'master' into feature-917-category-editing 2020-08-28 21:27:06 -04:00
Peter Bhat Harkins
5d89d5f8d3 fix comment flags default 2020-08-27 21:01:06 -05:00
Peter Bhat Harkins
7e85eb081d extract story text cache for fast migrations 2020-08-25 07:51:09 -05:00
Three Planets Software
c6bbb41e1e Add category_id to moderations table 2020-08-20 13:58:46 -04:00
Peter Bhat Harkins
13c5c359c2 update seeds for categories 2020-08-18 20:25:39 -05:00
Peter Bhat Harkins
17fa1cf848 categories: unique index on category 2020-08-11 08:36:02 -05:00
Peter Bhat Harkins
5341d7a067 add tag categories 2020-08-09 08:41:20 -05:00
Peter Bhat Harkins
20c1590753 memoize story/comment score/flags more efficiently 2020-08-08 16:40:28 -05:00
Peter Bhat Harkins
a2f6b60b47 fix indexing for newest comments 2020-06-07 14:35:15 -05:00
Peter Bhat Harkins
0105930afa bump rails; rubocop cleanup 2020-05-18 19:28:26 -05:00
Peter Bhat Harkins
9d5097ee70 make some tags unavabile to new users 2020-02-10 13:34:41 -06:00
Peter Bhat Harkins
630ace42f8 domain banning 2020-02-10 07:29:02 -06:00
Dmitry Shveikus
51d97aa359 Add validations into models (#745, #766) 2020-02-05 09:15:25 -06:00
Hunter Madison
f718da1820 break out Domain model from story, index story text (#797) 2020-01-22 09:33:21 -06:00
Amin Arria
717dfab3a3 Add not null constraint to columns with presence validator (#775)
* hat_requests: hat, link, comment
 * invitation_requests: name, email

Includes a whitespace fix to the definition of replying_comments in db/schema.rb
07b1580b44 (diff-28afa2cc5a1525843d06dec026729ac0)
2019-11-06 05:19:37 -08:00
Peter Bhat Harkins
a4af5a18f8 ReplyingComments: add tests, fix on deleted, less gas
Fixes showing replies for comments that were deleted or moderated.

Doesn't show replies if the parent commenter has flagged the replier in the
thread.
2019-05-29 09:04:58 -05:00
Abdallah Samman
028065f42f notify story author about comment replies
Merge #616
2019-05-04 12:31:53 -05:00
Chris Lloyd
0a484e38d1 Give seed admin enough activity to take all normal user actions 2019-01-16 08:14:01 -06:00
Peter Bhat Harkins
4870da7ec6 ok, it's come up at least four times now 2018-11-08 08:13:05 -06:00
Jason Schweier
18167b36a5 better handling of deleted stories + comments on user views 2018-11-07 08:28:50 -06:00
SengMing Tan
2234631f85 Add foreign keys
What do we want?
Referential integrity!
When do we want it?
1992!
2018-10-10 10:40:52 -05:00
SengMing Tan
7e43a0f599 Schema fix for unsigned bigints migration
Something went wrong in 12644b27 that it didn't update schema.rb to reflect the column types.
2018-10-10 08:26:47 -05:00
Peter Bhat Harkins
12644b2713 normalize ids as unsigned bigints
PR #548 revealed a lot of FKs that didn't match the ID they pointed at. This
noramlizes all of them to unsigned bigints and adds several missing 'not null'
constraints.
2018-09-28 22:07:46 -05:00
Peter Bhat Harkins
02ed8c3783 don't show replies on stories with negative scores 2018-08-30 06:44:39 -05:00
Peter Bhat Harkins
67b2fe381f mod notes for collaboration
Bunch of extraneous Rails 5.2 churn in db/schema.rb that I'm accepting here.
2018-07-11 10:51:23 -05:00
Peter Bhat Harkins
44d7126910 mod dashboard: list most-downvoted commenters by stddev 2018-07-10 11:37:28 -05:00
Peter Bhat Harkins
4abffe86d4 timestamp votes 2018-06-06 09:22:05 -05:00
Peter Bhat Harkins
84afc544fa invitations: track new_user 2018-05-10 08:48:55 -05:00
Peter Bhat Harkins
28d2f5fdab Merge branch 'used_invitations' of https://github.com/cosmicbuffalo/lobsters into cosmicbuffalo-used_invitations 2018-05-10 08:24:16 -05:00
Peter Bhat Harkins
1be9930768 add hats to private messages 2018-05-10 07:56:42 -05:00
Nick deLannoy
9d302fe461 removed local db name from schema.rb:253 2018-05-03 15:17:34 -05:00
Nick deLannoy
44ffa818f1 adds used_at datetime field to invitations 2018-05-03 15:17:34 -05:00
Peter Bhat Harkins
93fe0fdd74 link tags from modlog 2018-04-11 08:31:10 -05:00
Andrew Shu
aca21d18ba fix migration datetime value 2018-04-11 07:43:37 -05:00
Andrew Shu
3bbeec10c0 fix create_view in schema.rb
Scenic created this with the name of the prod database and broke Travis.
2018-04-11 07:37:54 -05:00
Peter Bhat Harkins
bb209e7697 respect comment deletion/moderation 2018-04-11 07:37:54 -05:00
Peter Bhat Harkins
67636f1c34 fix sql join of user's votes
An inner join only returns the comments the user has voted on (not useful for
the Unread page in particular). A left join on comment_id or user_id returns
duplicate rows (any 'outer apply' is nonstandard). So this just subselects it.
2018-04-11 07:37:54 -05:00