Process statistics from ask.openstack.org

Registered by Ilya Shakhat

Answers and questions are important part of community contribution. Showing stats on them could raise the interest to contribute.

AskBot has API to retrieve data (http://askbot.org/doc/api.html). The current version is quite limited, it is possible to get questions, but not answers. For answers it is possible to get total count only. Users may login with different open-ids, Launchpad is one of them.

Proposed processing:
1. Query all questions ordered by age descending until the date stored in runtime storage:
    https://ask.openstack.org/en/api/v1/questions/?sort=age-desc&page=<N>,
    total number of pages is provided in every chunk
    tags are used to map question to module (one is chosen)
2. Query all users:
    https://ask.openstack.org/en/api/v1/users/?page=<N>
    -- get list of user-ids (numbers)
3. Query every user to get details on each of them:
    https://ask.openstack.org/en/api/v1/users/<id>/
    -- get number of anwers, questions, reputation, gravatar, username
4. Query username against Launchpad, if matched associate with Stackalytics records, otherwise create user with specific id (ask:<username>)

In UI add metric questions, it shows stats and details on questions. For contributors it shows also number of answers and reputation.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Ilya Shakhat
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.