1724c27713
FIX: reload the 'post' model to retrive raw field value.
2019-04-25 02:09:27 +05:30
aed683390c
FIX: Don't treat 'upload_patterns' as constant to make the rake task compatible with multisite
2019-04-25 02:06:20 +05:30
b0bb1d95a5
trying to recover old scheme uploads on 'posts:missing_uploads' rake task
2019-04-25 01:16:18 +05:30
3dae12dec1
reduce unlinked count from missing post upload count
2019-04-19 21:53:00 +05:30
4fcefc3615
add unlinked missing post upload count in stat
2019-04-19 20:39:21 +05:30
ba6369edc5
Add more missing upload stats in rake task
2019-04-19 20:14:40 +05:30
48cedf3ebe
fix: retrieve posts in order by id.
...
so we can find starting and ending id of the batch.
2019-04-19 18:30:59 +05:30
ce8d30f667
PERF: use 'delete_all' method instead of 'destroy_all'
2019-04-19 18:00:01 +05:30
5de483a1b9
PERF: Very post upload's existence by preloaded upload sha1s array
2019-04-19 17:27:16 +05:30
8d5c900142
DEV: add unique missing uploads index in post custom fields
...
https://review.discourse.org/t/feature-send-missing-post-uploads-stat-to-prometheus/2609/6?u=vinothkannans
2019-04-10 18:09:35 +05:30
d0fe42e2ef
FIX: should look through posts for image markdown
...
Downloaded onebox images only included in the cooked HTML content. So we have to check 'post.cooked' instead of 'raw'. bfdd0fe64cc90707569a158b0dbdecedf3d03986
2019-04-10 13:52:35 +05:30
4878ee95e5
DEV: optimize sql query to narrow down the filtering of post with uploads
2019-04-10 12:58:10 +05:30
bfdd0fe64c
FIX: empty the missing list on each post loop
2019-04-10 11:20:26 +05:30
914ada1c74
DEV: convert scheduled job EnsurePostUploadsExistence into a rake task
2019-04-09 02:07:35 +05:30
341836eb42
Fix the rake task and importer instead
2018-10-17 16:48:09 +02:00
6588a45880
Make Rubocop happy
2018-08-23 15:09:20 +02:00
409ee66839
Add optional "ignore_case" parameter to posts:remap rake task
2018-08-23 14:49:17 +02:00
536cef86f4
PERF: do not carry post ids in memory when rebaking all posts
2018-07-11 14:34:33 +05:30
59a2767de8
Ensure that we restore the site setting in posts:rebake rake task.
2018-07-06 16:22:54 +08:00
cb824a6b33
DEV: remove all calls to SqlBuilder use DB.build instead
...
This is part of the migration to mini_sql, SqlBuilder.new is being
deprecated and replaced with DB.build
2018-06-20 17:53:49 +10:00
5f64fd0a21
DEV: remove exec_sql and replace with mini_sql
...
Introduce new patterns for direct sql that are safe and fast.
MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API
- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder
See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
64f2086cca
rake task should allow reordering posts of single topic
2018-04-10 13:52:08 +02:00
adb93716ca
FIX: rake task should rebake posts in descending ID order
2018-04-10 00:18:49 +05:30
cf9965fd54
Add rake task for reordering posts by creation_date
2018-03-29 14:42:41 +02:00
81427e26ea
Ignore errors when remapping posts
2017-12-28 15:13:01 +01:00
b15059418b
FIX: rake task for updating posts received by email should not crash
2017-12-13 22:03:31 +01:00
82c18f6ca3
fix: undefined variable in post:rebake_match
2017-10-24 20:05:58 -04:00
1477a0e910
Adds a rake task for refreshing posts received via email
...
This is useful when the email_reply_trimmer gem was updated and you want to apply those changes to existing posts.
2017-10-06 14:29:11 +02:00
0342324b47
FEATURE: support regex in rake post:remap ( #5201 )
2017-10-04 11:47:53 +11:00
041ace5d3b
new rake task to defer all flags
2017-09-15 16:42:58 +05:30
18142d8abf
new rake task to bake uncooked posts
2017-09-12 12:40:18 +05:30
5012d46cbd
Add rubocop to our build. ( #5004 )
2017-07-28 10:20:09 +09:00
fba9bbb18c
FIX: reset likes in user directory
...
Reset likes to 0 when `posts:delete_all_likes` task is ran
2017-06-26 11:22:41 +05:30
03d7ec8777
FEATURE: new rake task to delete all likes
2017-06-23 22:30:01 +05:30
061c3dd6c1
typo
2017-01-25 22:46:05 +05:30
89d7ddd803
FEATURE: new rake task to delete a word/string from all the posts
2017-01-25 22:33:39 +05:30
bc4f443fde
typo
2017-01-25 21:23:25 +05:30
80e573e794
FIX: support removing all occurences of a word/string
2017-01-24 12:52:38 +05:30
e27ca3019b
FEATURE: posts:remap task now supports removing all occurences of a word
2017-01-24 12:00:57 +05:30
01c8974c36
typo
2017-01-18 20:10:49 +05:30
13aff1f2f8
FEATURE: optionally delay the rebake_match task
2016-09-21 21:48:57 +05:30
76857e3f77
do not create new revision when remapping posts
2016-09-03 23:21:56 +05:30
5da768b4fe
FIX: find_each
uses find_in_batches
which uses the primary key as the order.
2016-08-25 16:11:28 +08:00
6af4e6bd05
FEATURE: new rake task to remap posts matching a string
2016-08-17 14:08:46 +05:30
dc4799dda2
handle posts:rebake_match task without type argument
2016-08-17 01:01:06 +05:30
054ee4dc55
FEATURE: new rake task to rebake posts using regex matching
2016-08-17 00:01:19 +05:30
bda6b48ac1
new posts:fix_letter_avatars rake task
2015-09-23 22:44:53 +02:00
657ab84825
disable edit notifications when using the rebake rake task
2015-04-01 23:08:29 +02:00
e7f251c105
LOTS of changes to properly handle post/topic revisions
...
FIX: history revision can now properly be hidden
FIX: PostRevision serializer is now entirely dynamic to properly handle
hidden revisions
FIX: default history modal to "side by side" view on mobile
FIX: properly hiden which revision has been hidden
UX: inline category/user/wiki/post_type changes with the revision
details
FEATURE: new '/posts/:post_id/revisions/latest' endpoint to retrieve
latest revision
UX: do not show the hide/show revision button on mobile (no room for
them)
UX: remove CSS transitions on the buttons in the history modal
FIX: PostRevisor now handles all the changes that might create new
revisions
FIX: PostRevision.ensure_consistency! was wrong due to off by 1
mistake...
refactored topic's callbacks for better readability
extracted 'PostRevisionGuardian'
2014-10-27 22:06:43 +01:00
c9dea9ce5c
TRIVIAL: improve display of the rebake task
2014-09-09 19:25:20 +02:00