Baloo/Schema/0.1: Difference between revisions

From MozillaWiki
< Baloo‎ | Schema
Jump to navigation Jump to search
No edit summary
(added one and done)
Line 14: Line 14:
<li>reps-activity
<li>reps-activity
<li>github-commit
<li>github-commit
<li>one_and_done-task-finished
</ul>
</ul>
<li><code>source</code>: source of contribution, one of the following: (string) *required
<li><code>source</code>: source of contribution, one of the following: (string) *required
Line 22: Line 23:
<li>reps
<li>reps
<li>github
<li>github
<li>one_and_done
</ul>
</ul>
<li><code>version</code>:Version of the Schema used (0.1 in this case)(string) *required
<li><code>version</code>:Version of the Schema used (0.1 in this case)(string) *required
Line 121: Line 123:
<li><code>moz_team</code>: name of [https://github.com/mozilla/team-list/blob/gh-pages/teams.txt Mozilla team] the contribution is counted towards (string)
<li><code>moz_team</code>: name of [https://github.com/mozilla/team-list/blob/gh-pages/teams.txt Mozilla team] the contribution is counted towards (string)
<li><code>data_bucket</code>: a contribution type for reporting purposes (string)
<li><code>data_bucket</code>: a contribution type for reporting purposes (string)
<li><code>description</code>: description of the ad-contribution that was recorded (string)
</ul>
}}
{{hidden1|extra - One and Done|
<ul>
<li><code>team</code>: Task team (string)
<li><code>project</code>: Project of the task (string)
<li><code>task-id</code>: Task ID (string)
<li><code>difficulty</code>: Task difficulty level (string)
<li><code>description</code>: description of the ad-contribution that was recorded (string)
<li><code>description</code>: description of the ad-contribution that was recorded (string)
</ul>
</ul>

Revision as of 13:32, 28 August 2014

This is the payload schema version 0.1


All contribution data follows this schema:

  • email: email address of contributor (string) *required
  • datetime: date and time of contribution using ISO 8601(datetime) *required
  • canonical: 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) *required
  • extra: per-contribution data, following a source-dependent schema (dictionary)