Commit Graph

147 Commits

Author SHA1 Message Date
Ben Harris aed4bf903c tilde.news customizations 2024-01-16 14:04:51 -05:00
Peter Bhat Harkins 2332d28022 bump gems except commonmarker (#1234)
lot of irritating churn out of standardrb here
2023-12-28 19:26:56 -06:00
Peter Bhat Harkins 8722f4229c missing migration in schema; standardrb generated file 2023-11-22 11:17:57 -06:00
Joan Nyambura c8692b1ea8 Remove unnecessary conditional and schema changes 2023-10-24 11:22:14 +03:00
Peter Bhat Harkins 81a36c837d search: operator for title searching 2023-09-23 15:42:09 -05:00
Peter Bhat Harkins 15493de906 fix query - tables join on their id PK 2023-09-13 20:20:42 -05:00
Peter Bhat Harkins d11b222a50 parse search queries 2023-09-13 10:24:05 -05:00
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