-
Notifications
You must be signed in to change notification settings - Fork 366
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
INDY-2178 Integrate ViewChange messages requesting to ViewChangeService #1342
INDY-2178 Integrate ViewChange messages requesting to ViewChangeService #1342
Conversation
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
…nto task-2178-view-change-requestor
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
This pull request introduces 1 alert when merging 6fa8af2 into c04bc34 - view on LGTM.com new alerts:
|
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
This pull request introduces 1 alert when merging 4648b37 into c04bc34 - view on LGTM.com new alerts:
|
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
This pull request introduces 1 alert when merging 8ca0da5 into c04bc34 - view on LGTM.com new alerts:
|
plenum/common/messages/fields.py
Outdated
|
||
def _specific_validation(self, val): | ||
if len(val) != 4: | ||
return 'should have size of 4' | ||
|
||
bid = BatchID(*val) | ||
bid = BatchID(**val) if isinstance(val, dict) else BatchID(*val) |
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.
- I don't think we need to support both dict and tuple when serialized
- This can throw, for example if we receive dict with some keys not in BatchID field list
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.
done
@@ -321,15 +321,21 @@ def __init__(self, *args, **kwargs): | |||
super().__init__(*args, **kwargs) | |||
if isinstance(self.checkpoint, dict): | |||
self.checkpoint = Checkpoint(**self.checkpoint) | |||
self.batches = [BatchID(*bid) for bid in self.batches] | |||
if not self.batches or not isinstance(self.batches[0], dict): |
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.
Adding comment explaining this would be very nice
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.
done
Signed-off-by: toktar <renata.toktar@dsr-corporation.com>
This pull request introduces 1 alert when merging c10f080 into a12eaad - view on LGTM.com new alerts:
|
No description provided.