Skip to content

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

Closed
VijetaPriya47 wants to merge 4 commits intohyperledger-labs:mainfrom
VijetaPriya47:vj-contri-fix-340
Closed

Fix #340: Connection profile - bugs and missing values#523
VijetaPriya47 wants to merge 4 commits intohyperledger-labs:mainfrom
VijetaPriya47:vj-contri-fix-340

Conversation

@VijetaPriya47
Copy link
Copy Markdown
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

}

_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[]): void {
_createConnectionProfiles(global: Global, orgsTransformed: OrgConfig[], channels: ChannelConfig[] = [], ordererGroups: OrdererGroup[] = []): void {
Copy link
Copy Markdown
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
OsamaRab3 added a commit to OsamaRab3/fablo that referenced this pull request Aug 12, 2025
… channels in connection profile

Signed-off-by: Osama Rabea <osrab3@gmail.com>
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