command format is not consistent

Bug #1691637 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Python client library for Zaqar
Fix Released
Undecided
wanghao

Bug Description

Now we have a lot of command:
    queue_list = zaqarclient.queues.v2.cli:ListQueues
    queue_create = zaqarclient.queues.v2.cli:CreateQueue
    queue_delete = zaqarclient.queues.v2.cli:DeleteQueue
    queue_stats = zaqarclient.queues.v2.cli:GetQueueStats
    queue_set_metadata = zaqarclient.queues.v2.cli:SetQueueMetadata
    queue_get_metadata = zaqarclient.queues.v2.cli:GetQueueMetadata
    queue_purge = zaqarclient.queues.v2.cli:PurgeQueue
    pool_create = zaqarclient.queues.v2.cli:CreatePool
    pool_show = zaqarclient.queues.v2.cli:ShowPool
    pool_update = zaqarclient.queues.v2.cli:UpdatePool
    pool_delete = zaqarclient.queues.v2.cli:DeletePool
    pool_list = zaqarclient.queues.v2.cli:ListPools
    messaging_flavor_list = zaqarclient.queues.v2.cli:ListFlavors
    messaging_flavor_delete = zaqarclient.queues.v2.cli:DeleteFlavor
    messaging_flavor_update = zaqarclient.queues.v2.cli:UpdateFlavor
    messaging_flavor_show = zaqarclient.queues.v2.cli:ShowFlavor
    messaging_flavor_create = zaqarclient.queues.v2.cli:CreateFlavor
    claim_create = zaqarclient.queues.v2.cli:CreateClaim
    claim_query = zaqarclient.queues.v2.cli:QueryClaim
    claim_renew = zaqarclient.queues.v2.cli:RenewClaim
    claim_release = zaqarclient.queues.v2.cli:ReleaseClaim
    subscription_create = zaqarclient.queues.v2.cli:CreateSubscription
    subscription_update = zaqarclient.queues.v2.cli:UpdateSubscription
    subscription_delete = zaqarclient.queues.v2.cli:DeleteSubscription
    subscription_show = zaqarclient.queues.v2.cli:ShowSubscription
    subscription_list = zaqarclient.queues.v2.cli:ListSubscriptions
    queue_signed_url = zaqarclient.queues.v2.cli:CreateSignedUrl
    messaging_ping = zaqarclient.queues.v2.cli:Ping
    messaging_health = zaqarclient.queues.v2.cli:Health
    message_post = zaqarclient.queues.v2.cli:PostMessages
    message_list = zaqarclient.queues.v2.cli:ListMessages

You can see that the format is not the same. It's terrible thing for end users to use our client.
For example, claim create, I guess that most new users will be confused that what does this command used for and what project support this command?

So I think that we should let our command to keep the same format like other project does, such as:
openstack messaging XXX.

wanghao (wanghao749)
Changed in python-zaqarclient:
assignee: nobody → wanghao (wanghao749)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-zaqarclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/470201

Changed in python-zaqarclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-zaqarclient (master)

Reviewed: https://review.openstack.org/470201
Committed: https://git.openstack.org/cgit/openstack/python-zaqarclient/commit/?id=fa88a03b3bcb9c3b7ce03c16e9c35c5288c4f503
Submitter: Jenkins
Branch: master

commit fa88a03b3bcb9c3b7ce03c16e9c35c5288c4f503
Author: wanghao <email address hidden>
Date: Fri Jun 2 16:32:20 2017 +0800

    Fix the inconsistent command format in openstackclient

    Change zaqarclient command to keep the same format,
    the consistent command format is 'openstack messaging XXX'.

    DocImpact

    Change-Id: I87302d016915fd7c861b0a7a542a23ae3685443e
    Closes-Bug: #1691637

Changed in python-zaqarclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-zaqarclient 1.7.0

This issue was fixed in the openstack/python-zaqarclient 1.7.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.