Denis Arh
7f04c2cc2a
Fix monolith container building
2019-05-07 22:57:11 +02:00
Denis Arh
970f545156
Move avail. route output to /routes endpoint
2019-05-07 21:18:23 +02:00
Denis Arh
6e8fbe8935
Port monitor log to zap logger
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
98992fcf70
Add IDE files to .gitignore
2019-05-07 10:40:44 +02:00
Denis Arh
56ff8a1075
CRM=>Compose application migration
2019-05-06 09:02:26 +02:00
Denis Arh
4bb03ca492
Add OK responses on valid pin/bookmark/reaction requests
2019-05-06 08:02:37 +02:00
Denis Arh
f557247cde
Extend default JWT lifetime to 30 days
2019-05-06 08:02:37 +02:00
Tit Petric
9c30a6f807
upd(Dockerfile.crust): custom entrypoint to generate webapp configs
...
Signed-off-by: Tit Petric <black@scene-si.org >
2019-05-05 13:47:32 +00:00
Denis Arh
bdfc274087
Remove paging constraints
2019-05-04 18:19:07 +02:00
Denis Arh
d47db8d08f
Merge branch 'compose'
2019-05-04 17:02:06 +02:00
Denis Arh
c467edb02b
Fixing trigger saving, make (old) migration step more robust (drop if exists)
2019-05-04 12:32:55 +02:00
Denis Arh
fefc75f392
Refactor & fix create & read endpoints
2019-05-01 10:24:31 +02:00
Denis Arh
a9358610f5
Make sign & userID params for attachment endpoints non-required
2019-04-30 13:33:25 +02:00
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