3
0

156 Commits

Author SHA1 Message Date
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
Tit Petric
68dc98ad92 add(all): test files for type-set
Signed-off-by: Tit Petric <black@scene-si.org>
2019-05-19 15:58:39 +02:00
Tit Petric
537a8d2060 upd(messaging): remove external tests for webhooks
Signed-off-by: Tit Petric <black@scene-si.org>
2019-05-19 12:49:09 +02:00
Tit Petric
fa6543b38f upd(messaging): remove dependencies on system 2019-05-19 12:05:54 +02:00
Denis Arh
f1443a076f Remove obsolete errors (pt2) 2019-05-16 14:55:28 +02:00
Denis Arh
b0b466e23f Remove obsolete errors 2019-05-16 12:37:05 +02:00
Denis Arh
94d459eb7d Rename handlers/request receivers 2019-05-16 00:52:50 +02:00
Denis Arh
8abccd62b1 Updated requests & handlers after codegen tmpl change 2019-05-16 00:44:17 +02:00
Denis Arh
e0121d3a53 Same API endpoint for permission signature over three services 2019-05-15 11:16:34 +02:00
Denis Arh
c15eb72b06 Cleanup testing procedures
- remove "unit" build flag
 - make sure tests without build flag (integration, external) run
   without deps
 - move unit-tests step in front of "docker image build" drone pipeline
2019-05-14 14:51:57 +02:00
Denis Arh
2ad7b466f1 Refactor JWT/ctx, include role membership 2019-05-12 23:40:39 +02:00
Denis Arh
d3f7335e25 Fix tests, add temp testing workarounds, permissiong service mocks 2019-05-10 13:05:47 +02:00
Denis Arh
9e043b34fd Resource/operation combo whitelist (refactored validation) 2019-05-10 11:33:32 +02:00
Denis Arh
543278e866 Remove webhook's PermissionResource 2019-05-10 11:32:53 +02:00
Denis Arh
904937535d Move webhook operations to service resource 2019-05-10 11:31:17 +02:00
Denis Arh
2a4054c9bc Implement permission provisioning and watchers
Remove rule reset from roles cli command
Add generic "provision" command for each binary and (re)set perm. rules
Permission rules are now separated and part of AccessControl service

Facility for watchers was added.
2019-05-10 09:49:07 +02:00
Denis Arh
4dece123a5 Refactor all services & controllers and implement new a/c pattern 2019-05-09 16:55:18 +02:00
Denis Arh
6e00826dc8 Rename json names for ID props 2019-05-08 11:23:11 +02:00
Denis Arh
970f545156 Move avail. route output to /routes endpoint 2019-05-07 21:18:23 +02:00