OliverKeyes has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260543

Change subject: Add notes about the alteration in user habits on 7 December
......................................................................

Add notes about the alteration in user habits on 7 December

Adds footnotes and dygraph annotations covering the data deviation
starting on 7 December 2015.

Bug: T122081
Change-Id: Ic46f8b6a7bb31d6a285f1caf1ac2549c4e189c0a
---
M functions.R
M server.R
M tab_documentation/breakdown.md
M tab_documentation/clickthrough_rate.md
M tab_documentation/dwelltime.md
5 files changed, 28 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/prince 
refs/changes/43/260543/1

diff --git a/functions.R b/functions.R
index cbe96fb..aaa05b5 100644
--- a/functions.R
+++ b/functions.R
@@ -1,6 +1,7 @@
 library(polloi)
 library(data.table)
 library(reshape2)
+library(magrittr)
 
 # Read in the traffic data
 read_clickthrough <- function(){
diff --git a/server.R b/server.R
index a998f2d..84a84b3 100644
--- a/server.R
+++ b/server.R
@@ -14,18 +14,27 @@
   output$clickthrough_rate_dygraph <- renderDygraph({
     polloi::make_dygraph(
       data = clickthrough_rate,
-      xlab = "Date", ylab = "Clickthrough rate (%)", title = "Wikipedia portal 
clickthrough rate")
+      xlab = "Date", ylab = "Clickthrough rate (%)", title = "Wikipedia portal 
clickthrough rate") %>%
+      dyAnnotation(as.Date("2015-12-07"), text = "A",
+                   tooltip = "Sampling change - see below",
+                   width = 12, height = 20, attachAtBottom = FALSE)
   })
   
   output$action_breakdown_dygraph <- renderDygraph({
     polloi::make_dygraph(
       data = action_breakdown,
-      xlab = "Date", ylab = "Actions (%)", title = "Actions on the Wikipedia 
portal")
+      xlab = "Date", ylab = "Actions (%)", title = "Actions on the Wikipedia 
portal") %>%
+      dyAnnotation(as.Date("2015-12-07"), text = "A",
+                   tooltip = "Sampling change - see below",
+                   width = 12, height = 20, attachAtBottom = FALSE)
   })
   
   output$dwelltime_dygraph <- renderDygraph({
     polloi::make_dygraph(
       data = dwelltime_data,
-      xlab = "Date", ylab = "Dwell Time (Seconds)", title = "Time spent on the 
Wikipedia portal")
+      xlab = "Date", ylab = "Dwell Time (Seconds)", title = "Time spent on the 
Wikipedia portal") %>%
+      dyAnnotation(as.Date("2015-12-07"), text = "A",
+                   tooltip = "Sampling change - see below",
+                   width = 12, height = 20, attachAtBottom = FALSE)
   })
 })
diff --git a/tab_documentation/breakdown.md b/tab_documentation/breakdown.md
index 1ca22e8..beb3b10 100644
--- a/tab_documentation/breakdown.md
+++ b/tab_documentation/breakdown.md
@@ -19,7 +19,11 @@
 
 Outages and inaccuracies
 ------
-None so far, but it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
+
+* From 7 December (marked "A") the sampling changed to exclude a broader range 
of browsers, resulting in alterations to things
+like clickthrough rate and dwell time. We expect this to resolve itself on 4 
January when a new schema version is launched.
+
+Broadly-speaking, it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
 
 Questions, bug reports, and feature suggestions
 ------
diff --git a/tab_documentation/clickthrough_rate.md 
b/tab_documentation/clickthrough_rate.md
index f456272..21c920f 100644
--- a/tab_documentation/clickthrough_rate.md
+++ b/tab_documentation/clickthrough_rate.md
@@ -10,7 +10,11 @@
 
 Outages and inaccuracies
 ------
-None so far, but it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
+
+* From 7 December (marked "A") the sampling changed to exclude a broader range 
of browsers, resulting in alterations to things
+like clickthrough rate and dwell time. We expect this to resolve itself on 4 
January when a new schema version is launched.
+
+Broadly-speaking, it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
 
 Questions, bug reports, and feature suggestions
 ------
diff --git a/tab_documentation/dwelltime.md b/tab_documentation/dwelltime.md
index 839f33f..b2e12de 100644
--- a/tab_documentation/dwelltime.md
+++ b/tab_documentation/dwelltime.md
@@ -8,7 +8,11 @@
 
 Outages and inaccuracies
 ------
-None so far, but it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
+
+* From 7 December (marked "A") the sampling changed to exclude a broader range 
of browsers, resulting in alterations to things
+like clickthrough rate and dwell time. We expect this to resolve itself on 4 
January when a new schema version is launched.
+
+Broadly-speaking, it's worth noting that (as with all data based on JavaScript 
logging) the code that gathers this information requires a certain amount of 
browser capabilities to function. It's probably not going to work on 10 year 
old Nokia brick phones, and so the data will be biased against users using 
those kinds of devices.
 
 Questions, bug reports, and feature suggestions
 ------

-- 
To view, visit https://gerrit.wikimedia.org/r/260543
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic46f8b6a7bb31d6a285f1caf1ac2549c4e189c0a
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/prince
Gerrit-Branch: master
Gerrit-Owner: OliverKeyes <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to