Skip to content

Commit 0699c3e

Browse files
committed
MEP test events update
1 parent a563d4c commit 0699c3e

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Wikipedia/Code/EditHistoryCompareFunnel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ final class EditHistoryCompareFunnel: EventLoggingFunnel, EventLoggingStandardEv
3838
*/
3939
EPC.shared?.log(
4040
stream: "ios.edit_history_compare",
41-
schema: "/analytics/mobile_apps/ios/edit_history_compare/1.0.0",
41+
schema: "/analytics/mobile_apps/ios_edit_history_compare/1.0.0",
4242
data: [
4343
"action": action.rawValue as NSCoding,
4444
"primary_language": self.primaryLanguage() as NSCoding,

Wikipedia/Code/ExploreViewController.swift

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,17 @@ class ExploreViewController: ColumnarCollectionViewController, ExploreCardViewCo
114114

115115
override func refreshControlActivated() {
116116
super.refreshControlActivated()
117-
118-
EPC.shared?.log(
119-
stream: "test.event",
120-
schema: "/test/event/1.0.0",
121-
data: [
122-
"test": "Explore View refreshed" as NSCoding,
123-
"test_map": [
124-
"file": "Features/Feed/ExploreViewController.swift",
125-
"method":"refreshControlActivated"
126-
] as NSCoding
127-
]
128-
)
117+
118+
let eventData = [
119+
"test_string": "Explore Feed refreshed" as NSCoding,
120+
"test_map": [
121+
"file": "Features/Feed/ExploreViewController.swift",
122+
"method":"refreshControlActivated"
123+
] as NSCoding
124+
]
125+
let schema = "/analytics/test/1.0.0"
126+
EPC.shared?.log(stream: "test.instrumentation", schema: schema, data: eventData)
127+
EPC.shared?.log(stream: "test.instrumentation.sampled", schema: schema, data: eventData)
129128
}
130129

131130
open override func refresh() {

Wikipedia/Code/WMFAppViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,7 @@ - (void)showSettingsWithSubViewController:(nullable UIViewController *)subViewCo
20052005
}
20062006
break;
20072007
default:
2008-
[[WMFEventPlatformClient sharedInstance] logWithStream:@"test.event" schema:@"/test/event/1.0.0" data:@{@"test": @"hello world!", @"test_map":@{@"file": @"Application/App View Controller/WMFAppViewController.m", @"method": @"showSettingsWithSubViewController()"}} domain: nil];
2008+
[[WMFEventPlatformClient sharedInstance] logWithStream:@"test.instrumentation" schema:@"/analytics/test/1.0.0" data:@{@"test_string": @"Opened Settings screen", @"test_map":@{@"file": @"Application/App View Controller/WMFAppViewController.m", @"method": @"showSettingsWithSubViewController()"}} domain: nil];
20092009
[self presentViewController:self.settingsNavigationController animated:animated completion:nil];
20102010
break;
20112011
}

0 commit comments

Comments
 (0)