3
0

1052 Commits

Author SHA1 Message Date
Denis Arh
01b3cc529b Add missing namespaceID filter params 2019-04-29 18:51:18 +02:00
Denis Arh
19f6168506 Fix all tests broken by compose/namespace change 2019-04-29 18:51:18 +02:00
Denis Arh
4af79a5f35 Apply namespace changes to all layers of records 2019-04-29 18:51:18 +02:00
Denis Arh
edee054392 Apply namespace changes to all layers of pages 2019-04-29 18:51:18 +02:00
Denis Arh
0c2286be83 Apply namespace changes to all layers of triggers 2019-04-29 18:51:18 +02:00
Denis Arh
40999e623e Apply namespace changes to all layers of modules 2019-04-29 18:51:18 +02:00
Denis Arh
a41e4bfc19 Apply namespace changes to all layers of charts 2019-04-29 18:51:18 +02:00
Denis Arh
8ef7b77a77 Namespace changes on all types, attachment repository, service 2019-04-29 18:51:18 +02:00
Denis Arh
d10a89b31a Add /namespace/{namespaceID} prefix to compose routes
Attachments, charts, modules, records, pages, triggers can now be
accessed under /namespace/{namespaceID}/...
2019-04-29 18:51:18 +02:00
Denis Arh
5bfbab6a4e Implement namespace CRUD + various small fixes
Other fixes and improvements:
 - add parseISODateWithErr and parseISODatePtrWithErr handlers for incoming data
 - add service & repository errors
 - cleanup old (unbound) attachment controllers from router
 - fix system repository error prefix (auth => system)
2019-04-29 18:51:18 +02:00
Denis Arh
010a1351ea Rename files & symbols 2019-04-29 18:51:18 +02:00
Denis Arh
d5c5c9ffae Fix broken monolith build entry point 2019-04-29 18:49:56 +02:00
Denis Arh
a1a0785f5e Remove obsolete documentation 2019-04-27 19:39:46 +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
6a01e13858 Cleanup attachment servig logic for CRM 2019-04-27 15:38:27 +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
5be1b607f5 Add 'users jwt <email>' command
Command generates valid JWT for that user
2019-04-27 13:19:14 +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
8f98cdd52f Update DCO and CONTRIBUTING.md 2019-04-27 11:06:04 +02:00
Denis Arh
eae4643274 Fix requred fields, create chan members type 2019-04-27 10:43:26 +02:00
Tit Petric
7cbfc705ae fix(.drone.yml): dockerfile location for mono build 2019-04-26 22:50:20 +02:00
Tit Petric
bf3e99bff9 add(all): initial DCO and CONTRIBUTING.md 2019-04-26 22:26:28 +02:00
Tit Petric
0ec0431beb upd(system): implement check, return handler 2019-04-26 22:11:28 +02:00
Tit Petric
98a3fc059e upd(all): regenerate handlers 2019-04-26 22:11:28 +02:00
Tit Petric
2cca75cb1d upd(codegen): check for func(w,r) in http handlers return 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
1a7c971597 fix(build): docker file cleanups 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
1dabd7a838 upd(system): extend user api with avatars 2019-04-26 22:11:28 +02:00
Tit Petric
f79f94da88 add(messaging): webhooks db migrations 2019-04-26 22:11:28 +02:00
Tit Petric
dd75d7db70 add(api,docs): webhooks schema and docs 2019-04-26 22:11:28 +02:00
Tit Petric
6cb7488083 upd(Makefile): don't install dependencies 2019-04-26 22:11:28 +02:00
Tit Petric
619fa4de02 upd(all): docker image build improvements 2019-04-26 22:11:28 +02:00
Tit Petric
78f9b7b53a upd(vendor): update vendor 2019-04-26 22:11:28 +02:00
Tit Petric
2952cebb62 upd(internal): encode ChannelID as string 2019-04-26 18:37:56 +02:00
Denis Arh
dc2dd4c787 Add missing userID field to output payload 2019-04-26 17:15:23 +02:00
Denis Arh
52a18cd8ad Removed obsolete package (github.com/gorilla/context) 2019-04-26 14:43:30 +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
4763ca863f Better support for array get params in request parsers
We now support `&var=1&var=2` and (or!) `&var[]=1&var[]=2`.
2019-04-26 09:32:16 +02:00
Denis Arh
1a8a7da000 New & improved channel histroy rest endpoint params 2019-04-26 07:35:19 +02:00