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
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
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
Mason Gup
8f8d1f0cc5
Merge branch 'master' into feature/add-tag-management
2018-01-31 23:43:51 -05:00
Peter Bhat Harkins
b9efe88dec
vote reason fix
2018-01-31 22:13:10 -06:00
Peter Bhat Harkins
c9168f0f89
display votes on replies pages
2018-01-31 21:13:16 -06:00
Mason Gup
cbd484ee94
Merge branch 'master' into feature/add-tag-management
2018-01-31 20:16:33 -05:00
Peter Bhat Harkins
826c88f157
fix mysql '0000-00-00 00:00:00' default on hats.doffed_at
...
Fixes #451
2018-01-31 15:49:02 -06:00
Peter Bhat Harkins
694b6cbc91
fix replies to stories
2018-01-31 11:07:53 -06:00
Peter Bhat Harkins
804abf71a5
flip boolean
2018-01-31 10:39:56 -06:00
Peter Bhat Harkins
3f17043e2e
tidy whitespace; prod charset to schema
2018-01-31 07:56:15 -06:00
Hunter Madison
dd42cca880
Show story and comment replies, tracking unread ones
2018-01-31 07:43:07 -06:00
Peter Bhat Harkins
0217ca7f5e
add hat doffing to deactivate hats
2018-01-24 10:22:18 -06:00
Mason Gup
8fd2af1469
Merge branch 'master' into feature/add-tag-management
2017-10-29 23:19:05 -04:00
Peter Bhat Harkins
bfc8cc0c9d
log moderator hat usage
2017-10-25 04:31:53 -04:00
Mason Gup
bf340c3aba
Drop tag name default
2017-10-18 00:02:33 -04:00
joshua stein
53aac5f807
schema: sync with production
2017-07-13 16:00:08 -05:00
joshua stein
10cde11f83
Search: drop sphinx for searching, use sql fulltext
...
Sphinx's searchd is very buggy, often crashing on rebuilding its
indexes, not starting up, or just spinning at 100% CPU.
It is also a big external dependency that might not be available on
other hosting platforms.
This removes the ability to search both comments and stories at
once, though I don't know how useful that was anyway. We gain
boolean searching and the ability to more carefully craft queries
using particular keywords (in the future) like "user:blah" or
"tag:blah" to narrow things down.
2017-06-07 15:59:54 -05:00
joshua stein
8ed6de3185
add an index on stories.user_id, needed by /newest/:user
2017-06-07 10:33:40 -05:00
joshua stein
37510f70dc
part 2, drop comments.is_dragon
2017-05-22 09:42:23 -05:00
joshua stein
ecb93280c2
index all the things
2017-04-13 11:27:54 -05:00
joshua stein
3c908f7487
update to rails 4.2.8
2017-03-18 21:20:40 -05:00
joshua stein
10e9dac74e
step two of settings migration: delete old columns
...
closes #245
2017-02-25 14:25:59 -06:00
Michael Bernstein
2641a9bb40
Change migration value in Schema ( #339 )
2017-01-30 10:15:42 -06:00
joshua stein
56d3749341
here be dragons
2017-01-19 13:51:43 -06:00
joshua stein
8fbdc02078
step one of moving user settings to a single column
...
see #245
2017-01-19 12:02:51 -06:00
Marc Ignacio
e58a8c843b
Fix spec failure due to leaky ActiveRecord abstraction of booleans ( #311 )
2016-07-05 12:04:02 -05:00
joshua stein
a5d880f431
unbreak schema after aa0ffeb3
...
closes #310
2016-07-05 09:59:14 -05:00
nyanpasu
aa0ffeb37b
Allow admin/moderator to disable user from inviting
2016-05-16 02:40:46 +08:00
joshua stein
a5928b675d
implement hats list and request/approval system
...
closes #281
2016-04-06 13:19:46 -05:00
joshua stein
6b636ac8c5
add setting to show threads on a user's submitted stories in 'Your Threads'
...
closes #231
2015-12-07 12:27:09 -06:00
joshua stein
8b4dec5746
sync db schema
2015-12-03 14:57:11 -06:00
joshua stein
e940601a2f
start on automated story title and tagging suggestions
...
Rather than keep "poorly titled" and "poorly tagged" as reasons for
flagging, make the user do the work of suggesting new ones.
At some point, suggested taggings will flip to real taggings once
they reach a certain count (to be determined later). This also has
to take into account tagging sets that don't contain current tags,
for when they need to be removed.
For titles, I'm not yet sure how to handle this in an automated
fashion except for the (probably rare) case of multiple users
submitting the same exact thing, but at least collect them for now.
Issue #207
2015-10-14 20:32:24 -05:00
joshua stein
81b3be6165
add setting to show inline story previews in story list
...
Closes #148
2015-07-30 17:56:09 -05:00
joshua stein
0d61e0cf68
add "i am the author of this" checkbox for stories
...
Highlights username in a different color and says "authored by"
instead of just "by".
Move html class printing into a method in Story to use in the future
for friends, admin posts, etc.
Closes #171
2015-07-30 17:15:48 -05:00
joshua stein
a31ecc80ac
change tags.hotness_mod to float
2015-07-24 00:51:11 -05:00
joshua stein
d286eab325
add option to show user avatars on stories and comments
...
just because
2015-03-12 23:23:15 -05:00