-
Notifications
You must be signed in to change notification settings - Fork 295
Conversation
Signed-off-by: Victor Drobny <[email protected]>
@@ -396,7 +396,7 @@ namespace iroha { | |||
SELECT CASE | |||
WHEN EXISTS (SELECT * FROM inserted) THEN 0 | |||
%s | |||
ELSE 5 | |||
ELSE 4 |
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.
It is absolutely unclear what are the magic numbers used :(
Even more - neither executor itself nor its methods do not have documentation.
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.
Error codes concept is still in development as I understand, so this is internal API.
TEST_F(AppendRole, ValidAppendRoleTestWhenEmptyPerms) { | ||
addAllPerms(); | ||
ASSERT_TRUE(val(execute(buildCommand(TestTransactionBuilder().createRole( | ||
"role2", {})), |
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 do a const variable for "role2" string.
Signed-off-by: Victor Drobny <[email protected]>
@@ -396,7 +396,7 @@ namespace iroha { | |||
SELECT CASE | |||
WHEN EXISTS (SELECT * FROM inserted) THEN 0 | |||
%s | |||
ELSE 5 | |||
ELSE 4 |
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.
Error codes concept is still in development as I understand, so this is internal API.
Signed-off-by: Victor Drobny <[email protected]>
SonarQube analysis reported 1 issue
|
* fix append empty role bug Signed-off-by: Victor Drobny <[email protected]>
Signed-off-by: Victor Drobny [email protected]
Description of the Change
It was impossible to add a role without permissions to account. Now it is possible.
Benefits
One small bug was fixed.