3
0

32 Commits

Author SHA1 Message Date
Tomaž Jerman
399f9a7cc4 Plug new envoy to record import endpoints 2023-10-09 14:45:01 +02:00
Tomaž Jerman
88804b460e Change filter slices to be []string vs []uint64
This is to allow front-end to properly handle ID values.
This change was done to keep consistent with what we were doing
before. Alternative version would be to have a sepparate struct
on the rest package.
2023-05-24 12:26:01 +02:00
Tomaž Jerman
f1f7ff7d8f Prevent record DS from using empty refs
These empty refs made the whole situation awkward to work in.
2023-04-07 15:43:24 +02:00
Tomaž Jerman
2196dd9ea4 Tweak envoy to better handle nested parent refs
* Don't overwrite parent refs if they are already set
* Allow page layout's pageID to be referenced as selfID
2023-04-07 12:39:27 +02:00
Tomaž Jerman
fce2ae90e3 Remove the primary flag from page layouts 2023-04-07 12:39:27 +02:00
Tomaž Jerman
9ec7139c84 Add page layout definitons to envoy 2023-04-07 12:39:27 +02:00
Tomaž Jerman
4f77edce5e Make page layout handles unique per page not ns 2023-04-07 12:39:27 +02:00
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
Tomaž Jerman
d7d41c813c Fix invalid references for progress page block 2023-03-29 12:33:29 +02:00
Tomaž Jerman
21e3710e8a Update envoy to not scope referenced workflows 2023-03-27 17:53:50 +02: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
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