blob: 21f37774064cb0f650d2e1b325fee997e45bd284 [file]
#summary for planning the work on statistics in Melange
#labels Importance-Details,Phase-Design,Contents-Draft
_This is a wiki page. It is intended that people edit and improve it!_
<wiki:toc max_depth="3" />
= Gathering Data =
We have 10 cron jobs calling the same URL every 1 minute. This URL calls code that fetches a "job" to be done and then executes it. Therefore 1 url can do all kinds off jobs
== Job Control Panel ==
* *Job Control Panel* Where you can define what stats you want to collect in what interval.
_Daniel: What needs to be on this panel? (Details)_
=== Initial Goals ===
* Set a job running to gather *location stats for accepted proposals*.
* Set a job to gather *location stats for submitted proposals*.
* Results will be *raw JSON* (at this stage).
_Need to decide precise format of this JSON data, (for clarity). An example here would help enormously._
=== Later Goals for Job Control ===
* _...insert text here_
=== Stats ===
* Students per country
* Students per school
* Mentors per country
* Amount of mentors/students/org admins
* Server activity (e.g. big spike near deadlines).
= Displaying Stats =
== Stats Display Pages ==
=== Initial Goals ===
* Just raw JSON
=== Later Goals for Displaying Stats ===
* _...insert text here_
== Services/Libraries Used ==
* *[http://www.clabberhead.com/googlechartgenerator.html Google Charts]*
* *[http://code.google.com/apis/visualization/documentation/gallery.html Google's Interactive Charts]*
* _...other_
== Animated Displays ==
_Mario: What's the simplest change to the JSON data collected that would allow us to show one of these?_
* *Drag slider* to see how profile changes over time, e.g. on a map.
* *Timestamped data* may be all that we need.
= Background Info =
* *[http://www.thousandparsec.com/~irc/logm/%23melange.2009-05-07.log.html Stats Meeting on IRC] - Key points:* Data will be collected by Jobs. This is the first step. Accordingly the [http://code.google.com/p/soc/issues/list?can=1&q=Issue+357&sort=id&colspec=ID+Summary 1000 record issue] is not a problem. Data will be presented as raw JSON (at this stage). Will be stored in GAE Model as a JSON string AND again as a memcache object. When you request the stats view you should get it right away. Loading from Jobs is very light. Although not ideal we could afford to collect stats all the time, even when there are no changes, though we intend to do better than that right from the start. Animated graphs may need strings collected at different times and/or timestamps in the data. Daniel and Mario to use this wiki to progress the Stats projects.
== Background Links ==
* *[http://spreadsheets.google.com/ccc?key=p6DuoA2lJToKmUzoSq6raZQ Spreadsheet]* - With several pages of reports/figures showing changes from year to year.
* *[http://google-opensource.blogspot.com/2008/04/two-top-10s-for-google-summer-of-code.html GSoC by location]* - A classic use of GSoC statistics. Shows that mixing stats and text on same page will be important.
* *[http://google-opensource.blogspot.com/2008/05/this-weeks-top-10s-universities-for.html GSoC by University]* - A gospo blog post of a similar nature.
* *[http://opentouch.info/tmp/ghop/ghop-stats.html GHOP Stats]* - Gospo page with GHOP stats.
= Who Does What? =
* LH has warned about student *projects that depend on work by other students*. It's important that neither student is ever held up 'waiting' for work by the other student. In the extreme case, if one student drops out, we don't want to end up with neither project succeeding.
* *End-to-end knowledge:* We're starting with the backend as being essential to getting anything. For project success, both students will need to know both front and backend. Both will be extending the range of tools and language features that they know.
* A conflicting goal: We also want to *avoid duplication of work*, with both students doing the same things at the same time - a particular risk near the start.
* The solution is *communication*. It's for Mario and Daniel to work out exactly how this will work, exactly how the work will be divided. To avoid duplications, they need to be teaching each other what they learn in developing their areas of Melange as they go along. Probably three way code reviews (one mentor involved), probably sharing of status reports, probably some other things too... This all needs to be worked out between Mario and Daniel with mentors looking on. Wiki should help as key information can be put here.
_Mario / Daniel: One way to split the initial data collection step is for Daniel to focus on the python/GAE side and Mario to create the very simple job control page. Is this a good way? I don't know. You'll need to talk to make sure you each have what you each need from the other. Wiki can be updated with progress on this._
== Spin Offs ==
* With two strong students on Stats we have more manpower than we strictly need for stats at this stage of Melange's development. Therefore, once the projects are started and on-track, we should be looking at spin offs that are motivated by the stats needs, that are for stats, but that happen to progress other important aspects of Melange too. Examples are in the *job scheduling*, we will be using the jobs for other tasks too, and refinements in jobs will benefit these. In presentation the *javascript* for configuring graphs will likely do double duty and be used in other places too. Lots of opportunities for creative flexible design. Details will need discussing with mentor(s) as projects progress.
= Other Details =
== Transclusion And Graphing Syntax =
* We'd like to be able to embed charts and graphs in a page of explanation and commentary. We'd have a URL for the raw 'graph', and we'd provide parameters to that on that page. This will have permissions just like documents do. Then in a document we transclude the named chart using something like *$Pie(!ChartName)*. We can have more than one chart on a page.
_...More details_
== Tagging ==
_Discussion of *[TagsInMelange tagging]* and how it fits into statistics. E.g will want pie charts based on tags._
= Questions =
*Q:* This year many orgs are by choice mentoring fewer students and adding tougher qualification requirements. We're interested in whether mentor:student ratios have increased and what other changes may go with this. Are there questions we should ask *LH to ask for mid term survey* that would help here?
*A:*
*Q:* Many stats are possible. What are the *'big win' stats*, the ones that are most likely to tell us how to improve GSoC?
*A:*
*Q:* *GHOP stats:* What stats are specific to GHOP and not part of GSoC? _Answers will end up on *[GHOP]* page (to coordinate work with that project)._
*A:*