3
0

64 Commits

Author SHA1 Message Date
Denis Arh
10dd0226c1 Settings service cleanup
Remove intermediate settings service layer
2019-10-31 00:06:27 +01:00
Denis Arh
ba3d1967c5 Cleanup settings endpoint, expose setting struct on API 2019-10-30 20:23:54 +01:00
Denis Arh
4cd4077f2d Refactor messages repo, fix channels 2019-10-29 10:06:14 +01:00
Denis Arh
608c4fe91d Refactor channel repo 2019-10-29 10:06:14 +01:00
Tomaž Jerman
8aee952aa9 Add settings service to messaging 2019-10-16 12:37:37 +02:00
Denis Arh
d130e7e641 Fix tools & specs (internal => pkg) 2019-10-01 18:21:09 +02:00
Denis Arh
f493f4fb6b Move internal/permissions to pkg/permissions 2019-10-01 17:53:20 +02:00
Denis Arh
ebfa4cbffd Move internal/payload to pkg/payload 2019-10-01 17:51:39 +02:00
Denis Arh
82bf6e3617 Move internal/store to pkg/store 2019-10-01 17:50:24 +02:00
Denis Arh
62aa794b84 Move internal/auth to pkg/auth 2019-10-01 17:47:43 +02:00
Denis Arh
aa5fc27d85 Remove internal/ from messaging 2019-09-09 13:04:12 +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
c1e3231d00 Add support for membership policy, featured channels 2019-08-08 11:43:51 +02:00
Denis Arh
ba3b59acd3 Unread refactoring, moving logic to backend 2019-07-19 22:03:39 +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
bb447ee795 Chan & thread unread fixes 2019-06-25 08:45:22 +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
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
Tit Petric
fa6543b38f upd(messaging): remove dependencies on system 2019-05-19 12:05:54 +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
4dece123a5 Refactor all services & controllers and implement new a/c pattern 2019-05-09 16:55:18 +02:00
Denis Arh
aea9741a2b Improve logging, migrate to zap, use requestID
- migrate from log to go.uber.org/zap package
 - add requestID header with sticky log field
 - push logging via context to REST controllers & HTTP middleware
 - enhance request/resnpose logging
 - add service logging framework
 - add ZapProfiler for db query profiling
2019-05-07 21:18:23 +02:00
Denis Arh
4bb03ca492 Add OK responses on valid pin/bookmark/reaction requests 2019-05-06 08:02:37 +02:00
Denis Arh
0c919d9146 Implements /search/threads 2019-04-27 19:31:45 +02:00
Denis Arh
d96a6c8abc Revert []string=>[]uint64 change for channel members
Due to golang's inability do decode uint64 slice from string slice, we're expecting
string input for members (for now): https://github.com/golang/go/issues/15624
2019-04-27 16:08:02 +02:00
Denis Arh
ba8b77e4e1 Cleanup attachment serving logic
Remove old workarounds in rest/handlers and replace them with
simple func(http.ResponseWriter, *http.Request) that we return
from controller functions
2019-04-27 15:25:56 +02:00
Denis Arh
e9475feda0 Implement basic logic for /status endpoint
Currently it gets a list of connected users from websocket session store
and popuplates array of statuses:

[{"userID":"83947155491913829","status":"online","icon":"","message":""},
 {"userID":"85008081418715239","status":"online","icon":"","message":""}]
2019-04-27 14:41:46 +02:00
Denis Arh
1ce5b355ae Improves presence/activity handling over websocket 2019-04-27 14:20:33 +02:00
Denis Arh
eae4643274 Fix requred fields, create chan members type 2019-04-27 10:43:26 +02:00
Tit Petric
98a3fc059e upd(all): regenerate handlers 2019-04-26 22:11:28 +02:00
Tit Petric
60ab73b03e add(messaging): webhooks implementation 2019-04-26 22:11:28 +02:00
Denis Arh
b0239761f7 User/chan/messaging activity refactored 2019-04-26 13:34:35 +02:00
Denis Arh
f8e7a2133d Add status stubs 2019-04-26 11:46:33 +02:00
Denis Arh
d533cca1d5 Move message filtering to /search endpoint 2019-04-26 09:34:23 +02:00
Denis Arh
1a8a7da000 New & improved channel histroy rest endpoint params 2019-04-26 07:35:19 +02:00
Denis Arh
ed078ce456 Move cmd execution to REST endpoint, remove /echo, add /me 2019-04-26 07:18:18 +02:00
Denis Arh
43a5693ee5 Move list of commands from WS initial payload to /commands REST endpoint 2019-04-26 06:16:34 +02:00
Denis Arh
2132d1fdca Add url/param signing capapbilities to support access to attachments 2019-04-25 18:24:41 +02:00
Tit Petric
e27720dc93 upd(all): codegen update handlers/request pkgs 2019-04-03 14:45:38 +02:00
Tit Petric
6934917da0 upd(all): merge fix/coupling-issues-stage-1 2019-03-14 22:45:04 +01:00