Dmitry Verkhoturov and Umputun
71dcb13a71
commit proxy images same way as normally uploaded ones
2020-04-25 12:15:26 -05:00
Dmitry Verkhoturov and Umputun
5579bd1a88
close response.Body in image proxy tests
2020-04-24 14:16:01 -05:00
Dmitry Verkhoturov and Umputun
b71e0be095
move cachedImgID and sha1Str from rest.proxy to store.image
2020-04-24 14:16:01 -05:00
Dmitry Verkhoturov
8cb274934e
add DataService.ResubmitStagingImages function call on server start
2020-04-23 00:55:13 +02:00
Dmitry Verkhoturov
5ae6dcf652
introduce image.Service commitTTL and cleanupTTL properties
...
This allows having separate values of TTL for Commit and Cleanup
and moving them apart in time, also clarifying their connection
to EditTime which was previously outside of the package level.
2020-04-23 00:54:30 +02:00
Dmitry Verkhoturov
c7f73a6c84
add image.Store.Info() function
2020-04-23 00:52:36 +02:00
Dmitry Verkhoturov
3a0529e51b
enable golangci-lint for tests, fix discovered problems
2020-04-21 12:01:10 +02:00
Dmitry Verkhoturov
318feb8ed2
golangci-lint fixes for memory_store tests
2020-04-21 11:47:15 +02:00
Umputun
b4a6cc5473
format comment for UserDetail
2020-04-21 02:40:24 -05:00
Dmitry Verkhoturov and Umputun
513c8f353d
sticter golangci config, fix discovered issues
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
2acb00d424
rename image.Store.SaveWithID to Save
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
36cee9cc66
simplify image.Store interface
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
381ca75126
#614 serve proxified images disregarding if saving is enabled
2020-04-15 20:05:13 -05:00
Dmitry Verkhoturov and Umputun
c3896934c9
don't use cache in rest tests which don't utilize it
2020-04-14 13:47:27 -05:00
Umputun
3cb07b9cd6
fix incorrect sinceTime for comments stream
2020-04-14 03:40:10 -05:00
Dmitry Verkhoturov
828669ac95
remove t.Log from test server.Run in memory_store
2020-04-14 00:20:42 +02:00
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
Umputun
360f47e16b
go mod for memory_store example
2020-04-13 14:31:58 -05:00
Umputun
ee559e7deb
remake modules.txt with go 1.14
2020-04-13 14:30:48 -05:00
荒野無燈 and Umputun
9459a2a2f5
notify/email.go: fixup smtp.NewClient second param
2020-04-13 14:02:00 -05:00
荒野無燈 and Umputun
200f464925
smtp buildMessage(): flush quotedprintable writer buff explicitly
2020-04-13 14:01:21 -05:00
Umputun
d7442ef1a9
switch flags, revendor
2020-04-13 12:30:23 -05:00
Dmitry Verkhoturov and Umputun
d6c7e151a0
bump modules
2020-04-13 12:03:26 -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
cab3b8a831
move admin email notifications call to rest/api module
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
04d3541de1
add admin email notifications on new comments
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
e377bceeb4
make notify.Email support multiple messages in one Send
2020-04-06 16:27:19 -05:00
Umputun
40db689b27
update linter to 1.24 #641
2020-04-06 01:51:23 -05:00
Dmitry Verkhoturov and Umputun
106218df19
fix memory_storage run
...
- add proper formatting to Readme instructions
- fix docker-compose yaml
- add Enabled flag to admin storage, as without it I saw following error on trying to post a comment:
```
mem_store.r42 | 2020/04/03 15:53:52.433 [INFO] {logger/logger.go:120 logger.(*Middleware).Handler.func1.1} POST - /cmd - 172.20.0.3 - 200 (25) - 126.8µs - {"method":"admin.enabled","params":"remark","id":29}
remark42 | 2020/04/03 15:53:52.434 [WARN] {rest/httperrors.go:85 rest.SendErrorJSON} can't save comment - failed to prepare comment: can't get secret for site remark: site remark disabled - 500 (0) - dev_user/dev_user - /api/v1/comment - [rest/api/rest_private.go:121 api.(*private).createCommentCtrl]
```
Flag was originally added 106c018ef1
2020-04-04 14:06:39 -05:00
Dmitry Verkhoturov and Umputun
0355ba4ff7
add image storage to memory_store
2020-04-04 14:06:39 -05:00
Dmitry Verkhoturov and Umputun
ce92f63215
add remote image storage support to backend
2020-04-04 14:06:39 -05:00
Umputun and Dmitry Verkhoturov
b6ef4f393a
switch to go 1.14 #636
2020-04-04 18:38:35 +02: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
d714e32668
explicitly ignore error in test fmt.Fprint
2020-03-26 23:04:31 +01:00
Dmitry Verkhoturov
fa4e779fa0
bump go modules in memory_store
2020-03-26 23:02:08 +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
Umputun
7497561d9c
set anonymose with admin names to blocked #605
2020-03-08 15:37:31 -05:00
Umputun
1334048d89
allow /api/v1/user calls for robots
2020-02-09 14:41:38 -06:00
1e548eb85f
Code colors (backend support) ( #590 )
...
* testing code highlight with bfchroma render
* add bfchroma vendoring
* render code htm with classes
* adjust bfchroma test cases inside formatter
* go mod tidy
* fix markdown code render tests
* adjust comment text sanitizer to permit code HTML classes
* go mod tidy
* add chroma classes list regexp
* unify gitignore entries style
Co-authored-by: Umputun <umputun@gmail.com >
2020-02-08 21:11:12 -06:00
Dmitry Verkhoturov
62c43cce77
replace blackfriday.v2 with blackfriday/v2
2020-02-07 22:15:05 +01: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