Handle multiple backends for the TypeInstance#657
Conversation
9a22c5d to
e134b65
Compare
e134b65 to
15698eb
Compare
| typeInstance.Value = typeInstanceValue | ||
| } else { | ||
| // for backward compatibility, if there is an artifact without value/backend syntax, | ||
| // treat it as a value for TypeInstance |
| @@ -50,7 +50,7 @@ readonly CAPACT_USE_TEST_SETUP="false" | |||
| # | |||
There was a problem hiding this comment.
will be removed before merge
mszostok
left a comment
There was a problem hiding this comment.
In general, our contract is not implemented. So I didn't run the test as it shouldn't work that way.
efe5dbb to
d00eed2
Compare
d00eed2 to
b5eb0f2
Compare
mszostok
left a comment
There was a problem hiding this comment.
Overall it LGTM 👍 But please address my comments and additionally find in our code base all TODO(https://github.com/capactio/capact/issues/634) and fix them. Thanks!
946969c to
acc2b19
Compare
acc2b19 to
ac92303
Compare
|
|
||
| typeInstance.Value = unmarshalledTI.Value | ||
| if unmarshalledTI.Backend != nil { | ||
| if typeInstance.Backend != nil { |
There was a problem hiding this comment.
nit: IMO we should return an error when typeInstance.Backend.ID is not set. As setting context without backend ID means that it will be stored in built-in storage and this storage doesn't allow context by definition.
| filename=$(basename -- "$filename") | ||
| prefix="${filename%.*}" | ||
|
|
||
| # remove value key if exists |
There was a problem hiding this comment.
For consistency reason, it would be good to also have unpackValue conf option here. When I went through our manifests, it was hard to understand why it works in this way, as this is a "hidden" functionality.
But let's do that on a new follow-up PR. It's not a blocker for merging this one 👍
Description
Changes proposed in this pull request:
will create an appropriate TypeInstance object and create a mutation.
valueto output,strip-value: true,valueif exists in the artifacts.Testing
Mattermost installation
make dev-clusterport-fowardfor capact-gateway :capact act run mattermost-installandcapact act watch mattermost-installto observe the status of the running action.capact act delete mattermost-installand helm charts.PostgreSQL installation
Run integration tests
Currently, the tests are failing due to a lack of storage backend integration. It will be fixed by: #655
Note: No longer valid. The PR was merged and this branch was updated. We can run tests by simple:
make test-integrationRelated issue(s)