Earlopain
fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
...
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00
Earlopain
7a028cf003
[Tests] Set CurrentUser.ip_addr in base setup
2022-11-26 16:20:16 +01:00
Earlopain
98e55562eb
[Tests] Clean up teardowns
2022-11-26 14:02:06 +01:00
Earlopain
87313c437c
[Tests] Include FactoryBot::Syntax::Methods
...
The newly included create method behaves exacly like the self-written one,
with the added benefit of it not appearing in backtraces.
2022-11-25 21:06:54 +01:00
Earlopain
00c1dc27e1
[Tests] Use file_fixture/fixture_file_upload
2022-11-25 18:44:36 +01:00
Earlopain
c9f65608de
[Tests] Replace timecop with native Rails method
...
Also removes it at a bunch of places where it's not needed
2022-11-25 14:32:56 +01:00
Earlopain
999e410665
[Tests] A bunch of fixes, again
2022-10-01 19:11:46 +02:00
Earlopain
e1e9324c84
[Tests] A few fixes
2022-09-17 19:32:21 +02:00
Earlopain
2b8173e05a
[Tests] Small amount of fixes
2022-05-26 22:49:43 +02:00
Earlopain
b05a8a5a51
[Cleanup] Replace ruby-imagespec with Vips::Image
...
ImageSpec is also capable of providing sizes for flash, but that isn't
exactly relevant anymore
2022-05-26 18:10:20 +02:00
Earlopain
bd864449aa
[Uploads] Extract video methods
2022-05-08 20:01:39 +02:00
Earlopain
61f06cde5d
[Uploads] Extract some more file methods
2022-05-08 19:05:12 +02:00
Earlopain
20146b106d
[Tests] A bunch of more fixes
2022-04-13 08:54:50 +02:00
Earlopain
0d50202bbd
[Tests] Fix a bunch
...
1269 runs, 2237 assertions, 68 failures, 27 errors, 0 skips
2022-04-07 18:23:20 +02:00
Earlopain
3740599920
[Tests] Fix a bunch of tests
2022-04-05 18:50:34 +02:00
Earlopain
92a0a36589
[Cleanup] Remove upload referer_url
2022-03-16 17:39:58 +01:00
Earlopain
3aa731c408
[Cleanup] Don't return strategy on download
2022-03-16 17:15:45 +01:00
Earlopain
ee8fb64861
[Cleanup] Remove ugoira
2022-03-16 17:08:40 +01:00
Earlopain
caa51c4f2c
[Cleanup] Remove remaining upload preprocess code
2022-02-19 17:30:49 +01:00
Earlopain
ac5e8673ca
[Cleanup] Remove most source strategy code
2022-02-19 15:55:26 +01:00
Earlopain
3857eeccf3
[Cleanup] Remove some storage manager code
2022-02-19 14:25:13 +01:00
Earlopain
e9f7ac85bf
[Cleanup] Remove artist commentaries
2022-02-03 17:02:49 +01:00
Kira
bf100446b9
Teach uploaders and editor pages about multiple sources
...
This somewhat gimps the current source information fetching tool,
however it was already a bit suspect, and needs to be reworked before
being released as a public tool because it relies on API calls.
2019-04-26 07:27:06 -07:00
Kira
3e8483eaf0
Tests for at least some of the new jobs
2019-02-18 16:29:13 -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
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
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
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