Skip to content

Conversation

tarikBensalem-DA
Copy link

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

val participantId = participant.id // ID of the new participant
participant.topology.party_to_participant_mappings.propose(<party-id>, Seq((participantId, <participant-permission>)), store = syncId)
For this command a list of all parties can be found by running <party-id> can be found by first running:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For this command a list of all parties can be found by running <party-id> can be found by first running:
You can list all parties that are currently on the old node by running:

Copy link
Contributor

Choose a reason for hiding this comment

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

What extra information does below command give us compared to the party_to_participant_mappings.list above?

val partyId = parties(<index>).party
The available options for <participant-permission> are ``Submission``, ``Confirmation``, and ``Observation``.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd move this to the top of this, right after the propose command, as it directly explains that one.

@martinflorian-da martinflorian-da added the static Used to label PRs for which static tests suffice label Oct 15, 2025
val syncId = participant.synchronizers.list_connected().head.synchronizerId
participant.topology.party_to_participant_mappings.list(syncId, filterNamespace = <namespace>)
participant.topology.party_to_participant_mappings.list(syncId, filterParticipant = <namespace>)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the context for this change?

We're interested in potentially multiple participants here, so filterNamespace seems like the right pick?

val parties = participant.parties.list (<participantIdentifier>)
Then you can map the party to a variable using a command asa such where <index> is the 0 based index of the party in the list:
Copy link
Contributor

Choose a reason for hiding this comment

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

sentence looks broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

static Used to label PRs for which static tests suffice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants