OliverKeyes has uploaded a new change for review.
https://gerrit.wikimedia.org/r/251517
Change subject: Fix bug introduced by timestamp switchover
......................................................................
Fix bug introduced by timestamp switchover
Fixes a bug introduced by switching 'timestamp' to 'date' in the maps
scripts.
Bug: T117982
Change-Id: Ie2cc8ab94275f592c5f100c71de71207bd41afbb
---
M maps/usage.R
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/discovery/golden
refs/changes/17/251517/1
diff --git a/maps/usage.R b/maps/usage.R
index e28b6cc..5efbcbe 100644
--- a/maps/usage.R
+++ b/maps/usage.R
@@ -6,7 +6,7 @@
# Retrieve data
data <- query_func(fields = "SELECT SUBSTRING(timestamp, 1, 8) AS date,
event_action, event_feature, event_userToken",
date = date, table = table)
- data$date <- lubridate::ymd(data$timestamp)
+ data$date <- lubridate::ymd(data$date)
# Roll up for high-level numbers on unique users per tool
unique_per_tool <- data[, j = list(users =
length(unique(event_userToken))*100), by = c("date", "event_feature")]
--
To view, visit https://gerrit.wikimedia.org/r/251517
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie2cc8ab94275f592c5f100c71de71207bd41afbb
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/discovery/golden
Gerrit-Branch: master
Gerrit-Owner: OliverKeyes <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits