Bug 1186606

Summary: in statistical API should contain project's component or module
Product: [Retired] Zanata Reporter: anish <apatil>
Component: Component-APIAssignee: Damian Jansen <djansen>
Status: CLOSED NOTABUG QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developmentCC: camunoz, daisy.ycguo, petersen, 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: 2015-02-09 03:09:02 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:
Embargoed:

Description anish 2015-01-28 06:20:56 UTC
Description of problem:

Statistical API is as follows "/stats/project/{projectSlug}/version/{versionSlug}/contributor/{username}/{dateRange}" 

Here projectslug specifies project name. 
However in some projects such as openstack which contains several modules(sub-components). So project slug should contain project module as well. 
Currently I think projectslug only contains project name itself. 
e.g 

zanata API would look like "/stat/project/openstack/nova/version/1/contributor/john/2015-1-1" 

In above API openstack is project name and nova is module name in openstack project.

Comment 1 Carlos Munoz 2015-01-29 03:52:47 UTC
Anish, in Zanata world, a project does not have sub-modules or sub-components.

The way it should probably be setup is for each component to have its own project. So, for example: openstack-nova would be one of the projects.

Comment 2 Daisy Guo 2015-02-06 06:15:27 UTC
Hi, Carlos

I think we could use "nova" as the project name in our own Zanata instance. We don't need the concept of modules or sub modules. So this bug could be closed.

@Anish, do you agree ?

Regards
Daisy

Comment 3 anish 2015-02-06 09:56:11 UTC
Yes please close this as not a bug