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
Tit Petric
b9cd623221
upd(codegen): build generators once, rename
2018-11-21 16:04:28 +01:00
Tit Petric
f8bdda0313
upd(v2 codegen): add perm generator, rename
2018-11-21 14:58:55 +01:00
Denis Arh
e5ff3ae7b3
Improve type-set generator, apply to system, sam
2018-11-21 07:02:57 +01:00
Denis Arh
297533e03c
Add <T>Set ([]*<T>) type generator
2018-11-21 05:49:30 +01:00
Tit Petric
d1fba3b3b1
add(codegen): docs codegen for all
2018-11-05 13:37:18 +01:00
Tit Petric
fdf24b3e2c
Refactor for new system service
...
- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
2018-11-05 12:04:04 +01:00
Tit Petric
e36621f016
upd(all): parse uint64 from post arrays
2018-10-25 12:10:35 +02:00
Tit Petric
31c38f683c
upd(all): json []uint64 should also be encoded as str
2018-10-25 10:52:13 +02:00
Denis Arh
6ea52301f4
Fix multipart codegen
2018-10-22 13:24:04 +02:00
Tit Petric
803b72d979
fix(sam): codegen for multipart, gofmt service
2018-10-22 11:12:32 +02:00
Tit Petric
e259a949b8
upd(all): codegen uint64 types with string encoding
2018-10-16 18:12:04 +02:00
Tit Petric
dae76ef7bc
upd(codegen): added simple int type
2018-10-16 13:01:11 +02:00
Tit Petric
264ec19a9b
upd(all): disable codegen for crm/types, gofmt
2018-10-08 21:18:20 +00:00
Denis Arh
17a3f9461e
Data structure naming clenaup
2018-09-26 16:49:51 +02:00
Denis Arh
0400451823
Add upload/attachment capabilities
2018-09-08 22:04:36 +02:00
Tit Petric
30d12b4041
upd(codegen): update some basic templates
2018-09-04 15:38:05 +02:00
Tit Petric
bdb0844a48
add(auth): separate webservice for auth
2018-09-04 15:37:43 +02:00