3
0
Commit Graph

124 Commits

Author SHA1 Message Date
Tomaž Jerman
1971d922be Update mocks 2019-09-20 12:27:38 +02:00
Tomaž Jerman
615c2337ab Run deferred scripts 2019-09-20 12:27:38 +02:00
Tomaž Jerman
2ec9f15198 Prevent system field ambiguity 2019-09-20 09:25:44 +02:00
Tomaž Jerman
b508ee07c9 Fix mockgen paths 2019-09-19 14:47:23 +02:00
Denis Arh
dc99bc2cb8 Add record procedure exec capabilities
This will allow us to perform bulk operations on record & record-values
2019-09-13 11:29:01 +02:00
Tomaž Jerman
c8e04f1919 Allow default values 2019-09-12 15:57:35 +02:00
Denis Arh
d6b7e0c9bf Add integ. tests for automation scripts & triggers 2019-09-11 13:40:06 +02:00
Denis Arh
8a1a4605ef Add record integ. tests 2019-09-11 08:26:39 +02:00
Denis Arh
1ad15e77de Remove old compose integ. tests 2019-09-11 08:26:16 +02:00
Denis Arh
6027caedbc Add compose integ. tests for module, ns, page & chart 2019-09-10 20:44:34 +02:00
Denis Arh
0f500dfdbb Add basic intg. tests to compose & system 2019-09-10 05:00:55 +02:00
Denis Arh
08e9d5af5b Permission testing 2019-09-10 03:46:59 +02:00
Denis Arh
73e0180600 Remove internal/ from compose 2019-09-09 13:04:12 +02:00
Denis Arh
b4142b35fa Update protobuf, regen proto code 2019-09-06 09:16:48 +02:00
Denis Arh
78660c47ec Fix minor typos in compose 2019-09-02 08:29:28 +02:00
Denis Arh
0792f04262 Mail GW automation basics
- automation service for runner, script, trigger
 - mailproc service for email parsing
 - MailMessage type & protobuf
2019-09-01 15:33:16 +02:00
Denis Arh
0a3e2ea7e5 Add standard error responses on attachment ctrls 2019-08-30 14:40:49 +02:00
Denis Arh
0ab59c791b Reorganize & move ctrls under route groups 2019-08-30 14:40:49 +02:00
Tomaž Jerman
0cb542cb9e Make import fail reason a string 2019-08-29 18:48:45 +02:00
Tomaž Jerman
530731736b Add tests 2019-08-29 18:48:45 +02:00
Tomaž Jerman
986c69a812 Provide entry count 2019-08-29 17:48:42 +02:00
Tomaž Jerman
a8b5e3b063 Add record importing from json & csv 2019-08-29 17:48:42 +02:00
Tomaž Jerman
d0647f0f89 Define record import routes 2019-08-29 17:48:42 +02:00
Denis Arh
0730ee7815 Do not discard script results on before* triggers 2019-08-28 11:57:26 +02:00
Denis Arh
8d5f4d3a38 Fix integration test (still refered to old tables) 2019-08-27 18:06:16 +02:00
Denis Arh
b8088caab5 Add option to filter namespaces by slug 2019-08-26 08:54:46 +02:00
Denis Arh
91633e9695 Make automation S&T namespace bound 2019-08-26 08:39:33 +02:00
Denis Arh
eb1c1cf65f Add trigger management access-control, disable direct trigger management 2019-08-25 09:54:16 +02:00
Denis Arh
c671de3df7 Adopt new protobuf structure, automation code cleanup 2019-08-24 17:49:48 +02:00
Denis Arh
99b02bd37b Revert to with(ctx) pattern for automation script loader 2019-08-24 13:05:42 +02:00
Denis Arh
f3ee556b3f Make corredor calls more configurable
JWT is now sent as part of the Config prop, along with msg/sys/cmp base api URLs

This still needs to be configured through env:
 - CORREDOR_API_BASE_URL_SYSTEM
 - CORREDOR_API_BASE_URL_MESSAGING
 - CORREDOR_API_BASE_URL_COMPOSE
2019-08-24 12:21:42 +02:00
Denis Arh
2b3f196e60 refactored/renamed: ScriptRunner => Corredor 2019-08-24 12:14:41 +02:00
Denis Arh
683f415e8c Remove compose_trigger table after data migration 2019-08-23 13:49:36 +02:00
Denis Arh
e4f0c5a3b6 Improve automation script create/update flow 2019-08-23 13:49:36 +02:00
Denis Arh
9a428f05b4 Add missing real-record-col 2019-08-23 13:49:36 +02:00
Denis Arh
5bfafd4adc Support run-as for automation scripts
Add grpc-server capabilities for system service (make jwt, find user by id)
Add jwt generation (via grpc) to compose for run-as automation-scripts
Add SuperUser for system-level tasks and operations that are ran in the background w/o initiator
and require permision checking
2019-08-23 13:49:36 +02:00
Denis Arh
1611f9ede7 Add module-name uniqueness check 2019-08-23 13:49:36 +02:00
Denis Arh
7fd9c7fdfb Support searching modules by name 2019-08-23 13:49:36 +02:00
Denis Arh
a0bbe01c24 Support record sorting by ID 2019-08-23 13:49:36 +02:00
Denis Arh
751317d544 Support automation script testing and manual running 2019-08-23 13:49:36 +02:00
Denis Arh
f66a9ce766 Better corredor error handling 2019-08-23 13:49:36 +02:00
Denis Arh
3db9368a99 Add ability to pass custom struct as module & record to script runner 2019-08-23 13:49:36 +02:00
Denis Arh
ffdeef1da2 Support for manual/explicit running of user scripts
Moved user-script endponts under /automation/
Add permission checking for trigger running
2019-08-23 13:49:36 +02:00
Denis Arh
6463df9af1 Improvements of automation trigger management 2019-08-23 13:49:36 +02:00
Denis Arh
2094684d5b Removing old trigger struct, svc, repo 2019-08-23 13:49:36 +02:00
Denis Arh
38fe06998c Extreact & refactor automation scripts & triggets
Automation (scripts and triggers) is now a standalone package and can be used
in other services.
2019-08-23 13:49:36 +02:00
Denis Arh
c0552d3e6a Include only enabled triggers/scripts 2019-08-23 13:49:36 +02:00
Denis Arh
94e2acfc17 Add ability to disable script runner calls
With script runner disabled, all critical scripts would fail
2019-08-23 13:49:36 +02:00
Denis Arh
ecc73e10fc Redirect grpclog to zap logger 2019-08-23 13:49:36 +02:00
Denis Arh
bb7dc471d7 Add script-runner configuration capabilities 2019-08-23 13:49:36 +02:00