This also loosens the restrictions on what can be flagged and how
frequently. Previously pending posts could not be flagged, which
was not in line with our current flagging system purpose.
Most of this was related to use of BigQuery for post versions and
generating reports and bulk reverts, but elasticsearch can easily
handle returning 5k results in a few ms, so this isn't a big deal.
There is also some pubsub stuff which has been gone for a while now.
I don't remember what it was being used for, but it is likely reporting
items, so not an immediate priority.
This replaces the old simple versioning helper that existed on
e621. The implementaiton is roughly the same but has been updated
to use newer rails methods.
No, it's not very flexible, but it didn't need to be.
Makes index job unique to account for changes to update triggering.
Fixes instances of mixed SQL and ES searches with tag_matches.
Adds utility methods for exists? and count_only ES searches.
Adds comment_bumped_at for comments page usage.
Adds random seeding capability.
Fixes random searches not working correctly.
Fixes status:active.
In order to prevent unbounded term generation, add back tag count
limit to the query generator.
Updated defaults to reflect the great increase in speed.
Allow users to see and click on deleted posts without showing
the actual post preview. This roughly equates to how deleted
posts work on E621 at present.
This also resulted in some clean up and bug fixing surrounding
determining if a post should be visible or not. Previously this
was limited to user level(for ugrade incentive), safe mode, and
if the post was banned. Now it's only safe mode and if the post
is deleted.
Future work items:
- Remove display deleted toggle and support code, as it is broken.
The distinction between file deletion and banning is pretty weird
and there are a bunch of edge cases that make this not worth
trying to maintain a distinction.
Left in the automatic implication code on banned artists because
it looked useful for automating some of the basic tasks that are
done surrounding DNP artists.
Set up support for moving deleted files to a protected location
and support for emitting urls with authorization parameters to
permit access to them.
This closes#14