3
0

93 Commits

Author SHA1 Message Date
Denis Arh
709a3a946a Improve auditlog meta handling (support for omitting empty values) 2020-05-31 10:38:27 +02:00
Denis Arh
ef47a0d612 Small codegen bits changes, add adoc template for events 2020-05-27 11:06:10 +02:00
Denis Arh
4d751c1875 Improve actionlog err/message placeholder replacement 2020-05-26 19:02:32 +02:00
Denis Arh
a0c732f6ff Add check if lambda action can be called 2020-05-26 15:48:05 +02:00
Denis Arh
a7bc1e4d37 Cleanup actions, errors, implement actionlog for stats 2020-05-26 11:46:55 +02:00
Denis Arh
e8b81396ef Support for HTTP errors, add sink impl. 2020-05-26 08:07:03 +02:00
Denis Arh
5f8fb8a294 Implementation actions & errors for access control, auth, role & user 2020-05-26 08:00:53 +02:00
Denis Arh
086411722e Action log implementation 2020-05-22 07:16:14 +02:00
Denis Arh
b1a7425ddc Refactor event codegen into subdir 2020-05-22 07:16:14 +02:00
Denis Arh
23bf0c52c7 Add missing raw&has for post&get 2020-04-08 17:02:07 +02:00
Denis Arh
5a966a2303 Add request param getters & checkers 2020-03-27 18:36:05 +01:00
Denis Arh
d2fcb352ec Cleanup & refactor protobuf codegen 2020-02-26 08:20:59 +01:00
Denis Arh
991af03db7 More robust event args decoding 2020-02-25 06:53:54 +01:00
Denis Arh
9e14b50bce Add ability to create events with imutable args 2020-02-25 06:47:41 +01:00
Denis Arh
abf4d106bb Improve eventbus & constraints handling
Constraints are now preparsed into active structs
that can be used for matching
2020-01-18 07:05:35 +01:00
Denis Arh
75ab704ad8 Add event codegen 2020-01-18 07:05:34 +01:00
Denis Arh
f5f0096035 Remove internal/test pkg 2019-10-01 17:42:26 +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
b732894109 Fix codegen and its outputs 2019-05-24 12:46:30 +02:00
Tit Petric
4c166d92c6 Update codegen for cleanup/less verbosity 2019-05-22 16:37:53 +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
Denis Arh
94d459eb7d Rename handlers/request receivers 2019-05-16 00:52:50 +02:00
Denis Arh
1c1643fbe7 Add support for auditable params
With Auditable() func on request structs we can now be more selective
about params we want to log:
 - sensitive data (with sensitive flag on params)

 - filesize & name on uploads
2019-05-16 00:43:54 +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
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
Tit Petric
2cca75cb1d upd(codegen): check for func(w,r) in http handlers return 2019-04-26 22:11:28 +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
9e92b43923 Add ability to customize package name for typeset codegen 2019-04-03 17:46:39 +02:00
Tit Petric
a1aadeaa2f upd(codegen): custom types, camel case structs 2019-04-03 14:38:13 +02:00
Denis Arh
78763c715d Refactor permission resources 2019-03-16 23:56:45 +01:00
Denis Arh
8d43907bd6 Basic (rest) structure for page & record/module attachments 2019-03-01 00:30:46 +01:00
Denis Arh
79229ef1f1 Append suffix to receiver name to avoid naming colision
Names starting with letter r colided with r for *http.Request
2019-02-28 23:51:36 +01:00
Mitja Zivkovic
8cc4551efc upd(system): add Permissions API 2019-02-21 20:48:06 +01:00
Tit Petric
e16f24518d upd(messaging): extend permissions codegen 2019-02-08 21:24:06 +01:00
Tit Petric
ba5413b583 upd(messaging): update codegen, add spec to codegen 2019-02-05 15:11:52 +01:00
Tit Petric
06f75376bc upd(sam): rename to messaging 2019-02-05 15:09:52 +01:00
Tit Petric
13a11ab3b4 upd(codegen): typeset updates with Resources() 2019-02-05 14:41:57 +01:00
Mitja Zivkovic
4d57db5897 upd(internal): rbac.Operations to rules.Operations 2019-01-28 10:53:19 +01:00
Tit Petric
eb9869bcdf upd(codegen): special handling of *Set types 2018-12-04 16:36:52 +01:00
Tit Petric
43554592e4 upd(codegen): enable imports with requests 2018-12-04 15:26:51 +01:00
Tit Petric
71fb80945a fix(codegen): rbac.Operations is a type 2018-12-04 14:38:31 +01:00
Tit Petric
f2dfffbab2 update:
- codegen includes rbac since it's used everywhere,
- update permissions structure naming for title/subtitle
2018-12-04 14:38:31 +01:00
Tit Petric
8019940dd6 fix(codegen): fix syntax error, gofmt 2018-11-29 21:06:34 +01:00
Tit Petric
6c2d11c050 upd(codegen): keep readme indentation 2018-11-25 13:04:48 +01:00
Tit Petric
6a3fd9bc3b upd(codegen): follow golang standard pkg layout 2018-11-25 11:41:46 +01:00
Tit Petric
52359771e9 add(codegen): source formatting for permissions 2018-11-25 11:16:25 +01:00