Dmitry Verkhoturov and Umputun
4605d567ae
make image.Close wait for all images Submit completion
2020-04-13 16:01:51 -05:00
Dmitry Verkhoturov and Umputun
afc94adc1b
remove log package usage from tests, sort imports
2020-04-13 16:01:51 -05:00
Dmitry Verkhoturov and Umputun
dba77d403d
bump go-pkgz modules, bbolt new url
2020-04-12 16:09:01 -05:00
Dmitry Verkhoturov and Umputun
fc63493e7e
return proper content type instead of image/*
2020-04-12 03:57:08 -05:00
Umputun
7614edf167
extract wait in image close
2020-04-12 03:45:03 -05:00
Dmitry Verkhoturov and Umputun
a133ab31fa
add context cancellation to image.Service.Cancel()
2020-04-12 03:34:13 -05:00
Dmitry Verkhoturov and Umputun
449e375cbb
fix image.Service termination in case Submit was never called
2020-04-12 03:34:13 -05:00
Dmitry Verkhoturov and Umputun
ce92f63215
add remote image storage support to backend
2020-04-04 14:06:39 -05:00
Dmitry Verkhoturov
4539b8ffb4
hide image.Store from image.Service consumers
2020-03-27 21:03:49 +01:00
Dmitry Verkhoturov
e1d502ecf8
add clarifying comment to image.Store interface
2020-03-27 02:24:44 +01:00
Dmitry Verkhoturov
33dde7d4dd
move MaxSize, MaxHeight and MaxWidth from image Storage to Service
2020-03-27 02:10:49 +01:00
Dmitry Verkhoturov
ef6634e9b3
exclude unused filename from image.Store.Save() parameters
2020-03-26 23:04:49 +01:00
Dmitry Verkhoturov and GitHub
c9a23698ba
Image interface changes ( #623 )
...
@paskal
* sort imports, add missing copyright
* regenerate engine mock
* make all image.Store interface functions public
* go mod tidy
* make image.Store.Load return []byte instead of io.ReadCloser
* separate memory_store example RPC server to multiple files by handlers groups
2020-03-22 20:43:43 -05:00
019fa9e5ac
Simpler image service ( #580 )
...
* fix potential race on close
* move validate inside
* demote commit and cleanup in image.Store to non-exposed functions.
* replace immediate image commit with delayed via Submit
* minor: remove error logging, rename tests
* minor: err wrapping, comments wording
* clarify FileSystem.Save code
* attempt to fix #584 by making submitted image commits on a half of TTL
Co-authored-by: Dmitry Verkhoturov <paskal.07@gmail.com >
2020-01-27 14:17:58 -06:00
Umputun
be3e5f0246
set exclude-use-default: false for linter
2020-01-27 14:17:05 -06:00
Artur Mullakhmetov and Umputun
dcab5a1622
switch image interpolation to CatmullRom
2020-01-26 11:35:17 -06:00
Anton Panferov and Umputun
d69495a9e4
Preserving external images (issue #399 ) ( #447 )
...
* added passing userID to formatters
* added images preserver
* pinned version of golangci-lint
* implemented caching in proxy
* added tests for caching proxy
* removed previous implementation
* removed passing userID into formatter
This reverts commit 05014a5b24190836958377fcd7304294ed02f061.
* made linter happy
* removed storing image extension for FS store
* fixed bug with context cancelation preventing reading downloaded image
* fixed bug with trusting return value and ignorring error
* updated README
* added nolint for sha1
* removed unused resized flag
* added backward compatibility for config
* added handling deprecated cli parameter
* corrected func comment
* made linter happy
* made linter happy
2020-01-18 22:31:30 -06:00
Dmitry Verkhoturov and Umputun
6f9c87850a
Adjust tests timouts to work on machine with HDD ( #516 )
...
* increase timeout for TestServerAuthHooks http client
* replace assert.Equal checks for slice length with require.Equal
* unify channel name across tests
* fix panic in Test_Main
* increase TestRest_CreateWithPictures timeout for HDD slowness
* increase TestService_VoteSameIPWithDuration timeout for HDD slowness
* increase go test timeout for HDD run
* increase TestRest_CreateWithPictures timeout for HDD slowness
2020-01-01 14:46:39 -06:00
Dmitry Verkhoturov and Umputun
828aeda9b1
fix flapping TestFsStore_Cleanup ( #504 )
2019-12-29 16:02:36 -06:00
Dmitry Verkhoturov and Umputun
7bab10ab57
Replace "(Not)Nil" test checks for errors with with "(No)Error" ( #503 )
...
* replace "(Not)Nil" test checks for errors with with "(No)Error"
* unify error text checks style
* clarify error check in tests in memory_store
2019-12-29 15:42:39 -06:00
Umputun and GitHub
776b9117fc
CI changes ( #457 )
...
* make tests more resilient
* adjust drone for v1.x and dev-box, remove travis support
* add backend build step on branch for drone
* fix from email
* change notif email
* less demanding test wait
* add settings section to drone plugins
* adjust branch build
* convert all drone ci docker confs
* rename drone targets
2019-10-31 20:20:18 -05:00
Vdimir and Umputun
b7045d9771
Add bolt image storage ( #449 )
...
* Add bolt image store support
* Fix lint errors
* Use separate bolt buckets for staging and commited
* Comment bolt store public entities
* Fix spelling
2019-10-22 02:35:48 -05:00
Umputun
133f5fc3f2
image removal from staging increased to 5*EditTTL
...
this is needed in case if user worked on the comment for long time
until submitting in order to avoid false-positive cleanup from the
staging
2019-06-08 21:54:00 -05:00
Umputun
1616f43f0c
clean empty staging directory
2019-05-04 12:39:24 -05:00
Umputun
cc49ee0946
fix uninitialized imageapi pattern string
2019-05-04 12:10:39 -05:00
Umputun
619e9fec3b
clean image tests leftovers from tmp
2019-04-17 13:38:29 -05:00
Umputun
15a8fb946d
lint: err shadowing
2019-04-17 13:36:16 -05:00
Umputun
c46a21af72
simplify image Save logic by switching to loaded []byte
...
note: resize loaded to memory anyway
2019-04-17 13:35:41 -05:00
Umputun and GitHub
68b892f5e9
Image resize ( #311 )
...
* resize uploaded images #309
* fix temp files created in current dire after image test
* update mod
* missing image test files
* fix failed goroutine test on image-resize submit
* switch to mockery
* missing in mock change
* resize by both ResizeWidth and ResizeHeight
* add IMAGE_RESIZE params to readme
* add latest features to the description
* lint: missing file close in image test
2019-04-17 02:53:35 -05:00
Umputun
2a53a54a78
allow image/webp
...
https://github.com/umputun/remark/pull/307#issuecomment-482873793
2019-04-13 14:52:21 -05:00
Umputun
6bdbcb8351
lint: missing check for header load error
2019-04-13 14:48:47 -05:00
Umputun
d72154b3c8
make shorted image uids, check image type and restrict to png, gif and jpeg only #285
2019-04-13 14:27:40 -05:00
Umputun
c52e5b3920
expose max image size via config rest #307
2019-04-12 10:13:14 -05:00
Umputun
0f433722da
disable picture upload for anonymous
2019-04-04 01:53:47 -05:00
Umputun
4f67afffb1
adjust partition tests
2019-03-25 02:45:59 -05:00
Umputun
2a64a71eb8
lint: missing err check in test
2019-03-25 01:15:51 -05:00
Umputun
ded10dde6c
integration test for create comment with images
2019-03-24 00:23:46 -05:00
Umputun
8aa24341c3
make image ids extraction safe for pos-edits, delays comment parsing
2019-03-23 23:30:53 -05:00
Umputun
db3f22d9fd
change image submit to single goroutine with active wait. flush all submitted on close
2019-03-23 19:13:58 -05:00
Umputun
58ec50e613
wire image submit to store.Service
2019-03-23 18:33:19 -05:00
Umputun
c990b05c21
add image service with delayed commit. Move cleanup loop to service
2019-03-23 14:54:45 -05:00
Umputun
de292a4146
add extraction of image ids
2019-03-23 03:47:07 -05:00
Umputun
b49e242891
wire image staging and image cleanup
2019-03-23 03:06:24 -05:00
Umputun
eb79c3d9f9
implement two-stage image commit with background cleanup
2019-03-23 02:56:58 -05:00
Umputun
debd914e39
adjust image comments
2019-03-22 03:12:54 -05:00
Umputun
eb3dd467ad
change image location to user based, make random uuid for file name
2019-03-22 03:03:41 -05:00
Umputun
bc714480d4
lint: multiple shadowed errors, missed comments for exported methods
2019-03-19 20:54:05 -05:00
Umputun
3c3097cf77
add more image tests, generalize prep for those tests
2019-03-11 14:09:28 -05:00
Umputun
00d3930981
image hashing to sha256
2019-03-11 01:36:54 -05:00
Umputun
3dc20bcbb5
image comments
2019-03-11 01:18:36 -05:00