3
0
Commit Graph

174 Commits

Author SHA1 Message Date
Denis Arh
f9c3cd0065 Refactor & enabled log() fn in all services 2019-09-30 19:50:04 +02:00
Denis Arh
d92f16902b Fix tests (adopt new a.script constraints, change provisioning) 2019-09-30 10:20:40 +02:00
Denis Arh
c240bb6a20 Refactored configuration provisioning 2019-09-30 10:20:40 +02:00
Denis Arh
1302f243f4 Add tests, basic messaging importer 2019-09-30 10:20:40 +02:00
Denis Arh
08e9d5af5b Permission testing 2019-09-10 03:46:59 +02:00
Denis Arh
cfbaeb4bb8 Refactored all relevant messaging integration tests 2019-09-10 01:59:45 +02:00
Denis Arh
09af44a9ed Fix access-control on member removal 2019-09-09 13:04:12 +02:00
Denis Arh
42be30587f Fix add member (owner => member) 2019-09-09 13:04:12 +02:00
Denis Arh
fd0c6a3dea Extra channel type-check on creation 2019-09-09 13:04:12 +02:00
Denis Arh
15c003fe3c Refactor channel service, extract find-by-id code 2019-09-09 13:04:12 +02:00
Denis Arh
904b38c3e3 Message attachment check fixed
Replace allow-by-default with same condition we have for sending messages to channel
2019-09-09 13:04:12 +02:00
Denis Arh
437127448a Extend store to accept other afero.Fs structs
This enables us to write better tests, without
poluting the FS
2019-09-09 13:04:12 +02:00
Denis Arh
aa5fc27d85 Remove internal/ from messaging 2019-09-09 13:04:12 +02:00
Tomaž Jerman
55e9181360 Fix message flag filter 2019-09-09 08:57:45 +02:00
Denis Arh
0a3e2ea7e5 Add standard error responses on attachment ctrls 2019-08-30 14:40:49 +02:00
Denis Arh
0ab59c791b Reorganize & move ctrls under route groups 2019-08-30 14:40:49 +02:00
Denis Arh
498502ed74 Remove debug lines from tests 2019-08-29 14:29:24 +02:00
Tit Petric
c94a8a5c5b add tests for beforemessageid parameter in messageRpo.Find 2019-08-29 14:12:17 +02:00
Denis Arh
9f58f8e83e Migrate storage path to options.StorageOpt struct 2019-08-14 17:09:43 +02:00
Denis Arh
aabff3df6e Add sentry wrapper, improve recover() logic 2019-08-14 17:07:56 +02:00
Denis Arh
c1e3231d00 Add support for membership policy, featured channels 2019-08-08 11:43:51 +02:00
Tit Petric
f472ac05d1 fixes after database profiler/logger refactor 2019-08-06 20:27:56 +00:00
Denis Arh
8a5ca66fce Clear all threads when marking channel as read 2019-07-19 23:13:15 +02:00
Denis Arh
f86d3eb4d7 Remove uneeded sorting conditions 2019-07-19 23:04:12 +02:00
Denis Arh
ba3b59acd3 Unread refactoring, moving logic to backend 2019-07-19 22:03:39 +02:00
Denis Arh
b006cb8784 Additional ws session check before writing
Avoiding reported "invalid memory address or nil pointer dereference"
2019-07-16 09:01:01 +02:00
Denis Arh
09aeaac5d7 Refactor app bootstraping, improve ext provider autodiscovery 2019-07-14 13:58:27 +02:00
Denis Arh
ab4b74620f Improve settings auto-discovery, make it provisionable 2019-07-14 11:24:43 +02:00
Denis Arh
60ad32e440 Add support for error (panic) reporting through Sentry 2019-07-03 16:35:06 +02:00
Denis Arh
ae85cb8158 Adjust message sorting when doing after/before & from/to filtering
cortezaproject/corteza-webapp-messaging#35
2019-07-02 17:10:34 +02:00
Denis Arh
70cac41579 Enhance user filtering
New response structure
Use query-builder
Refactor user service & repo
2019-06-26 17:45:26 +02:00
Denis Arh
118d8292ba Improve unread support for frontend (precounts etc...) 2019-06-26 10:46:07 +02:00
Denis Arh
3744bc9636 Minor unread fixes (do not serve count=0, proper filtering when counting) 2019-06-26 09:04:10 +02:00
Denis Arh
49f55fd327 Do not include deleted channels in the list 2019-06-25 13:00:36 +02:00
Denis Arh
bb447ee795 Chan & thread unread fixes 2019-06-25 08:45:22 +02:00
Denis Arh
95758fb689 Do not send channel event on membership flag is set/removed 2019-06-21 14:53:54 +02:00
Denis Arh
8309e6e710 Fix multival (string) requst param parsing (for POST) 2019-06-21 14:23:12 +02:00
Denis Arh
b7f78cdf91 Fix multival (string) request param parsing 2019-06-20 11:04:30 +02:00
Denis Arh
ac98a62593 Add default channel creation on setup 2019-06-19 17:53:20 +02:00
Denis Arh
6456a5b78a Extract autosetup 2019-06-19 17:53:20 +02:00
Denis Arh
a8ae581e8f Cleaner CLI options definition (env keys as tags) 2019-05-30 02:08:01 +02:00
Denis Arh
8592aa8d35 Remove flags, improve ENV handling
Following https://12factor.net/config, Corteza internals are now configurable
ONLT via environmental variables.

See .env.example for details
2019-05-30 01:04:07 +02:00
Denis Arh
1f8c2930c3 Fix integration tests 2019-05-28 12:51:46 +02:00
Denis Arh
5c750fb7cf Fix handler/request codegens
Missing return caused malformed response output:
{"error":{"message":"invalid username/password combination"}}{"response":false}

Remove param logging when params.Fill() returns an error
2019-05-28 10:51:56 +02:00
Denis Arh
22476933f4 Improve cli env setup & running 2019-05-26 08:41:20 +02:00
Denis Arh
36b32fa2fe Move logger package from internal to pkg 2019-05-24 13:30:48 +02:00
Denis Arh
243052402d More flexible "messaging", move to Corteza
- more control over starting procedure, cli commands...
 - fix package paths
 - renaming symbols, comments, strings from Crust to Corteza
2019-05-24 12:42:04 +02:00
Tit Petric
4c166d92c6 Update codegen for cleanup/less verbosity 2019-05-22 16:37:53 +02:00
Denis Arh
d9c6d68319 Flag messaging message as sensitive data (not to be loged) 2019-05-20 19:22:41 +02:00
Denis Arh
8b79c26a87 Fix attachment access-control 2019-05-20 19:17:21 +02:00