Dmitry Verkhoturov and Umputun
0560a893cf
switch to go-pkgz/notify package: modules
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
ba86db1263
replace errors package with fmt.Errorf
...
https://gist.github.com/Peltoche/60b8b81dfbf70164d0e2b88988003229
was used for it, thanks to @Peltoche for publishing it.
2022-04-26 00:25:09 -05:00
Dmitry Verkhoturov and Umputun
2a7966b9e6
replace numbers with proper HTTP status codes in tests
...
Also, remove unneeded whitespaces using whitespace
linter for golangci-lint.
2022-04-17 19:42:45 -05:00
Dmitry Verkhoturov and Umputun
8d42d0714f
bump backend dependencies
...
Also, switch from fork github.com/umputun/go-flags back to original
github.com/jessevdk/go-flags.
2022-01-31 14:24:33 -06:00
Dmitry Verkhoturov and Umputun
90e537358d
update golangci-lint to 1.43.0, fix found issues
2021-11-23 15:00:40 -06:00
romanilchyshyn and Umputun
e341227cae
import from commento engine
2021-10-06 13:51:31 -05:00
Dmitry Verkhoturov and Umputun
5abeab4008
stop Ticker after use to prevent the memory leak
...
https://github.com/golang/go/wiki/CodeReviewConcurrency#ticker-stop
2021-10-03 16:09:30 -06:00
Umputun
5bdd1a5c72
lint: remove unneeded lambda
2021-05-06 19:14:07 -05:00
Umputun and GitHub
9838aaac70
Disqus fix ( #989 )
2021-05-06 18:03:15 -05:00
Umputun
0496c6bb0e
encode discuss user_id made from the name #879
2021-02-12 14:52:00 -06:00
Enes Çakır and GitHub
fb23cd6cf7
Fix empty username check for Disqus migrator ( #879 )
...
by @enescakir
* Fix user ID encoding for empty string
* Revert "Fix user ID encoding for empty string"
This reverts commit 6d901e4b11 .
* Fix empty username check for Disqus migrator
* Fix linter emptyStringTest error
2021-02-12 14:47:19 -06:00
vdimir and Umputun
09f06f587c
Add tests for comment.Imported, refine image.SubmitAndCommit tests
2020-07-09 12:43:07 -05:00
vdimir and Umputun
9957ab642b
Add Imported field to comment, do not wait image submission for such comments
2020-07-09 12:43:07 -05:00
Dmitry Verkhoturov and Umputun
0d67f7e53d
bump golangci-lint version, fix discovered issues
2020-05-24 19:00:07 -05:00
Umputun
0895de2f7e
rename all packages from the legacy remark/ to remark42
2020-05-12 11:34:16 -05:00
Dmitry Verkhoturov and Umputun
e922fc31a2
enable gocritic linter and fix found issues
2020-04-26 17:05:34 -05:00
Dmitry Verkhoturov
3a0529e51b
enable golangci-lint for tests, fix discovered problems
2020-04-21 12:01:10 +02:00
Dmitry Verkhoturov and Umputun
513c8f353d
sticter golangci config, fix discovered issues
2020-04-19 16:21:09 -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
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
20f667bd1d
Improve TestMigrator_* tests reliability ( #512 )
...
* simplify api tests set up
* close DataStore\Engine in all test code after usage
2019-12-30 13:41:24 -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
f859239bdf
faster import test
2019-10-28 23:34:36 -05:00
Umputun
ab0866cb77
randomize bold db for native migrator test
2019-10-28 22:19:14 -05:00
Anton Kosourov and Umputun
4dc123dbe8
Change url in comments, decorate approach ( #431 )
...
* WIP: url mapper, wrapped reader approach
* create url mapper on start
* add pattern matching in mapper
* check pattern matching in test
* change site-id from radio-t to remark42 in tests
* create new url mapper on demand, based on given func, union strict and prefix rules
* rename convert to remap
* add import with mapper test
* rename mapper func to UrlMapperMaker, create comments in test via data service
* move /import/wait to /wait ctrl
* add remap cmd
* fix url naming
2019-09-30 13:12:42 -05:00
Umputun and GitHub
3c321f8992
Verified site id ( #425 )
...
* WIP: start with aud verification
* adjust rest test for token's site_id remark42
* add tests for non-matching aud
* fix auth hook test with updates limiter
* check siteID with enabled call for static store
* fix site enabled check
2019-08-25 22:00:19 -05:00
Umputun
9585bdff34
lint: multiple warnings, mostly in tests
2019-07-13 13:40:41 -05:00
Umputun
3aba348e87
make new engine primary, rename package
2019-06-25 20:06:30 -05:00
Umputun
92d9b7703d
restore all service coverage with new engine
2019-06-25 20:06:30 -05:00
Umputun
0590246112
move comment alter functionality from rest and admin to store service
2019-05-16 20:49:07 -05:00
Umputun and GitHub
5218f3f37c
Support "since" parameter in "/last" query ( #330 )
...
* strip \n and spaces from retrieved title
* add "since" support to last storage and rest #329
* add info about since to readme
2019-05-16 13:58:37 -05:00
Umputun and GitHub
4adbca22b2
Refactor rest ( #320 )
...
* fresh vendor
* enforce vendor flag with env
* move tree to service package
* move controllers routing to rest.go, remove separate subrouters
* cleanup/formatting
* missing vendor packages
* move rss, img proxy, robots and getstarted to top-level routes
* simplify logger middleware usage
* randomize server test ports
* check for non-admin in admin tests
* lint: minor warns
* admin test to jwt admin
2019-05-07 01:54:19 -05:00
Umputun
a9a368e02d
lint: typos
2019-04-28 13:13:12 -05:00
Umputun
6ef88bf375
lint: tests warning
2019-03-25 23:57:27 -05:00
Umputun
bc714480d4
lint: multiple shadowed errors, missed comments for exported methods
2019-03-19 20:54:05 -05:00
Umputun
3314223120
switch native import lock to sized group
2019-02-02 22:28:16 -06:00
Umputun
e6f30b0768
sync with preemptuve lock in concurrent migrator
2019-02-02 18:45:24 -06:00
Umputun
0af3eda684
write imported records concurrently
2019-02-02 18:09:23 -06:00
Umputun
781d90e98b
switch to lgr
2019-01-07 22:32:50 -06:00
Umputun
de80a6414b
Merge branch 'migrator-meta' of github.com:umputun/remark into migrator-meta
2018-12-24 00:39:34 -06:00
Umputun
2aaae35717
lint: lack to err checks in tests
2018-12-24 00:39:31 -06:00
Umputun and GitHub
2fc027299f
Merge branch 'master' into migrator-meta
2018-12-24 00:35:09 -06:00
Umputun
b8ed722b2e
increase wrtie timeout to allow long exports
2018-12-24 00:19:12 -06:00
Umputun
f3619b4fc3
adjust tests for v1 native format
2018-12-23 03:01:44 -06:00
Umputun
be3d1bdf3e
simplify import & export
2018-12-23 02:23:54 -06:00
Umputun
094f4c66a1
replace confusing name for native import/export provider
2018-12-21 20:01:03 -06:00
Umputun
616e4e2c1c
sort metas for consistency
2018-12-21 02:21:58 -06:00
Umputun
a5265bc82a
lint: more shadowing
2018-12-21 00:39:26 -06:00
Umputun
ca5948ab31
lint: errors not handled in export
2018-12-21 00:28:30 -06:00