Skip to content
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

Solve weekly technical debt #56

Merged
merged 16 commits into from
May 20, 2019
Merged

Solve weekly technical debt #56

merged 16 commits into from
May 20, 2019

Conversation

anastasiia-bilova
Copy link
Contributor

@anastasiia-bilova anastasiia-bilova commented May 17, 2019

Solved

References

@codecov-io
Copy link

codecov-io commented May 17, 2019

Codecov Report

Merging #56 into develop will decrease coverage by 0.06%.
The diff coverage is 97.8%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #56      +/-   ##
===========================================
- Coverage    97.04%   96.97%   -0.07%     
===========================================
  Files           55       55              
  Lines         1083     1091       +8     
===========================================
+ Hits          1051     1058       +7     
- Misses          32       33       +1
Impacted Files Coverage Δ
cli/node/cli.py 100% <ø> (ø) ⬆️
cli/node/interfaces.py 55.55% <ø> (ø) ⬆️
cli/atomic_swap/cli.py 100% <ø> (ø) ⬆️
cli/atomic_swap/service.py 100% <ø> (ø) ⬆️
cli/atomic_swap/interfaces.py 60% <ø> (ø) ⬆️
cli/state/interfaces.py 60% <0%> (-15%) ⬇️
cli/batch/help.py 100% <100%> (ø) ⬆️
cli/transaction/cli.py 100% <100%> (ø) ⬆️
cli/block/cli.py 100% <100%> (ø) ⬆️
cli/node/forms.py 100% <100%> (ø) ⬆️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9bdfc5...1d53b44. Read the comment docs.

@@ -38,4 +38,5 @@ class GetStateListForm(Schema):
validate.Range(min=1, error='Limit must be greater than 0.'),
],
)
node_url = NodeUrlField(required=False)
reverse = fields.Boolean(required=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

What a sense of it. Give, please, example when it cant be a bool.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Alladin9393, when you create bool argument using click —

@click.option('--reverse', required=False, is_flag=True, help=STATES_REVERSE_ARGUMENT_HELP_MESSAGE)
, you will get bool type in the according to the argument —
def get_states(address, limit, head, reverse, node_url):
.

@@ -82,6 +82,7 @@ def get_states(address, limit, head, reverse, node_url):
'address': address,
'limit': limit,
'head': head,
'reverse': reverse,
Copy link
Contributor

Choose a reason for hiding this comment

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

You send argument, but not return him.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Alladin9393, done.

TRANSACTIONS_IDENTIFIERS_ARGUMENT_HELP_MESSAGE = 'Identifiers to get a list of transactions by.'
TRANSACTIONS_START_ARGUMENT_HELP_MESSAGE = 'Transaction identifier to get a list transaction starting from.'
TRANSACTIONS_LIMIT_ARGUMENT_HELP_MESSAGE = 'Maximum amount of transactions to return.'
TRANSACTIONS_HEAD_ARGUMENT_HELP_MESSAGE = 'Block identifier to get a list of transactions from.'
Copy link
Contributor

Choose a reason for hiding this comment

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

from -> to.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Alladin9393, done.

@anastasiia-bilova anastasiia-bilova removed the request for review from Art17 May 20, 2019 10:43
@anastasiia-bilova anastasiia-bilova merged commit c7c29c1 into develop May 20, 2019
@delete-merged-branch delete-merged-branch bot deleted the weekly-tech-debt branch May 20, 2019 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants