Bug 1030182

Summary: project version with unspecified project type should be copied once project-type of the project is set
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-LogicAssignee: Damian Jansen <djansen>
Status: CLOSED DUPLICATE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1CC: damason, sflaniga, 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: 2014-04-23 06:24:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1030166    

Description Ding-Yi Chen 2013-11-14 05:19:12 UTC
Description of problem:

It is possible that project has project-type, while its version has not.
If that is the case, in project version view, the project-type shows its parent's project-type, while zanata.xml does not include such information.

Version-Release number of selected component (if applicable):
Zanata version 3.2-SNAPSHOT (20131114-0037)


How reproducible:
Always, if Bug 1030166 is not fixed.

Steps to Reproduce:
1. Create a project without project-type
2. Create a version (VER1) of that project without project-type
3. Go to project view, click "Edit project"
4. Change project type to "podir", and click "Update"
5. Go to the version VER1
6. Click "Config file"

Actual results:
After step 5, the project-type of project version VER1 is podir
After step 6, the project-type in zanata.xml is undefined.

Expected results:
After step 5, the project-type of project version VER1 is podir
After step 6, the project-type in zanata.xml is podir.


Additional info:

Comment 1 Sean Flanigan 2013-11-15 00:44:51 UTC
Also: In this situation, actions like download as ZIP are disabled too, even though the project iteration type *appears* to be set in the GUI.

Comment 2 Sean Flanigan 2013-11-15 06:09:06 UTC
If the Project Version's projectType is not set, it should be shown as blank/null in the Edit Version page.  It should not simply show the Project's type, because that is misleading.  (The blank projectType could be supplemented with a note to remind the user what the Project's projectType is.)

Comment 3 Damian Jansen 2014-03-06 23:48:01 UTC
I think Luke's changes to the project pages handle some of the above.

Changing the behaviour of this bug would be contrary to the original design, assuming No Selection is a valid type.

Comment 4 Ding-Yi Chen 2014-03-24 03:34:05 UTC
*** Bug 959813 has been marked as a duplicate of this bug. ***

Comment 5 Ding-Yi Chen 2014-04-23 06:24:57 UTC

*** This bug has been marked as a duplicate of bug 1088737 ***