Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CLI: implement 'openio-admin <item_type> locate' commands #1704

Merged
merged 5 commits into from
Mar 28, 2019

Conversation

fvennetier
Copy link
Member

SUMMARY
  • Create mixin classes for container and object commands.
  • Implement 'openio-admin <item_type> locate' commands.
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • CLI
SDS VERSION
openio 4.4.0.0b2.dev14

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@04729ec). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1704   +/-   ##
=========================================
  Coverage          ?   79.58%           
=========================================
  Files             ?      370           
  Lines             ?    68486           
  Branches          ?     6880           
=========================================
  Hits              ?    54500           
  Misses            ?    13880           
  Partials          ?      106

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 04729ec...10a4cd5. Read the comment docs.

@fvennetier fvennetier force-pushed the admin-cli-step3 branch 2 times, most recently from 575ebeb to a0d662f Compare March 21, 2019 18:15
@fvennetier fvennetier changed the title [WIP] CLI: implement 'openio-admin <item_type> locate' commands CLI: implement 'openio-admin <item_type> locate' commands Mar 22, 2019
A command to display which service is in charge of hosting an item.
"""

columns = ('Type', 'Item', 'Service Id', 'Addr', 'Location', 'Status')
Copy link
Member

Choose a reason for hiding this comment

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

We could add Volume.

Copy link
Member

Choose a reason for hiding this comment

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

We could replace Status with 2 columns (Up and Score)

Copy link
Member Author

Choose a reason for hiding this comment

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

What would we display in the Volume column?

I don't like the idea of splitting Status: currently it displays either the status (in the form of a boolean and a score) or the error that occurred during the check. Where would we display the error then?

@murlock murlock merged commit 678bbbf into open-io:master Mar 28, 2019
@fvennetier fvennetier deleted the admin-cli-step3 branch March 28, 2019 13:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants