3
0

55 Commits

Author SHA1 Message Date
Tomaž Jerman
7c006753de Fix invalid codegen for compose/envoy/store_encode
Lapsus in component ident field caused too much logic to be
removed from the generated code.

This caused some _happy accidents_ when matching up to existing
resources.
2023-04-02 12:03:25 +02:00
Tomaž Jerman
b041e4fb32 Fix workflow importing and referencing
* Page blocks used invalid ref. formats & value setters.
* Some default values were skipped due to how yaml decoder works.
2023-04-02 11:11:19 +02:00
Tomaž Jerman
ef94c90da1 General pkg/envoyx tweaks and fixes
* Fix invalid RBAC rule unmarshling where rules under resources
  incorrectly set resource references.
* Make reference assumptions not so aggressive where they will
  only apply when missing.
* Add missing skipIf evaluation checks.
2023-04-02 11:11:19 +02:00
Tomaž Jerman
2c42ec631e Support setting values within Envoy 2023-04-02 11:11:19 +02:00
Vivek Patel
8cf8161e50 Fix attachment preview url 2023-04-01 22:56:18 +05:30
Tomaž Jerman
d7d41c813c Fix invalid references for progress page block 2023-03-29 12:33:29 +02:00
Tomaž Jerman
d868391798 Update NS clone & import to utilize transactions 2023-03-27 17:57:15 +02:00
Tomaž Jerman
21e3710e8a Update envoy to not scope referenced workflows 2023-03-27 17:53:50 +02:00
Vivek Patel
c9740a6527 Add support for icons
- Add icon endpoint for list and upload
- Add endpoint to update icon to specific page
- Add compose icon settings for max size and mimetype limitation
2023-03-23 08:50:29 +01:00
Tomaž Jerman
c0ce0f6ac5 Allow store encoders to post-process after all resources of type are imported 2023-03-22 10:56:20 +01:00
Tomaž Jerman
22a70f61a8 Fix invalid matchup when importing resources
Matchups were not scoped which caused them to get matched
to any matched ident, regardles of scope.

This caused NS duplication to "move" original resources to the
cloned one instead of copying them.
2023-03-20 16:07:49 +01:00
Tomaž Jerman
6f5bb2ebd5 Port namespace import/export svc to Envoy v2 2023-03-20 11:42:49 +01:00
Tomaž Jerman
030a440885 Port cli import/export commands to Envoy v2 2023-03-20 11:42:49 +01:00
Tomaž Jerman
6c40b33b5e Fix error formatting lint issue 2023-03-17 10:58:46 +01:00
Tomaž Jerman
525df34579 Touchups 2023-03-17 10:58:46 +01:00
Tomaž Jerman
2f015a26f6 Improve error handling & recovery 2023-03-17 10:58:46 +01:00
Tomaž Jerman
a0e25b457f Cleanup record encoding logic, add tests 2023-03-17 10:58:46 +01:00
Tomaž Jerman
1e6cbf6123 Add logic for record datasourceimport/export 2023-03-17 10:58:46 +01:00
Tomaž Jerman
b975b2b56a Change datasource mapping to use the old state vs the new state 2023-03-17 10:58:46 +01:00
Tomaž Jerman
eb63f41a44 Allow encoders/decoders to terminate for impossible scenarios 2023-03-17 10:58:46 +01:00
Tomaž Jerman
7af889c164 Add logic for resource translation import/export 2023-03-17 10:58:46 +01:00
Tomaž Jerman
c42cf298de Tweak logic & add base RBAC import/export test 2023-03-17 10:58:46 +01:00
Tomaž Jerman
cf30aeb75d Tweak logic & add base import/export test 2023-03-17 10:58:46 +01:00
Tomaž Jerman
0bfc2a7f87 Add resource skipping for store encoders 2023-03-17 10:58:46 +01:00
Tomaž Jerman
f661206a79 Tweak envoy config structs
Have each node define it's own configs where the decoder may
define the wanted values and the global config populates missing
values in the Bake step.
2023-03-17 10:58:46 +01:00
Tomaž Jerman
2e9ba97dda Add missing bits from V1, slight touchup 2023-03-17 10:58:46 +01:00
Tomaž Jerman
a8b60c6525 POC exporting record datasources 2023-03-17 10:58:46 +01:00
Tomaž Jerman
25b880e049 POC importing record datasources 2023-03-17 10:58:46 +01:00
Tomaž Jerman
804d59722a Base envoy codegen 2023-03-17 10:58:46 +01:00
Tomaž Jerman
1e929210b4 Add codegen for resource value getter/setter
Getters and setters will be used by Envoy to update values.
Most of the getters/setters can be deducted from the model
definitions.
2023-03-17 09:27:34 +01:00
Emmy Leke
c6f88e2679 Add tab block to compose 2023-03-10 15:16:13 +01:00
Tomaž Jerman
7b46f10493 Assure multi value fields are properly & completely updated 2023-03-08 17:51:22 +01:00
Tomaž Jerman
bda9c72009 Assure record value position for patch endpoint 2023-03-08 17:51:22 +01:00
Tomaž Jerman
2d174620fa Add endpoint for bulk record patch 2023-03-08 17:51:22 +01:00
Jože Fortun
ee392ecf16 Add ability to toggle block border 2023-02-10 11:42:29 +01:00
Vivek Patel
ef37121872 Fix record tests
Issue with returning invalid, empty errors
2023-01-26 12:17:04 +01:00
Tomaž Jerman
a5a716e451 Add NoAnimation to compose chart config 2023-01-26 10:41:35 +01:00
Vivek Patel
83f95ed5da Refactor data-privacy endpoints
Moved DataPrivacyRequest and DataPrivacyRequestComment under DataPrivacy route
2023-01-25 22:25:48 +05:30
Vivek Patel
e7fa07cfae Extends DeDup capabilities
Support modifier for value search and allow ability to select matching criteria for multi value field

- Removed name from rule for now
- Value modifier to search with are ignore-case, case-sensitive, fuzzy-search, sounds-like
- Multi value matching criteria are one-of, equal
- Migrate RecordDeDup config for module, by adding upgrade fix for module.config.recordDeDup to migrate as per to the latest DeDupRule struct.
2023-01-25 21:54:36 +05:30
kinyaelgrande
ad46c275f9 Add support for viewing and undeleting soft-deleted records 2023-01-19 17:55:47 +03:00
Tomaž Jerman
0c040cce8a Add order by over dimensions for compose record reports 2022-12-12 15:22:09 +01:00
Tomaž Jerman
3bb299ce72 Fix part of the broken tests 2022-12-09 11:18:18 +01:00
Denis Arh
207f01daf5 Refresh code templates and regenerate go files
Mostly minor changes related to go 1.19 comment formatting.
2022-11-27 10:57:03 +01:00
Denis Arh
e5d67c6e16 Error package related codebase improvements
Remove/replace "github.com/pkg/errors" and "errors"
with "fmt" or "corteza/server/pkg/errors"

Closes #528
2022-11-27 10:29:36 +01:00
skamensky
9ac63876be Add support for RDBMS schema management
With `DB_ALLOW_DESTRUCTIVE_CHANGES=true` Corteza can change DB tables and columns when Compose Module configuration changes.
2022-11-26 13:10:39 +01:00
Katrin Yordanova
fb03712755 Address compose chart issues 2022-11-24 16:10:10 +01:00
Vivek Patel
1699e3f94b Remove handle requirement from resource API
We removed handle requirement for all resource like namespace(slug), module, user, page, chart.

Due to that namespace import/export was broken as we were using handle as reference, hence fixed it by replacing handle usage with ID of resource.

It also fixes index of template table for handle column.
2022-11-24 10:28:22 +02:00
Denis Arh
40f0b15f64 Refactor old seeder code and restructure commands
corteza
    users
        synthetic
            generate
            remove
    compose
        records
            synthetic
                generate
                remove
2022-11-18 10:55:18 +01:00
Denis Arh
a48dfc0261 Refactor synthetic compose record generation 2022-11-18 10:55:18 +01:00
Denis Arh
06adbac59e Move seeder commands to sys & cmp components 2022-11-18 10:55:18 +01:00