Bug 695598

Summary: Python-client still require --version-name and --version-desc to create version
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-PythonClientAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3-alpha-1CC: jni, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-28 07:25:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ding-Yi Chen 2011-04-12 06:38:52 UTC
Description of problem:
In web UI, the version name and version desc fields are removed to
avoid confusion and complication.

However, zanata-python-client still requires following two options:
  --version-name
  --version-des
to create version

Version-Release number of selected component (if applicable):
zanata-python-client-1.2.2-1

How reproducible:
Always

Steps to Reproduce:
1. Assume zanata.ini is configured.
2. zanata project create <projectId> --project-name=<projectName> --project-desc=<projectDesc> --url=<serverUrl>
3. zanata version create <versionId> --project-id=<projectId> --url=<serverUrl>
  
Actual results:
error: Please provide Iteration name by '--version-name' option

Expected results
Success without error

Additional info:

Comment 1 James Ni 2011-04-13 02:58:28 UTC
I removed the check for '--version-name', zanata-python-client will not require two options now. Please use the commit 7be3cde2cf756703fc49 of devel branch of zanata python client on github for testing.

Comment 2 Ding-Yi Chen 2011-04-13 23:57:27 UTC
Indeed, absent of --version-name and --version-desc does not show error. However, it does not show "Success create the version <VER>" either.

Two more concerns:
1. It's better to use "Successfully created the version <VER>"
2. After I cloned the zanata-python-client and type 'make'.
   It does create a VERSION_FILE, but zanata require it to be
   in zanataclient to work.

Regards.

Comment 3 James Ni 2011-04-19 04:20:53 UTC
1. It's better to use "Successfully created the version <VER>"
>>> It's modified in commit 0921349 by Sean

2. After I cloned the zanata-python-client and type 'make'.
   It does create a VERSION_FILE, but zanata require it to be
   in zanataclient to work.

>>> This issues was updated by commit 7f0f3d0

please test and verify with the latest commit
0e90977 of devel branch of zanataclient on github, since i merge
some changes from server.

Comment 4 Ding-Yi Chen 2011-04-20 02:45:43 UTC
Tested on commit b1df3d6c9a5a58ab65c13b0366a24b1a2b31c988

Passed when communicate with server 1.3,
yet still failed on server 1.2.

A quick fix is: if server 1.2 is detected and --version-name is not given,
then we assign --version-name=<version-id>


Regards.

Comment 5 James Ni 2011-04-21 03:24:12 UTC
I add a check for server version, if server version equal or less than 1.2 and --version-name is not given, we will copy version-id to version-name, the changes is in commit 517cbc1 of devel branch of zanataclient on github.

Best Regards.

Comment 6 Ding-Yi Chen 2011-07-06 00:47:26 UTC
VERIFIED with commit  8462ad8d5dc8c2d9ec1ebf6234c651aa64e96579