Page editing instrumentation
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date.
Some areas in which we need data to make some design decisions.
- Show Changes
- Marking as a minor edit
Click tracking + content analysis
- Edit Summaries (How many users provide edit summaries)
Any data from simple action tracking will lack rigor — it's a precursor to an experiment, not a valid experiment with testable hypotheses.
- when Editing (because action is "edit" or "submit"), upon submit events ([Save page] / [Show preview] / [Show changes], possibly others) record the event (using Extension:E3 Experiments' event tracking built on Extension:ClickTracking, as used on Community Portal)
- besides the usual ClickTracking info, include
- whether "This is a minor edit?" is checked or not
- the edit Summary text itself (see #Questions)
- page name and revision
Sample log lines:
testwiki editEvent@1 20120822235621 1 iV2ONosal2Ke1eYCRip5FUOCHuqL3lQcz 0 8 8 8 6 wpPreview@Adding "Hrm"@true@Page740@136078 testwiki editEvent@1 20120822235634 1 cg6rmm6E2Gf3Di9UBL49GLIxI5ubaTvyO 0 115 91 90 65 wpSave@@false@Testtest1@141162 testwiki editEvent@1 20120822235655 1 iV2ONosal2Ke1eYCRip5FUOCHuqL3lQcz 0 8 8 8 6 wpSave@Adding "Hrm" _ foo _ bar _ whatever@true@Page740@136078
As Extension:E3 Experiments/Architecture explains, this is mostly Extension:ClickTracking standard stuff:
- project@version, i.e. editEvent version 1
- server timestamp
- 1 = user is logged in to the wiki, 0 = anonymous
- anonymized session ID
- namespace of page (0 = main)
- user's lifetime edits (if logged in)
- user's edits in last 6 - 3 - 1 months (if logged in) — the granular edit counts from UserDailyContribs whether you wanted them or not
- The final field is additional information specific to this event, for this the format is
buttonID @ editSummary @ isMinorEdit @ pageName @ revId
(with every '@' in editSummary, if any, replaced by '_').
- Do we really want to track each click to check and uncheck "This is a minor edit?" Or just record it as part of the [Save page] / [Show preview] / [Show changes] event logging?
- A: The latter. We log the state of "This is a minor edit?" as true/false when logging form submit events
- Can we check to see if the summary text was changed from the suggested defaults? Like, there's defaults when you undo or rollback.
- A: Maybe... on load look at
input#wpSummary.mw-summary, remember contents, upon submit see if the contents have changed from e.g. "Undid revision 507859909 by ...". Problem is, on save after preview or show changes, the initial contents will be what the user entered last time. Maybe include the text of the summary (limited to 255 in the HTML form) in the click action, and let later post-processing figure out if it's a stock message.
For now, we just store the wpSummary text; analysis is left as "a simple exercise for the reader".
- A: Maybe... on load look at