Commit Graph
1282 Commits
Author SHA1 Message Date
UmputunandGitHub 1b9ee3d763 feature/keystore (#185)
* add keyStore and switch all secret usage to this store

- implement static ks
- add shared secret

* lint: shadow in jwt and missing comment

* rename static key group to shared and use top-level shared secret

* move siteID extraction (from token) to internal func

* lint: merge var and assign for key test
2018-08-08 14:33:18 -05:00
Umputun b17e545773 same placeholder in compose as in widget 2018-08-06 10:52:35 -05:00
Umputun c22ed2300b clear link in md 2018-08-06 10:50:31 -05:00
Umputun af3208ac09 add info about SITE env 2018-08-06 10:49:44 -05:00
Anton KosourovandUmputun 39e426bd4b Add wordpress importer (#182)
* add wordpress, test

* add wp migrator to rest

* add readme, fix test, fix error handling
2018-08-02 22:05:53 -05:00
UmputunandGitHub e79b95de0c Feature/cors (#183)
* add cors internally #160

* revendor
2018-08-02 19:26:34 -05:00
Umputun 2a7d23c2ca clean test bolt after remark migrator tests 2018-08-01 22:19:06 -05:00
Umputun 6d82a1be93 extract common hasing with failback 2018-07-25 13:28:15 -04:00
Umputun cd7e9832d2 add avatart removal path to deleteMe test 2018-07-25 13:17:42 -04:00
Umputun 1c97e0d31f add delete avatar and call it from deleteMe controller 2018-07-25 12:48:57 -04:00
JackandAleksei Gurianov 5c9d0d6119 Fix incorrect edit comment countdown timer calculation #74 2018-07-25 17:41:13 +04:00
Umputun a817a22471 more mongo cache tests 2018-07-24 22:14:09 -04:00
Umputun 0f7819ffcf add integration test with mongo store, avatar and cache 2018-07-24 21:22:22 -04:00
UmputunandGitHub 3520de768d feature/mongo cache (#180)
* add siteID to cache Get

* indirect option setters

* add mongo cache with tests, add Key and Flusher

* lint: minor warns

* workaround for cache parallel test

* repeater in mongo cache

* missing repeater vendor

* fix nop cache

* add cache mongo benchmark

* wired mongo cache, single opts group for mongo

* disable goconst

* stop cache repeated on not found error

* use local mongo for tests in travis
2018-07-24 18:43:53 -04:00
UmputunandGitHub dbd1d4069f feature/ext-mongo (#177)
* externalize mongo wrapper

* remove mongo env from drone

* export mongo test for coverage report
2018-07-22 22:46:25 -04:00
Aleksei GurianovandUmputun fdf161850b Close DataStore on cleanup in tests (#173)
Windows fs can't remove testDb until file still used.
Therefore we need to close datastore on cleanup.
2018-07-19 09:33:40 -05:00
Umputun 1a423a464b add tests 2018-07-19 00:25:51 -05:00
Umputun b2775d92b0 chnage flatlf to panic from MustGetUserInfo 2018-07-19 00:09:32 -05:00
Umputun 7e00d40596 simplify user parsing with MustGetUserInfo 2018-07-19 00:08:13 -05:00
Umputun 0ae7f226af extend jwt claim with flags 2018-07-18 21:05:51 -05:00
Umputun 3abe4146b1 add deleteme flag to jwt token
it should prevent misuse of laked token to request user's data removal
2018-07-18 16:56:23 -05:00
Alexandr KandAleksei Gurianov c1e2616764 Input fix for Edge issue 169 (#171) 2018-07-19 00:16:37 +04:00
Aleksey Gurianov 8f3b8e11e1 Fix crossdomain clickoutside listener 2018-07-18 23:37:00 +04:00
Aleksei GurianovandUmputun 10e79cdd90 another flaky ttl block test (#172)
see #120
2018-07-18 13:27:56 -05:00
Aleksey Gurianov b27489e918 Logout user on deleteme request 2018-07-17 23:21:11 +04:00
Aleksey Gurianov 9b5c784bdc Admin page to approve deleteme request 2018-07-17 23:21:11 +04:00
Eldar AmantayandAleksei Gurianov 1d267f5db6 ISSUE-73: UI support for DeleteMe request
Closes #73

* Add the API post request deleteMe
* Add a trigger button
* Add an utils/email module with the template and window opener
* Add a dropdown component
* Add a button component
* Hide the user-id text and a logout bout in the dropdown
* Add a noop empty function to pass a default handler callback to components
2018-07-17 23:21:11 +04:00
Umputun 592def143a clarify comments 2018-07-15 12:11:48 -05:00
Umputun e278da3cd0 no need to skip in dockerfile, handled in testing.go 2018-07-14 13:45:04 -05:00
Umputun f9ba969464 another attempt to fix unexpected mongo tests 2018-07-14 13:42:00 -05:00
Umputun e2360eafe1 set mongo url to skip in order to allow PR builds 2018-07-14 12:13:24 -05:00
Umputun a22521ab92 allow mongo with URL only, update readme for different stores 2018-07-13 14:16:03 -05:00
UmputunandGitHub de013c7d5a feature/mongo (#165)
* WIP: start mongo engine

* WIP: mongo accessor and admin

* integrate mongo store to main

* disable mongo tests by default, only in CI

* connection with constructor

* add mongo buffered writer

* buffered mongo writer

* fix nil responses on an empty list from mongo

* missing mongo index for scores

* cancelable store

* add gridfs implementation of avatar store

* fix race on mongo session copy

* gridfs avatars without tmp files

* move avatar store

* minor comments and refactoring for avatar store

* merged from current master

* simplify gridfs reader

* lint: fix minor warns

* test mongo against env defined url

* pass MONGO_REMARK_TEST to docker and travis

* set dockerfile env for mongo test url

* increase connect timeout in mongo tests

* pass MONGO_REMARK_TEST to drone build

* add MONGO_REMARK_TEST to branch stage of drone

* mass mongo test url via build_args_from_env

* populate mongo IP to docker build hosts

* test env

* pass mongo ip via .mongo

* remove .mongo temp from git

* add .mongo -> env to linter step

* allow more time to autoflush writer test

* default mongo tests to "mongo" if not in env

* merge fresh master into

* add test for mongo cleanup

* msg for a failed test

* lazy fix for failed test

* add an ability to skip all mongo tests

* add backend dev instructions

* remove unused code from mongo server

* move mongo testing to connection_test

* restore testing.go

* lint: minor warns for testing code
2018-07-13 12:27:11 -05:00
Efremov AlexeyandAleksei Gurianov 4cca80e3c1 restyle close button, add close animation (#152)
closes #98
2018-07-13 11:46:22 +04:00
Jack & BurgerandAleksei Gurianov 905d41af7e Option to disable comments manually (#154) 2018-07-13 11:41:12 +04:00
Aleksei GurianovandGitHub a544aff6ac improve and document developer setup (#161)
japanese commit
fixes #158
2018-07-13 09:54:12 +04:00
Umputun 62a5d7196e add comments to dev oauth 2018-07-11 15:27:18 -05:00
Aleksey Gurianov f74f9e462c improve ux of login flow #157 2018-07-12 00:20:05 +04:00
Aleksey Gurianov 25c75011f4 tweak CI detect on frontend 2018-07-11 22:44:13 +04:00
Umputun 42b9baf0f3 respect REMARK_URL for dev callback #159 2018-07-11 13:42:00 -05:00
Umputun 547ea8375e change deletem result link to /web #73 2018-07-10 17:05:03 -05:00
Umputun b2a8434f9a add automatic github-style avatar for dev auth #106 2018-07-10 12:19:10 -05:00
Aleksey Gurianov b076a06e33 regenerate package-lock 2018-07-10 14:13:53 +04:00
Dmitry TsepelevandAleksei Gurianov a02b1502a6 Basic redux integration for thread component (#141) 2018-07-10 14:05:39 +04:00
Umputun b6cda91dd9 invalidate user_id scope on vote change #151 2018-07-10 02:02:17 -05:00
Aleksei GurianovandUmputun e17ac360ff permanent duration comment fix (#150) 2018-07-09 16:33:57 -05:00
Aleksei GurianovandGitHub 2c570c2530 reveal node_modules in separate container (#123)
This allows reusing docker fs layer with node_modules
in case if there were no changes in package*.json
As a result, it decreases dependency on network
during rebuilds at least in a local environment.
2018-07-10 01:03:27 +04:00
Efremov AlexeyandAleksei Gurianov 1539c1f043 add user-info in iframe (#131)
closes #98
2018-07-09 18:32:14 +04:00
Jack & BurgerandAleksei Gurianov 4cea9d5855 Add ability to ban users for limited time and to view in the 'Show blocked' (#140)
closes #88
2018-07-09 16:58:08 +04:00
Umputun ce8c2c236f add last scope 2018-07-09 02:52:13 -05:00