-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable non-multiparty namespaces #878
Conversation
Codecov Report
@@ Coverage Diff @@
## main #878 +/- ##
==========================================
+ Coverage 99.96% 99.97% +0.01%
==========================================
Files 299 302 +3
Lines 19500 19650 +150
==========================================
+ Hits 19494 19646 +152
+ Misses 5 4 -1
+ Partials 1 0 -1
Continue to review full report at Codecov.
|
f988a66
to
1322d87
Compare
… Sender Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
If multiparty mode is disabled for a given namespace, do not initialize the multipary manager or any of the messaging managers. Adjust other components and routes to deal with these managers potentially being nil. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Due to spf13/viper#1386, array keys with mixed case are not parsed correctly. At least for the time being, mitigate by changing some keys to all lowercase. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
To align with other components, Definition Sender is the entry point for initiating the creation of contract FFIs/APIs, but it calls out to Contract Manager for validation. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
No need to create a message in this case. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Avoid starting plugins more than once. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, thank you!
@@ -44,7 +44,7 @@ func InitConfig(config config.ArraySection) { | |||
} | |||
|
|||
func InitConfigDeprecated(config config.Section) { | |||
config.AddKnownKey(coreconfig.PluginConfigType, NewFFDXPluginName) | |||
config.AddKnownKey(coreconfig.PluginConfigType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making a note we might want to log or track somewhere that there is no longer a default. Migration guide 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, I tagged this PR with "migration consideration" in the hopes that one of us remembers why. Thankfully the CLI has explicitly populated "type" for a while (since hyperledger/firefly-cli#156). However, we will want to cut a 1.0.x patch release that includes #882, and recommend upgrading to that and fixing all config warnings as part of the migration journey to 1.1.
@@ -700,7 +730,7 @@ func (nm *namespaceManager) loadNamespace(ctx context.Context, name string, inde | |||
config.Multiparty.Contracts = contracts | |||
p, err = nm.validateMultiPartyConfig(ctx, name, plugins) | |||
} else { | |||
p, err = nm.validateGatewayConfig(ctx, name, plugins) | |||
p, err = nm.validateNonMultipartyConfig(ctx, name, plugins) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Farewell gateway 👋🏻
Part of FIR-12.
definitions
package (so it now has the definition "senders" alongside the definition "handlers"). When multiparty is disabled, the senders call directly to the matched handlers without an intermediate broadcast message.Potential migration-breaking change: the deprecated
dataexchange.type
key no longer has a default offfdx
. Older config files that omitted this key will fail to parse. See #882.