Commit Graph

6294 Commits

Author SHA1 Message Date
Albert Yi
2e78542a68 Merge pull request #3095 from evazion/fix-3091
Fix #3091: Inconsistency between pool_string and pool.post_ids.
2017-05-30 11:14:46 -07:00
Albert Yi
acd256fd7b Merge pull request #3093 from evazion/feat-gen-reltags
Fix #3061: Add "General" button for related tags on new/edit posts.
2017-05-30 11:13:31 -07:00
Albert Yi
5b56596de1 Merge pull request #3092 from evazion/opt-reltags
Optimize related tags calculation
2017-05-30 11:12:24 -07:00
Albert Yi
757b791f22 Merge pull request #3094 from evazion/fix-null-source
Posts: redefine source column to be non-NULL (fixes #3090).
2017-05-30 11:10:46 -07:00
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
31b58e17b1 pools: lock pool when adding/removing posts (fixes #3091).
Adding a post id to a pool's post_ids string is non-atomic, hence we
must lock the pool to avoid a race condition.

Adding a pool to a post's pool_string is likewise non-atomic, hence we
must lock the post as well.
2017-05-26 18:35:33 -05:00
evazion
a401b1f570 posts: fix nil source tests; fix source:none metatag. 2017-05-26 15:12:39 -05:00
evazion
8f98e8e03c posts: redefine source column to be non-NULL (fixes #3090). 2017-05-26 13:54:17 -05:00
evazion
3ecee91861 Fix #3061: Add "General" button for related tags on new/edit posts. 2017-05-26 12:49:59 -05:00
evazion
991d5cbf6d related tags: optimize calculate_from_sample.
calculate_from_sample is called when clicking the General / Artist /
Copyright / Characters buttons during tag editing. Currently it's slow
because it counts up the tags in ruby, and because it makes repeated
calls to memcache in the inner loop when filtering tags by category.

This changes it to do the counting and filtering entirely in SQL using a
GROUP BY tag / COUNT(*) aggregation. This is faster and makes larger
sample sizes more feasible.
2017-05-26 12:41:48 -05:00
r888888888
f38810bd1c fixes #3086 2017-05-24 15:57:06 -07:00
r888888888
6023abf087 remove delayed job count constraint when calculating related tags (fixes #3087) 2017-05-24 15:47:15 -07:00
Albert Yi
fc708db2bd Merge pull request #3089 from evazion/fix-3081
Fix #3081: ATOM discovery link issues.
2017-05-24 15:38:38 -07:00
Albert Yi
6e05e711b8 Merge pull request #3088 from evazion/feat-wiki-other-name-search
Fix #3070: add wildcard support to wiki "other names" search.
2017-05-24 15:38:10 -07:00
evazion
1b03832b26 /forum_topics/$id: fix atom feed discovery link.
> Found an issue with the forum topic ATOM discovery link. Currently the
> link is visible to feed detectors, but they are unable to add it since
> the link provided is invalid.
>
> <link rel="alternate" type="application/atom+xml" title="Artist tagging
> help" href="http://danbooru.donmai.us/forum_topics.8199" />
2017-05-24 16:11:00 -05:00
evazion
ea80d51ecf /posts/$id: add feed discovery link for comments on post. 2017-05-24 16:10:56 -05:00
evazion
1a52f9db2b wiki pages: add wildcard support to "other names" search. 2017-05-24 14:59:00 -05:00
Albert Yi
f93cd11fb5 Merge pull request #3085 from evazion/feat-bur-search
Add search form to /bulk_update_requests.
2017-05-23 16:55:17 -07:00
Albert Yi
01a8244dd0 Merge pull request #3084 from evazion/fix-search-ids
Allow search[*_id] params to accept lists of ids in more places
2017-05-23 16:54:44 -07:00
evazion
614bf44086 /bulk_update_requests: add search form. 2017-05-23 17:23:32 -05:00
evazion
02b3622f12 api: allow search[*_id] params to accept lists of ids in more places. 2017-05-23 15:45:40 -05:00
evazion
8988f9cde8 /forum_topics.json: add search[id]=<ids> param. 2017-05-23 15:27:15 -05:00
Albert Yi
f510a0d9d2 Merge pull request #3083 from evazion/fix-date-metatag
Fix date:, age: metatags to use the index. (fix #672).
2017-05-23 11:18:43 -07:00
Albert Yi
bcbd76974e Merge pull request #3082 from evazion/feat-data-is-fav
Add `data-is-favorited` attribute to post thumbnails.
2017-05-23 11:16:07 -07:00
evazion
3aa405eac1 Post#favorited_by?: fix to cast to a boolean. 2017-05-23 13:12:10 -05:00
evazion
05c6716def Fix date:, age: metatags to use the index. (fix #672). 2017-05-23 12:59:08 -05:00
evazion
4c61e547b9 posts: add data-is-favorited attribute to thumbnails. 2017-05-23 11:53:04 -05:00
evazion
c5de983f61 Post#favorited_by?: fix to return a boolean. 2017-05-23 11:53:03 -05:00
Albert Yi
eef1e686d8 Merge pull request #3067 from evazion/fix-3065
Fix #3065: <div> id incorrect for certain controllers
2017-05-22 12:15:47 -07:00
evazion
9cf2c60c09 /wiki_page_versions: add #p-global-listing, #p-page-listing ids.
Split the wiki page versions template into two partials,
_global_listing.html.erb and _page_listing.html.erb, to avoid the nested
conditionals that arise from combining these two pages into one template.

Add html IDs to distinguish between these two partials.
2017-05-22 14:05:30 -05:00
Albert Yi
3be06364fa Merge pull request #3077 from evazion/fix-dmail-title-search
Fix case sensitivity bug in dmail title search.
2017-05-22 11:59:22 -07:00
Albert Yi
582666cc7f Merge pull request #3076 from evazion/feat-body-attrs
Fix #3073: Add attribute "data-is-moderator" to the <body> element.
2017-05-22 11:58:11 -07:00
Albert Yi
e4e021f26e Merge pull request #3075 from evazion/fix-forum-feed
Fix #3069: Reverse forum post order for forum topic Atom feed
2017-05-22 11:57:46 -07:00
Albert Yi
61fabffc1c Merge pull request #3071 from evazion/fix-order-index
Fix #3000: order: metatags aren't indexed.
2017-05-22 11:39:00 -07:00
Albert Yi
9bc4e1a5df Update 20170519204506_fix_last_noted_at_index_on_posts.rb 2017-05-22 11:38:37 -07:00
Albert Yi
b19ea1861c Merge pull request #3068 from evazion/fix-pending-flags
Disallow flagging pending posts.
2017-05-22 11:37:29 -07:00
evazion
5ff4f12329 /moderator/ip_addrs: add #p-ip-listing, #p-user-listing ids. 2017-05-22 13:25:36 -05:00
evazion
52e289e990 /static/terms_of_service: fix page wrapper ids. 2017-05-22 13:19:18 -05:00
evazion
8bf03e596d /user_reverts/new: fix page wrapper id. 2017-05-22 13:09:52 -05:00
evazion
060375dce7 /bans/new: fix page wrapper ids. 2017-05-22 13:09:36 -05:00
evazion
d5b9b7162c /user_upgrades/new: fix page wrapper id.
* Move related css to user_upgrades.scss.
* Delete users/upgrade_information.html.erb as it is unused.
2017-05-22 13:07:31 -05:00
evazion
c31d11b095 bans: fix case sensitivity bug in ban reason search. 2017-05-21 20:13:43 -05:00
evazion
3f760069b3 dmails: fix case sensitivity bug in dmail title search. 2017-05-21 13:52:56 -05:00
evazion
9b613157ae Add data attributes for CurrentUser's privileges to <body> tag (fix #3073). 2017-05-21 12:31:28 -05:00
evazion
f1f6e5ccc9 anonymous_user.rb: generate is_<role>? methods from User::Roles. 2017-05-21 12:27:39 -05:00
evazion
76b50c31bf /forum_topics/$id.atom: fix ordering (fix #3069). 2017-05-21 10:31:21 -05:00
evazion
223e600eb0 /explore/posts/{popular,searches,missed_searches}: fix page wrapper ids. 2017-05-21 10:26:03 -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
9bf85ee2b3 Factor out <ins>/<del> css from #c-post-versions to .diff-list. 2017-05-20 12:07:47 -05:00