Skip to content

Fix #340: Connection profile - bugs and missing values #523

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

Closed

Conversation

VijetaPriya47
Copy link
Contributor

This PR fixes issue #340 by addressing the following issues with connection profiles:

  1. CA URL in connection profile starts from http://, even if TLS is enabled

    • Fixed by ensuring the protocol is set based on TLS settings
  2. Missing orderers section (required when service discovery is disabled)

    • Added orderers section to connection profiles
  3. Missing channels section (required when service discovery is disabled)

    • Added channels section to connection profiles

These changes ensure that Node.js clients can use the connection profiles with service discovery disabled, which is particularly important in dev mode.

Fixes #340

@@ -101,9 +101,9 @@ export default class SetupDockerGenerator extends Generator {
});
}

_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[]): void {
_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[], channels: ChannelConfig[] = [], ordererGroups: OrdererGroup[] = []): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please require explicit parameters (less prone to errors)

Suggested change
_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[], channels: ChannelConfig[] = [], ordererGroups: OrdererGroup[] = []): void {
_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[], channels: ChannelConfig[], ordererGroups: OrdererGroup[]): void {

VijetaPriya47 and others added 2 commits April 14, 2025 01:06
Added Explicit Parameters (as suggested by the mentor)

Co-authored-by: Jakub Dzikowski <jakub.t.dzikowski@gmail.com>
Signed-off-by: Vijeta Priya <67923889+VijetaPriya47@users.noreply.github.com>
@VijetaPriya47 VijetaPriya47 closed this by deleting the head repository Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection profile - bugs and missing values
3 participants