3
0
Commit Graph

83 Commits

Author SHA1 Message Date
Tomaž Jerman 4b113af9cc Allow content-type header to specify the charset 2022-01-18 21:50:19 +01:00
Denis Arh 60020f8510 Upgrade go-chi&co 2022-01-11 10:53:49 +01:00
Tomaž Jerman 907cb25ceb Add support for multipart/form-data request parsing 2021-12-21 09:11:51 +01:00
Denis Arh f2bec9b390 Force codegen to skip processing on error 2021-12-02 10:48:59 +01:00
Denis Arh 59ffe768a8 Fix create and update with unique constraints
When creating or updating resource that did not match unique constraint
filters, check wrongly reported not-unique error when matching (and
valid) resource was found in the store.

This fix adds explicit check if resource to be stored does not match
constraint filters and skips the rest of the constraint checking
procedure.
2021-10-13 17:35:32 +02:00
Vivek Patel 0bfa57acd2 Tweak adoc templates
- Updates path for generated docs
- Adds adoc codegen for expression and fixes expr_types.gen.adoc.tpl
2021-10-01 10:08:58 +02:00
Tomaž Jerman 7422b8be6b Allow single letter REST API param names 2021-09-22 11:26:14 +02:00
Tomaž Jerman 69b087549b Remove duplicate records with multi value fields 2021-09-17 12:00:14 +02:00
Denis Arh 5d6945cec9 Add locale handling, translation dec/enc and serving 2021-08-23 19:10:21 +02:00
Tomaž Jerman b95e878c92 Allow store functions to define codegen imports 2021-08-17 10:26:32 +02:00
Tomaž Jerman 98c16227b2 Define TypedValue comparators; Make parser init more flexible 2021-08-16 09:15:15 +02:00
Denis Arh a7e2eec9fd Improve expr types, add r/w locking 2021-07-14 10:49:32 +02:00
Denis Arh 20e05280b3 System wide RBAC changes 2021-07-08 11:42:18 +02:00
Denis Arh 46f86dbd21 Role migration 2021-07-08 11:22:11 +02:00
Denis Arh f867b310af Rework/cleanup log stacktrace level, add LOG_STACKTRACE_LEVEL to control it 2021-07-08 11:22:11 +02:00
Denis Arh 7383310d36 Better handling empty/uninit values 2021-04-03 13:06:01 +02:00
Denis Arh fdf916b7f9 Rework/simplify expr.Vars handling 2021-04-01 21:10:51 +02:00
Denis Arh 597c18fd16 Improvments on expressions, gw tests 2021-03-30 14:58:04 +02:00
Denis Arh b428752412 More strict variable handling in assigners/converers 2021-03-25 08:15:23 +01:00
Denis Arh 261ad71460 Serve event contraints via API 2021-03-18 08:20:55 +01:00
Denis Arh 79ed77a379 Fixed typos across the codebase (can not, cannot) 2021-03-17 17:25:05 +01:00
Denis Arh 8ce11a3376 Implement email sending wf functions 2021-03-16 20:24:34 +01:00
Denis Arh 82c76bbe6c Do not decode JSON from body if no POST params are spec. 2021-03-12 14:50:40 +01:00
Denis Arh 7e78867733 Implement delay & prompt steps 2021-03-12 13:12:07 +01:00
Denis Arh 6903ecfcf2 Fix record-value setting 2021-03-12 13:12:07 +01:00
Denis Arh cfe02be081 Add support for labels on automation functions
Idea for these labels is to give instructions which labels to copy
on step and on workflow when function step is added to the graph.

Labels are defined with "step,workflow", "workflow" or "step" for value.
UI should follow these instructions when copying labels to workflow
and/or step.
2021-03-12 13:12:07 +01:00
Denis Arh 1fa6c6cb9b Improve event-types <> workflow 2021-03-12 13:12:07 +01:00
Denis Arh 13b57c8d72 Automation workflow implementation 2021-03-12 13:12:07 +01:00
Denis Arh d56f2fa82f Codegen for automation types & functions 2021-03-12 13:12:07 +01:00
Denis Arh d44e3474e8 More verbose info on store scan error 2021-03-12 13:12:07 +01:00
Denis Arh 53be013377 Implement new auth UI, deprecate auth API endpoints 2021-02-23 07:34:10 +01:00
Denis Arh 34d9f6bf7b Fix paging cursor sort-direction flag
Fixes issue cortezaproject/corteza-webapp-compose#213
2021-01-25 16:45:21 +01:00
Tomaž Jerman bf3bc2af68 Options doc codegen tweaks 2020-12-08 10:16:43 +01:00
Tomaž Jerman 402289016d Doc codegen tweaks & cleanup 2020-12-05 10:30:22 +01:00
Denis Arh cf00a274fa Minor codegen code cleanup 2020-12-05 07:46:08 +01:00
Denis Arh cccb3ec5f8 Port types codegen to yaml.v3
v3 threats empty defs a bit differently (see changes in yaml files)
2020-12-05 07:44:49 +01:00
Urban Klinc 3b47701ffa Add events docs template + logic 2020-12-04 14:27:13 +01:00
Urban Klinc e57b8e8cad Change gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2020-12-03 09:31:00 +01:00
Urban Klinc d3f85d953e Change yaml.v2 to yaml.v3 and UnmarshalYAML to v3 standard 2020-12-03 09:27:38 +01:00
Denis Arh 44f7166d97 Options codegen improvements
- Add extra cli switches to generate docs from options
 - More automation/fallbacks/default values for options
2020-12-02 16:12:07 +01:00
Urban Klinc 6b928d3a18 Fix a typo, add empty line at end of file 2020-12-02 11:59:21 +01:00
Urban Klinc 595d929e89 Add options.gen.adoc.tpl, modify options.go to enable .adoc codegen from .gen.adoc.tpl 2020-12-02 11:58:26 +01:00
Denis Arh 66c5501d4f Fix RDBMS store upsert + labels & settings 2020-12-01 15:45:04 +01:00
Denis Arh 8cc6e5917f Fix store/rdbms template (invalid cursor gen fn) 2020-11-27 11:15:16 +01:00
Denis Arh 65d43e7ed5 Rename options tpl for consistency 2020-11-27 11:14:49 +01:00
Denis Arh b4b3e15d81 Copy error handling fn from cli pkg
This way we can avoid problems when recompiling codegen bin
and invalid code has been generated
2020-11-27 10:51:40 +01:00
Urban Klinc efc418e5fd Fix typo, rework readme 2020-11-27 09:37:16 +01:00
Urban Klinc df9ebe54aa Add codegen template + logic, modifiyed codegen.go to accept new files 2020-11-26 11:11:08 +01:00
Denis Arh b6eb143c38 Pagination fixes 2020-11-26 06:23:24 +01:00
Denis Arh 11ea5df303 Pagination/sorting fixes & improvements 2020-11-16 14:20:43 +01:00