Commit Graph

57 Commits

Author SHA1 Message Date
evazion
6a984de3d5 views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
2020-01-25 01:52:18 -06:00
evazion
ec8c427ef3 reports/uploads: remove upload report page. 2020-01-13 12:58:20 -06:00
evazion
3fce17d8ae upload tags report: fix incorrect column name. 2020-01-12 00:42:23 -06:00
evazion
abacc8ebb1 views: convert helpers to partials. 2020-01-11 20:01:14 -06:00
evazion
e8efe1107f Remove targeted down voting report.
Remove the targeted down voting report. This report hasn't been working
for a while. The /post_votes page is a better way to investigate
downvoting activity anyway.
2020-01-07 11:58:45 -06:00
evazion
e9b99408f7 /reports/upload_tags: convert to table builder. 2020-01-07 11:21:15 -06:00
evazion
1341dbb262 Remove post changes report.
This was a mod-only report that used Google BigQuery to search post
versions by tag. 2b4ee0ee8 allows all users to search post versions by
tag, so this report is no longer necessary.
2019-09-27 21:12:53 -05:00
evazion
59b277ead1 users: drop id_to_name, name_to_id caching.
Changes:

* Drop Users.id_to_name.
* Don't cache Users.name_to_id.
* Replace calls to name_to_id with find_by_name when possible.
* Don't autodefine creator_name in belongs_to_creator.
* Don't autodefine updater_name in belongs_to_updater.
* Instead manually define creator_name / updater_name only on models that need
  to return these fields in the api.

id_to_name was cached to reduce the impact of N+1 query patterns in
certain places, especially in api responses that return creator_name /
updater_name fields. But it still meant we were doing N calls to
memcache. Using `includes` to prefetch users avoids this N+1 pattern.

name_to_id had no need be cached, it was never used in any performance-
sensitive contexts.

Avoiding caching also avoids the need to keep these caches consistent.
2019-08-18 11:24:42 -05:00
evazion
cab36c307f upload tags report: clean up tag list rendering. 2019-08-10 23:49:36 -05:00
evazion
5c4a310589 Fix #3975: Upload tags report is broken. 2018-11-06 18:18:18 -06:00
Albert Yi
718e641f51 remove similar users report 2018-08-03 17:40:00 -07:00
BrokenEagle
31d3215dad Fix page controller and action IDs
- Also fix affected CSS and JS files
2017-12-28 10:20:12 -08:00
r888888888
13f7d7e66d add targeted post down voting report, add delayed job plugin to disable statement timeout 2017-10-10 12:56:57 -07:00
evazion
68bf355542 upload tags report: add blacklist controls (#3121). 2017-07-05 19:40:48 -05:00
evazion
86b1298662 /reports/upload_tags: change page wrapper id to #c-upload-tags-report. 2017-05-20 12:09:37 -05:00
evazion
765fbac11d /reports/upload_tags: show thumbnails instead of post ids. 2017-04-03 15:03:26 -07:00
r888888888
7f22baa1bc refactor upload tags report 2017-02-28 15:34:40 -08:00
r888888888
f4d9f76646 remove contributors report 2017-02-21 13:12:43 -08:00
r888888888
ce20a5b36a remove janitor trial report 2017-02-21 13:10:38 -08:00
r888888888
359f48d871 remove user promotions report 2017-02-21 13:09:43 -08:00
evazion
d79f1aac96 Move stupidtable.js into application.js.
Fixes this javascript error:

    Uncaught TypeError: $(...).stupidtable is not a function

on these pages:

* http://safebooru.donmai.us/reports/user_promotions
* http://safebooru.donmai.us/reports/contributors
* http://safebooru.donmai.us/reports/janitor_trials

...due to stupidtable.js not loading.
2016-12-20 02:31:05 -06:00
Albert Yi
af42f52d4a fix references to report_server 2016-12-01 12:34:57 -08:00
r888888888
e539fdecff implement post change report 2016-09-07 14:35:44 -07:00
r888888888
310538dd71 implement post version search report in danbooru (probably broken) 2016-09-06 18:02:58 -07:00
Type-kun
a7d553038f Add "disable-with" to most edit forms (should fix #2264) 2016-08-30 22:54:38 +05:00
r888888888
2ce86ecb8b add support for post version queries 2016-06-21 13:14:27 -07:00
r888888888
4045d2074c correct text 2016-01-18 14:50:47 -08:00
r888888888
01ad7f6745 reduce fav requirement to 300, show score in similar user report 2016-01-13 17:38:48 -08:00
r888888888
f3071e66ec add user similarity report 2015-12-30 18:13:59 -08:00
r888888888
3695ad42b3 enable reportbooru integration for upload reports 2015-12-16 15:55:38 -08:00
r888888888
09ca8df6b3 change user deletion scope from 120 days to 60 days 2015-10-19 14:33:05 -07:00
r888888888
ef73979e7a correct description in user promotion report 2015-09-23 14:09:33 -07:00
r888888888
f815d718e1 fixes #2521: User promotion report shows remaining limit instead of limit 2015-09-22 14:10:29 -07:00
r888888888
486cdcb039 fixes #2517: Janitor trial report broken 2015-09-17 11:35:50 -07:00
r888888888
872c20e8d2 include upload limit in user promotion report 2015-09-14 15:42:29 -07:00
r888888888
49cfa0e6f5 add age to janitor trial report 2015-09-11 15:46:24 -07:00
r888888888
e06d8a3cc7 report negative score chance on janitor trial report 2015-08-20 14:23:45 -07:00
r888888888
d44dd09a88 revise janitor trial report 2015-08-20 14:11:46 -07:00
r888888888
23dfc455d5 simplify contributor report 2015-08-07 17:29:33 -07:00
r888888888
e37775afc2 fixes #2480: Report for contributors 2015-08-07 17:23:39 -07:00
Toks
875cffa3fe limit:300 -> limit:200
For posts, limits above 200 don't actually work. They get capped to 200
anyway.
2015-07-07 11:11:00 -04:00
r888888888
29a7b51fcb add additional search links in reports, fix order:random for post count=0 2015-06-18 17:17:24 -07:00
r888888888
5923d869aa include mods+admins in janitor report for comparison 2015-06-18 12:30:28 -07:00
r888888888
f29918c097 fix error 2015-06-18 12:19:39 -07:00
r888888888
d44495ff9e improve janitor/promotion reports, fix bug with forum post counts 2015-06-18 12:04:19 -07:00
r888888888
05dcb43fc2 fix ordering (again) 2015-06-16 17:56:45 -07:00
r888888888
cb76da624d fix promotion report ordering 2015-06-16 17:53:52 -07:00
r888888888
b845d61db3 add quartile+median scores to promotion report 2015-06-16 17:48:49 -07:00
r888888888
b769f996be implement report 2015-06-16 17:42:04 -07:00
r888888888
e86c8ceb2a add deletion column to promotion report 2014-07-08 10:21:07 -07:00