Umputun
38da69ea49
simplify counts hashing key
2019-03-25 20:58:57 -05:00
Umputun
7a948266a3
test more image types
2019-03-25 19:54:16 -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
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
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
58eb4e8852
typos
2019-03-11 14:09:05 -05:00
Umputun
4def2affd8
fix robosts test with added picture
2019-03-11 01:23:13 -05:00
Umputun
639f6c15f3
wire image save/load to rest and cmd
2019-03-11 01:16:25 -05:00
Umputun
1561dc2fda
switch to go mod
2019-03-09 02:02:55 -06:00
Umputun
a7004f15a5
add non-anon middleware to vote post controller #279
2019-03-07 15:13:42 -06:00
Umputun
347fe1a0db
randomize db name for rest test to avoid conflicts in parallel testing
2019-03-06 12:15:44 -06:00
Umputun
e3d6869cb0
common teardown for migrator tests, simplify WP import test
2019-03-05 22:32:34 -06:00
Umputun
2105b5ddfe
revendor with latest lgr (logging)
2019-03-05 22:31:37 -06:00
Umputun
70ef130976
add error codes
2019-02-10 17:47:58 -06:00
Umputun
ef59281112
add controversy sorting #274
2019-02-10 16:10:58 -06:00
Umputun
e6f30b0768
sync with preemptuve lock in concurrent migrator
2019-02-02 18:45:24 -06:00
zonescape
de68b8d8ee
fix comment typo
2019-01-29 18:37:25 +03:00
Umputun
af6076187f
set rss descriptions matching rss type
2019-01-27 15:08:39 -06:00
Umputun
b106fe0fc6
increase size of last comments for reply detection to 5000 and time to 31 days #268
2019-01-27 14:28:24 -06:00
Umputun
cb5fc79dbe
add site-level positve score support #260
2019-01-26 01:38:56 -06:00
Umputun
440beb3303
make sure last returns [] list #262
2019-01-25 23:20:30 -06:00
Umputun
f7de26ef4b
enforec empty list of comments on nil response
2019-01-25 22:49:52 -06:00
Umputun
6250f2e52e
allow empty list of comments on find for fresh post without anything #262
2019-01-25 18:24:58 -06:00
Umputun
1cc09a33f6
fix lack of counter invalidation from the cache #261
2019-01-25 17:35:38 -06:00
Umputun
8f0b6a6a59
add unit test for counters #261
2019-01-25 17:10:22 -06:00
Aleksandr Melnikov and Umputun
ab6c9a515c
Support restricted words ( #257 )
...
* prepared interfaces and naive implementation for restricted words
* fixed whitespace tokenizer last token handling
* removed unnecessary check in whitespace tokenizer last token handling
* removed unnecessary interfaces, added matcher to service
* now using more explicit naming
* added config parameter/env variable to configure restricted words
provided simple matcher and lister implementation into service
* fixed linter warnings
* fixed linter warnings (part 2)
* added functional tests for rest api
moved check for restricted words into validation stage
* fixed missing error check in rest private test
* fixed failed test that expected validation in specific order
* fixed linter warning
* removed unnecessary 'else'
* removed redundant check from 'DataStore.EditComment'
* replaced exact matching for restricted words with wildcard matching
* fixed race condition when creating wildcardTrie
removed unnecessary wildcard masks
refactored tests in a table format
* improved documentation for restricted words param
* removed wildcardTrie caching as a premature optimization
removed unnecessary validation method ValidateCommentText
moved restricted words validation into service methods that create and update comment
* fixed error name due to linter warning
2019-01-21 16:48:35 -06:00
Umputun
7fa26343bd
fix a comment
2019-01-17 15:07:47 -06:00
Umputun
2a3051c620
allow separate limiter for updates and posts, agressive default limit
2019-01-17 14:56:11 -06:00
Umputun
e9585dc568
pass default logger to rest
2019-01-14 16:14:02 -06:00
Umputun
8c8f13fd73
adopt for rest errors and revendor go-pkgz
2019-01-13 23:27:15 -06:00
Umputun
8b0926a338
fix #246
2019-01-11 14:06:31 -06:00
Umputun
e5c8ac18de
bad import
2019-01-08 12:44:07 -06:00
Umputun
835e82a441
add guid to rss with comment id
2019-01-08 12:41:10 -06:00
Umputun
61cf54d231
add comment id to rss
2019-01-08 03:59:15 -06:00
Umputun
781d90e98b
switch to lgr
2019-01-07 22:32:50 -06:00
Umputun
f76afb9af5
increase reply rss duration to 24h
2019-01-06 17:37:58 -06:00
Umputun
6c02768f5d
fix rest log prefix
2019-01-06 17:08:08 -06:00
Umputun
8d978ffaf1
add post title to rss item
2019-01-06 15:31:29 -06:00
Umputun
3472475a82
add rest and batch (cleanup --title) support for title's #241
2019-01-06 14:52:43 -06:00
Umputun
0fd8657992
make title extractor optional
2019-01-05 13:22:28 -06:00
Umputun
7b54b00c01
switched to auth 0.3
2019-01-04 18:09:18 -06:00
Umputun
72a264b771
lint: error checks ignored in migrator test
2019-01-02 18:53:50 -06:00
Umputun
a6d20b1563
lint: missing error check in tests
2019-01-02 11:50:36 -06:00
Umputun
ca1943f909
revendor with auth:0.1.1
2018-12-31 17:47:25 -06:00
Umputun
fdef63c61d
make import expired test to run longer
2018-12-30 23:29:13 -06:00
Umputun
195e65ca60
adjusted tests for new auth lib
2018-12-30 13:31:03 -06:00