Umputun
56c5cd64bc
lint: more test warnings
2019-03-26 00:04:59 -05:00
Umputun
6ef88bf375
lint: tests warning
2019-03-25 23:57:27 -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
2c0cd1dec7
add test for submitImages
2019-03-24 03:16:37 -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
Umputun
639f6c15f3
wire image save/load to rest and cmd
2019-03-11 01:16:25 -05:00
Umputun
a1450cff57
add image storage
2019-03-10 19:40:14 -05:00
Umputun
1561dc2fda
switch to go mod
2019-03-09 02:02:55 -06:00
Umputun
7d475b185a
common teardown for bolt tests
2019-03-05 22:32:57 -06:00
Umputun
643f255832
fix sorting after altering find results
2019-02-11 16:15:41 -06:00
Umputun
08ab725b3d
lint: missing a comment for service.Find
2019-02-10 16:46:21 -06:00
Umputun
13c511b1b0
support controversy in Find for comments stored without it #274
2019-02-10 16:39:08 -06:00
Umputun
ef59281112
add controversy sorting #274
2019-02-10 16:10:58 -06:00
Umputun
7128f66374
add controversy value (votes metric) #274
2019-02-10 15:53:29 -06:00
Umputun
72b60bf823
const for cache TTL
2019-02-02 23:26:03 -06:00
Umputun
38fc7e500c
simplify title setter with anon func
2019-02-02 22:29:02 -06:00
Umputun
e6f30b0768
sync with preemptuve lock in concurrent migrator
2019-02-02 18:45:24 -06:00
Umputun
588af7fc9a
switch title to lcw cache, optimize error hits
2019-02-02 18:25:57 -06:00
Umputun
a731856bb1
fix shared title client caused races
2019-02-02 17:50:13 -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
c7468184ba
fix unexpected blocking if +1 vote in positive score only mode on 0
2019-01-26 17:05:54 -06:00
Umputun
cb5fc79dbe
add site-level positve score support #260
2019-01-26 01:38:56 -06:00
Umputun
f7de26ef4b
enforec empty list of comments on nil response
2019-01-25 22:49:52 -06:00
Umputun
8f0b6a6a59
add unit test for counters #261
2019-01-25 17:10:22 -06:00
Umputun
9375f250d8
switch restricted words logging to log
2019-01-21 17:03:22 -06:00
Umputun
84488182a2
avloid tokenization if lister failed or an empty list of restricted words #237
2019-01-21 16:52:49 -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
168088445f
add caching for replied ids
2019-01-17 01:20:19 -06:00
Umputun
79a8bfe453
don't exclude reply to myself from HasReply detection https://github.com/umputun/remark/issues/248#issuecomment-454882841
2019-01-16 12:20:05 -06:00
Umputun
dff266ec01
add detection of reply and disable edit for such comments #248
2019-01-15 17:05:30 -06:00
Umputun
835e82a441
add guid to rss with comment id
2019-01-08 12:41:10 -06:00
Umputun
781d90e98b
switch to lgr
2019-01-07 22:32:50 -06:00
Umputun
a6df83e960
fix wrong error wrapped in bold #243
2019-01-06 17:49:00 -06:00
Umputun
f76afb9af5
increase reply rss duration to 24h
2019-01-06 17:37:58 -06:00
Umputun
8d978ffaf1
add post title to rss item
2019-01-06 15:31:29 -06:00
Umputun
6edd24185c
lint: missing comment
2019-01-06 14:57:21 -06:00