evazion
9b893db640
autocomplete: fixup uses of tag_aliases.post_count.
...
Fixup for 64728c89d .
2019-11-17 16:03:56 -06:00
evazion
0a6661d145
uploads: switch to active job.
...
* Switch upload processing from DelayedJob to ActiveJob.
* Remove remaining references to delayed job from tests.
Closes #4128 .
2019-09-23 15:11:18 -05:00
evazion
d812a19902
tests: fixup tests.
2019-09-09 11:51:01 -05:00
evazion
258fa06422
tests: replace workoff_active_jobs with perform_enqueued_jobs.
2019-09-07 22:21:55 -05:00
evazion
0ec36785f0
uploads: don't clean up replaced files too early.
...
Don't try delete files belonging to completed uploads during pruning. If
an uploaded post was replaced shortly after upload, then the original
file could get deleted during pruning since it's no longer in use, but
this isn't supposed to happen until the replacement grace period (30
days) is over.
2019-09-04 14:49:52 -05:00
evazion
a932b25608
Fix #4142 : Missing images after upload.
2019-09-01 13:10:37 -05:00
evazion
6e7b882dda
tests: skip ugoira tests if ffmpeg/mkvmerge not installed.
2019-09-01 13:10:37 -05:00
evazion
868a2256d1
jobs: migrate file deletion jobs to ActiveJob.
2019-08-16 20:49:35 -05:00
Albert Yi
d8aabff77b
remove post keeper references
2019-01-31 15:45:06 -08:00
evazion
8408c0bf80
Fix #3815 : Adjust notes positions/sizes after post replacement
...
Bug: Notes weren't rescaled when the 'final_source' field was given
during replacement.
The cause was that the notes were rescaled after the source was saved,
but saving the source clobbered `image_{width,height}_before_last_save`
inside `rescale_notes`.
Regressed in b0c2ddba .
2018-12-16 13:55:35 -06:00
evazion
a20eba9ef7
Fix #3983 : Uploads: NoMethodError - undefined method `>=' for nil:NilClass
...
* Rename Upload#download_for_upload to #get_file_for_upload.
* Fix #get_file_for_upload to raise error if no file or source url was given.
* Fix javascript upload validation to disallow submitting form if file is
not present and the source is not an url.
2018-11-11 17:12:39 -06:00
evazion
e10c6c6a30
Fix #3982 : Uploads: URI::InvalidURIError - URI must be ascii only.
2018-11-11 12:17:58 -06:00
Albert Yi
e5f76b98ff
switch upload service test to use raikou1 image
2018-10-25 12:57:54 -07:00
Albert Yi
19a84993ca
fix video upload spec
2018-10-25 11:44:54 -07:00
Albert Yi
12b88f7f97
fixes #3960
2018-10-17 15:37:47 -07:00
evazion
f6c928e660
tests: fix upload service tests.
...
Fix regression in a45bd52e9. Delay jobs so that that the dead upload
pruner doesn't immediately prune new uploads.
2018-10-04 21:52:18 -05:00
evazion
215591403e
uploads: fix 'rating:safe' not assigning the rating ( #3929 ).
2018-10-01 11:09:00 -05:00
evazion
3414d27c78
post replacements: fix self-replacements; don't swallow upload errors.
2018-09-23 10:51:16 -05:00
evazion
39fe5273a9
Fix #3917 : Uploads: validate file before resizing/distributing.
2018-09-23 10:51:16 -05:00
Albert Yi
79f53c25ea
skip tests that throw net::opentimeout
2018-09-17 17:00:46 -07:00
Albert Yi
6dd64da9ba
fix invalid content type leaving upload stuck in preprocessing status ( #3896 )
2018-09-13 13:50:18 -07:00
Albert Yi
5f06952ed1
fix upload service test
2018-09-11 15:54:06 -07:00
Albert Yi
e0e85a3139
skip additional tests failures that are caused by networking issues
2018-09-11 13:43:34 -07:00
evazion
c2cf6a5441
Fix #3871 : Autocomplete can return duplicate tags.
2018-09-05 18:56:30 -05:00
Albert Yi
3025db66d7
switch fuzzy autocomplete to spellcorrect intent
2018-09-05 09:41:25 -07:00
Albert Yi
314341773c
fix tests
2018-09-04 18:23:49 -07:00
Albert Yi
b0bd20c436
fixes #3855
2018-09-04 11:34:46 -07:00
evazion
d6235d6f9e
nijie: add canonical url tests.
2018-08-31 23:23:15 -05:00
evazion
a68d12bd45
autocomplete: fix case sensitivity ( #3854 ).
...
ref: https://github.com/r888888888/danbooru/issues/3854#issuecomment-417366253 :
2018-08-30 17:38:29 -05:00
Albert Yi
66e413b540
Adds fuzzy string matching and prefix matching
2018-08-28 16:41:52 -07:00
Albert Yi
762dc3da24
Refactor sources
2018-08-24 12:10:51 -07:00
r888888888
334d8b7c6f
Add alt_source field on uploads to deal with twitter galleries
2018-08-04 16:32:15 -07:00
Albert Yi
ea4e7f1970
Expire unused aliases and implications after 2 years of inactivity
2018-08-01 16:54:48 -07:00
Albert Yi
6ce8c72053
assign after source url for uploads
2018-07-31 10:10:50 -07:00
r888888888
cc7a66438f
expose recommended posts to everyone
2018-07-23 15:05:43 -07:00
Albert Yi
6943c70a32
potential fix for #3569
2018-07-20 10:55:39 -07:00
Albert Yi
a9896031df
more fault tolerance for uploads
2018-07-05 15:59:06 -07:00
Albert Yi
99807580d5
add cropped support for video uploads
2018-07-03 16:37:53 -07:00
Albert Yi
7f895bd91f
fix specs
2018-07-02 15:19:19 -07:00
Albert Yi
9a522d9fef
for upload service, move md5 validation to upload/post. exclude self when doing a self replacement.
2018-07-02 13:26:47 -07:00
Albert Yi
4836804cae
bubble up upload validation errors during replacement
...
restore missing UploadService::Replacer tests
addresses #3761
2018-06-25 15:04:29 -07:00
Albert Yi
64446d49e1
add image cropping support
2018-06-22 14:41:57 -07:00
Albert Yi
cc24b0a54f
fix bug with copy-pasted urls in uploads/new erroring out
2018-06-18 10:23:01 -07:00
Albert Yi
06f47cc84d
fix test
2018-06-15 14:45:36 -07:00
Albert Yi
b0c2ddba8b
update tests
2018-06-14 17:52:41 -07:00
Albert Yi
0e6c358701
add drag and drop file uploads w/async processing
...
[skip ci]
2018-06-14 17:52:41 -07:00
Albert Yi
fdd7582fb0
add support for upload preprocessing
2018-06-14 17:52:41 -07:00
Albert Yi
0ae9230caa
add test for postkeepermanager reconnect
2018-05-09 17:40:07 -07:00
Albert Yi
99012ff342
fix tests
2018-05-09 11:59:51 -07:00
Albert Yi
f2b525a6d2
Implement forum topic voting and tag change pruning ( #3580 )
2018-04-26 15:31:06 -07:00