-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: multisig join --group arg #782
feat: multisig join --group arg #782
Conversation
@@ -196,7 +201,12 @@ def incept(self, attrs): | |||
|
|||
if approve: | |||
if self.auto: | |||
alias = "test alias" | |||
alias = self.alias |
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 does not account for auto being true and alias being None which will cause an exception below. (As happened in the scripts run for this PR).
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 was changed in the most recent commit to have a nested if statement checking of the alias (now "group") is set.
For example:
if self.auto:
if self.group is None:
group = "default-group"
else:
group = self.group
@@ -196,7 +201,12 @@ def incept(self, attrs): | |||
|
|||
if approve: | |||
if self.auto: | |||
alias = "test alias" | |||
alias = self.alias | |||
elif self.alias: |
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.
self.alias should only be used if self.auto is True.
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 was changed in the most recent commit to have a nested if statement checking of the alias (now "group") is set.
For example:
if self.auto:
if self.group is None:
group = "default-group"
else:
group = self.group
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.
Please fix the logic so that the alias is only used if self.auto is True. I would also recommend using a different argument name as --alias has specific meaning in most other commands.
I changed the argument name from |
This adds the capability to specify an alias during multisig join. Previously the alias was always set to "test alias" which would cause alias collision problems when doing successive multisig join commands for different identifiers.