3
0
Commit Graph

61 Commits

Author SHA1 Message Date
Denis Arh
ed4acf58ca Add support for IS NULL and IS NOT NULL syntax 2019-07-16 09:54:39 +02:00
Denis Arh
09aeaac5d7 Refactor app bootstraping, improve ext provider autodiscovery 2019-07-14 13:58:27 +02:00
Denis Arh
ab4b74620f Improve settings auto-discovery, make it provisionable 2019-07-14 11:24:43 +02:00
Denis Arh
225439e302 Ignore existing ns entries 2019-07-11 22:33:14 +02:00
Denis Arh
f601e0aa96 Improve record attachment upload capabilities
Add missing upload-to-non-existing record featue by moving endpoint away
from specific record and moving recordID, fieldName from PATH to POST
parameters
2019-07-08 08:14:19 +02:00
Denis Arh
6c3f5f1bbe Ignore deleted record when building report
Fix: cortezaproject/corteza-webapp-compose#68
2019-07-02 09:56:04 +02:00
Denis Arh
c1de0a5adf Do not parse filters on empty string (avoid "empty node set" error) 2019-07-02 06:27:25 +02:00
Denis Arh
8f3c9d72eb Allow page reorder on root
We require page creation permissions to reorder on root
2019-06-27 15:54:50 +02:00
Denis Arh
c52c2ae8f7 Add AST node validation 2019-06-26 23:01:51 +02:00
Denis Arh
59a5df253f Better record value sanitization, refactor & split tests 2019-06-26 23:01:26 +02:00
Denis Arh
1b6fafa743 Enhance page tree payload with access control data 2019-06-25 20:15:53 +02:00
Denis Arh
08947f2b9b Add namespace.manage permission rule
UI needs to know if user can access admin pages and manage specific namespace
Administrators (role) get this permission in the preset
2019-06-25 19:13:59 +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
6020381de1 Extract autosetup code for compose and system 2019-06-19 17:53:20 +02:00
Denis Arh
a8ae581e8f Cleaner CLI options definition (env keys as tags) 2019-05-30 02:08:01 +02:00
Denis Arh
1f8c2930c3 Fix integration tests 2019-05-28 12:51:46 +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
36b32fa2fe Move logger package from internal to pkg 2019-05-24 13:30:48 +02:00
Denis Arh
b66ed81136 More flexible "compose", move to Corteza
- more control over starting procedure, cli commands...
 - fix package paths
 - renaming symbols, comments, strings from Crust to Corteza
2019-05-24 12:42:35 +02:00
Tit Petric
4c166d92c6 Update codegen for cleanup/less verbosity 2019-05-22 16:37:53 +02:00
Denis Arh
0611e4b9c3 Add missing namespaceID when updating page 2019-05-21 19:08:03 +02:00
Denis Arh
4a629c0ea9 Add 'canGrant' flag on chart, module, namespace, page & trigger
Currently, all these flags point to service-level operation 'grant' on 'compose' resource.
2019-05-20 18:24:39 +02:00
Denis Arh
3b81f88957 Add AC check for page reorder 2019-05-20 18:15:45 +02:00
Denis Arh
d3e9362c12 Add missing service context in attachment & record controllers 2019-05-20 07:20:33 +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
f1443a076f Remove obsolete errors (pt2) 2019-05-16 14:55:28 +02:00
Denis Arh
0baf38fdb5 Protect record values on non-updatable fields 2019-05-16 11:31:41 +02:00
Denis Arh
55a0e613a6 Prevent module field name & type changes 2019-05-16 11:00:21 +02:00
Denis Arh
83e95a870c Improve compose module create/update, round created/updated-at values 2019-05-16 01:51:11 +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
3931e151ac Implement basic record/value-module/field access control 2019-05-14 17:09:39 +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
565651e142 Add permission resource type & access control for module field 2019-05-14 14:06:19 +02:00
Denis Arh
23719ac0eb Route service test logging through test Logf()
This is a temporary workaround to provide cleaner output during tests.
2019-05-14 14:05:50 +02:00
Denis Arh
7fc66e74ad Cleanup & enhance compose module & fields
- Add module field ID
 - Rename db table (compose_module_form => compose_module_field)
 - Add id, created_at, updated_at, deleted_at db columns
 - Rename json to options, module_id to rel_module
 - Fix primary keys (now just ID), add unique indexes (mod+place, mod+name)
 - Add foreign key from fields to modules
 - module repo Update() func no longer does REPLACE but UPDATE
 - in updateFields(), fields are removed more precisely (only missing fields are removed)
 - Add integration tests for module/field updates
2019-05-14 11:39:32 +02:00
Denis Arh
88d759ad19 Prepate compose repository test framework 2019-05-14 11:34:16 +02:00
Denis Arh
8f61787c53 Remove all system deps from compose 2019-05-13 08:57:34 +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
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
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
bdfc274087 Remove paging constraints 2019-05-04 18:19:07 +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