Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Introduce error codes to SFV #1817

Merged
merged 19 commits into from
Nov 8, 2018

Conversation

Akvinikym
Copy link
Contributor

Description of the Change

Step II of introducing stateful validation error codes: now they are brought into StatefulValidator and TemporaryWSV.

Benefits

One more step to error codes.

Possible Drawbacks

None.

Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
@Akvinikym Akvinikym requested review from l4l and kamilsa October 29, 2018 09:42
@Akvinikym Akvinikym changed the title Introduced error codes to SFV Introduce error codes to SFV Oct 29, 2018
Signed-off-by: Akvinikym <[email protected]>
@l4l
Copy link
Contributor

l4l commented Oct 29, 2018

The following tests FAILED:

	 10 - module_postgres_executor_test (Failed)

:(

@l4l l4l added needs-correction pr/rfc is not completed and might be updated ametsuchi labels Oct 29, 2018
@@ -286,9 +286,9 @@ TEST_F(SimulatorTest, RightNumberOfFailedTxs) {
.transactions(std::vector<shared_model::proto::Transaction>{tx})
.build());
auto tx_errors = iroha::validation::TransactionsErrors{
std::make_pair(validation::CommandError{"SomeCommand", "SomeError", true},
std::make_pair(validation::CommandError{"SomeCommand", 1, true},
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add some number variable to avoid magic number here and upwards in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's covered in IR-1816 as well

l4l
l4l previously requested changes Oct 30, 2018
"Transaction %s failed signatures validation with db error: %s",
transaction.toString(),
e.what());
// TODO [IR-1816] Akvinikym 29.10.18: substitute error code magic number
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a suitable thing to do in that pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think, it still needs to be a distinct PR with this task, and definitely not this one, as it's going to touch also PosgtresExecutor and QueryExecutor

@Akvinikym Akvinikym requested a review from l4l October 31, 2018 11:55
@l4l l4l added needs-review pr awaits review from maintainers and removed needs-correction pr/rfc is not completed and might be updated labels Oct 31, 2018
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
Signed-off-by: Akvinikym <[email protected]>
@Akvinikym Akvinikym changed the base branch from feature/cmd-exec-err-codes to trunk/stf-rsp-err-codes November 8, 2018 08:52
@Akvinikym Akvinikym merged commit b95771c into trunk/stf-rsp-err-codes Nov 8, 2018
@l4l l4l removed the needs-review pr awaits review from maintainers label Nov 8, 2018
@l4l l4l deleted the feature/stf-vld-err-codes branch December 26, 2018 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants