Commit Graph

51 Commits

Author SHA1 Message Date
evazion
88d14b30ed mass updates: log modaction after update successfully completes. 2017-05-28 11:56:44 -05:00
evazion
c1a8800bf8 mass updates: fix exception when moving saved searches. 2017-05-28 11:55:05 -05:00
evazion
d1d0fe9bc5 /moderator/dashboard: optimize sql queries
* Converts queries to use active record instead of raw sql. This ensures
  that user objects are loaded by rails in the join, so that we
  don't have to issue `User.find` calls to load users one-by-one.

* Use `.includes` to preload associations used in the view, to avoid
  additional N+1 query problems (primarily, calls to link_to_user
  also causing users to be loaded one-by-one).
2017-03-23 04:05:05 -05:00
evazion
2aa3f9ceba /moderator/dashboard: fix exception when PostArchive isn't enabled.
NoMethodError exception raised

    undefined method `each' for nil:NilClass
    app/views/moderator/dashboards/_activity_tag.html.erb:10:in `_app_views_moderator_dashboards__activity_tag_html_erb__4366063041301266690_47304449138520'
    app/views/moderator/dashboards/show.html.erb:10:in `_app_views_moderator_dashboards_show_html_erb___734721021521262965_47304462731220'
2017-03-21 17:17:19 -05:00
Albert Yi
fe9f31d871 remove timeout block
PostArchive isn't subject to statement timeouts so it isn't needed
2017-03-20 12:31:08 -07:00
evazion
8341752931 fixup! /moderator/dashboard: fix post version reference. 2017-03-19 17:02:39 -05:00
evazion
cebf592e20 /moderator/dashboard: fix post version reference. 2017-03-18 05:18:01 -05:00
r888888888
d9a26975ba fix tests 2017-03-15 16:08:47 -07:00
Albert Yi
5404c1d231 implement postarchive 2017-02-21 13:40:52 -08:00
r888888888
48e66cddbb fixes #2849: IP address search is broken 2017-01-20 15:37:26 -08:00
evazion
cf046eecbf Fix ip addr search tests. 2017-01-12 09:28:52 +00:00
evazion
26c193dfb3 Change post_appeals.creator_ip_addr from integer to inet.
The existing values are garbage, rails stored e.g. "87.126.98.245" as
"87.126.98.245".to_i => 87. The column is nulled to indicate these IPs
are unknown.
2017-01-12 09:28:21 +00:00
evazion
e8f71739be IpAddrSearch: search flags/appeals/artcomms/artists for IPs. 2017-01-12 09:28:21 +00:00
evazion
4848f18455 IpAddrSearch: fix pool_versions exception.
Fix pool_versions exception if PoolArchive db isn't set up. Prefer
ActiveRecord over raw sql so we can get real user objects so that the
view can use link_to_user.
2017-01-12 09:28:21 +00:00
evazion
fde7829bf6 IpAddrSearch: simplify search_by_user_name, remove unused @errors. 2017-01-12 09:15:15 +00:00
Albert Yi
63c218d71d fixes #2825: Restore search within pool versions IP in mod tools 2017-01-09 18:12:54 -08:00
Albert Yi
4d698bf98b add modaction helper 2017-01-03 15:04:47 -08:00
Type-kun
3d2b81d1e8 Commented out references to pool_versions table 2017-01-02 11:44:06 +05:00
Albert Yi
b2296cab70 bug fix for saved search update on tag batch changes 2016-12-28 12:40:00 -08:00
Albert Yi
62956be384 hide saved search functionality if not enabled 2016-12-21 14:53:39 -08:00
Albert Yi
deb62e0cdb smarter updates on saved searches on tag batch changes #2674 2016-12-05 17:22:07 -08:00
Albert Yi
eddf2e59f0 change formatting for modactions on alias/implication update + add mod action for tag batch changes 2016-12-05 14:46:02 -08:00
r888888888
ab6b5e49fe addresses #2674: aliases+updates should migrate saved searches 2016-09-14 18:48:45 -07:00
r888888888
634255e584 potential fix for #2591: Bulk update missed some posts 2016-04-25 16:52:57 -07:00
r888888888
4b24a5cb7e update to rails 4.2.5.1, add debugging info for tracking slow queries 2016-02-23 16:34:33 -08:00
r888888888
5b3a4b768c fixes #2557 2015-12-17 14:29:17 -08:00
Toks
508928924e IP search: normalize name capitalization and whitespace 2015-11-26 19:27:55 -05:00
r888888888
d8e84a90dc Revert "fixes #2530: improved ip addr search"
This reverts commit 1eb2d515fd.

Conflicts:
	app/views/moderator/ip_addrs/index.html.erb
2015-10-15 12:12:21 -07:00
r888888888
1eb2d515fd fixes #2530: improved ip addr search 2015-10-08 17:28:50 -07:00
Toks
643ab7b2c6 ip search: add quick links & improve usability
#2530
2015-10-08 01:14:48 -04:00
Toks
500f7a7812 Potential fix for #1985 2014-06-17 17:49:41 -04:00
r888888888
3ba7daebd1 include dmail ip addrs in search 2014-02-21 14:15:37 -08:00
r888888888
5851183a13 fixes #1983 2013-09-26 17:26:56 -07:00
r888888888
c4bf6a9192 fixes for #1865 2013-07-25 14:32:15 -07:00
Toks
e99f3f1747 fix dashboard max level 2013-05-12 11:53:02 -04:00
小太
cba839ba76 Kill trailing whitespace in ruby files 2013-03-19 23:10:10 +11:00
albert
a60eae695a restyle mod dashboard 2013-02-23 18:50:00 -05:00
albert
e0fdda3103 fixes to model searches 2013-02-19 12:27:17 -05:00
albert
3d9f5e20c6 remove db timeouts for mod report 2013-02-17 01:03:28 -05:00
albert
8749c43b3e refactored search 2013-01-10 17:45:52 -05:00
albert
1515b6822f fixes #328 2012-02-24 17:18:32 -05:00
albert
3eb06a43c4 fixes #324 2012-02-20 14:25:50 -05:00
albert
4283bce8b9 fix functional tests 2012-01-15 17:04:22 -05:00
albert
ef71a31de8 fixes #234 2012-01-07 21:54:19 -05:00
albert
5ffd6d552a fix tests 2011-12-22 18:22:32 -05:00
albert
5158d1b274 fixes for upgrade schema script 2011-11-06 10:12:23 -05:00
albert
c8cb217e6c fix for dashboard 2011-09-15 18:06:42 -04:00
albert
3e2b2e7418 added new tag batch change model 2011-08-03 18:32:57 -04:00
albert
c8afd34d15 added ip addr search 2011-07-29 18:04:50 -04:00
albert
d0e8084f0f implemented moderator dashboard queue 2011-07-22 17:34:43 -04:00