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
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
47dfbd8ab3
Increase activity/heartbeat rate from connected (ws) user to 60s
2019-04-27 16:02:28 +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
980b6d581c
Refactor JWT encoder/handler
...
Handler is no longer passed as argument into routes etc but initialized in the Init()
and stored into auth.DefaultJwtHandler.
2019-04-27 13:17:37 +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
c297b173eb
upd(all): lock migrations table
2019-04-26 22:11:28 +02:00
Tit Petric
60ab73b03e
add(messaging): webhooks implementation
2019-04-26 22:11:28 +02:00
Tit Petric
f79f94da88
add(messaging): webhooks db migrations
2019-04-26 22:11:28 +02:00
Denis Arh
3026a594ed
Decupling system & messaging, removing Organisation type mess
2019-04-26 14:37:23 +02:00
Denis Arh
8f7c7651a0
Fix integration tests
2019-04-26 14:00:12 +02:00
Denis Arh
e2bbdda1f5
Channel list is no longer sent on ws connect
2019-04-26 13:54:03 +02:00
Denis Arh
bc181ee9a2
User list is no longer sent on ws connect
2019-04-26 13:51:23 +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
Denis Arh
11def550c6
Refactor JWT init flow
2019-04-18 19:55:37 +02:00
Denis Arh
259090c075
Remove obsolete statik.go files
2019-04-03 18:32:23 +02:00
Denis Arh
b84ed43f27
Refactored settings
2019-04-03 17:46:39 +02:00
Tit Petric
44e8f2d6bc
add(messaging): import webhook type
2019-04-03 15:27:47 +02:00
Tit Petric
fdc1e36239
upd(messaging): type updates, tests
2019-04-03 15:09:23 +02:00
Tit Petric
106bbd19ae
add(messaging): message.Meta is typed struct now
2019-04-03 15:09:05 +02:00
Tit Petric
b6b1d5211e
add(messaging): webhook permission resource
2019-04-03 15:08:01 +02:00
Tit Petric
ec736aecd9
fix(messaging): fix stutters, Init(), errors
2019-04-03 15:05:23 +02:00