Baloo/Schema/0.1: Difference between revisions
Jump to navigation
Jump to search
(added one and done) |
No edit summary |
||
| Line 133: | Line 133: | ||
<li><code>task-id</code>: Task ID (string) | <li><code>task-id</code>: Task ID (string) | ||
<li><code>difficulty</code>: Task difficulty level (string) | <li><code>difficulty</code>: Task difficulty level (string) | ||
</ul> | </ul> | ||
}} | }} | ||
Revision as of 16:43, 28 August 2014
This is the payload schema version 0.1
All contribution data follows this schema:
email: email address of contributor (string) *requireddatetime: date and time of contribution using ISO 8601(datetime) *requiredcanonical: permanent URL to contribution (string)type: a codified string that describes the contribution (string) *required eg:- bugzilla-comment
- hg-commit
- sumo-revision
- reps-activity
- github-commit
- one_and_done-task-finished
source: source of contribution, one of the following: (string) *required- bugzilla
- hg
- sumo
- reps
- github
- one_and_done
version:Version of the Schema used (0.1 in this case)(string) *requiredextra: per-contribution data, following a source-dependent schema (dictionary)
extra - Bugzilla
fields: fields modified (list of string)values: values of modified fields, where available. Keys correspond to names of modified fields. (dictionary)id: bug id (integer)product: product (string)component: component (string)new: new bug creation (boolean, optional)firstpatch: first patch flag (boolean, optional [likely doesn't work])comment: associated comment ID (integer, optional)review: review flag was modified (set, cleared, changed, etc) (boolean, optional)feedback: feedback flag was modified (set, cleared, changed, etc) (boolean, optional)needinfo: needinfo flag was modified (set, cleared, changed, etc) (boolean, optional)
extra - hg
tree: tree name (eg. mozilla-central) (string)sha: revision hash (string, doesn't exist yet)
extra - sumo
type: type of SUMO contribution, one of: (string)- answer
- post
- discuss
- revision
locale: locale of contribution (string)
extra - sumo - answer
question: id of answered question (integer)id: id of answer (integer)product: associated product slug (string)topic: associated topic slug (string)
extra - sumo - post
thread: id of associated forum thread (integer)id: id of post (integer)slug: associated forum slug (string)
extra - sumo - discuss
article: id of associated article (integer)thread: id of associated discussion thread (integer)id: id of post (integer)new: new post, or edit of existing (boolean)slug: associated article slug (string)
extra - sumo - revision
article: id of associated article (integer)id: id of revision (integer)slug: associated article slug (string)
extra - reps
report-date: when the contribution was reported (datetime)report-type: type of report (string)campaign: campaign that the contribution supports (string)contribution-areas: contribution areas that are supported by this contribution (string)location: location (latitude, longitude?)extra: additional text about the contribution (string)url: canonical URL for the activity (string)
extra - Github
repository-name: Name of the repository the action happened (string)repository-organization: Organization of the repository the action happened (string)commit-id: ID of the commit (string)commit-msg: Commit message (string)github-username: Github username (string)issue-id: ID of issue (string)action-type: a codified string that describes the contribution (string) eg:- commit-author
- pull-request-opened
- issue-opened
extra - Adhoctribution (the ad-hoc logger)
logged_on: when the contribution was reported (datetime)logged_by: the person who reported the contribution (string)moz_team: name of Mozilla team the contribution is counted towards (string)data_bucket: a contribution type for reporting purposes (string)description: description of the ad-contribution that was recorded (string)
extra - One and Done
team: Task team (string)project: Project of the task (string)task-id: Task ID (string)difficulty: Task difficulty level (string)
extra - Webmaker Events
Webmaker Event Hosts
title: event title (string)address: address of the event (string)attendees: anticipated number of attendees (integer)organizerId: webmaker account id of event host (string)
Webmaker Event Mentors
username: webmaker account id of event mentor (string)title: event title (string)
Webmaker Event Coorganizers
username: webmaker account id of event mentor (string)title: event title (string)
extra - Transifex
mozilla_team: name of the mozilla team as defined within Transifex (string)transifex_username: (string)
extra - MozFest
- no extra fields