Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions WMF Framework/Event Platform/EventPlatformClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ import WMFTestKitchen
case appTabsInteraction = "app_tabs_interaction"
case appActivityTab = "app_activity_tab"
case productMetricsAppBase = "product_metrics.app_base"

var needsHasty: Bool {
switch self {
case .productMetricsAppBase:
return true
default:
return false
}
}
}

/**
Expand Down Expand Up @@ -196,19 +187,19 @@ import WMFTestKitchen
* configurations from Meta wiki as its source of truth.
*/
static var eventIntakeURI: URL {
#if DEBUG
if WMFDeveloperSettingsDataController.shared.sendAnalyticsToWMFLabs {
URL(string: "https://intake-analytics-beta.wmflabs.org/v1/events")!
} else {
URL(string: "https://intake-analytics.wikimedia.org/v1/events")!
}
}

private static var hastyEventIntakeURI: URL {
#else
if WMFDeveloperSettingsDataController.shared.sendAnalyticsToWMFLabs {
URL(string: "https://intake-analytics-beta.wmflabs.org/v1/events?hasty=true")!
} else {
URL(string: "https://intake-analytics.wikimedia.org/v1/events?hasty=true")!
}
#endif
}

/**
Expand Down Expand Up @@ -420,7 +411,7 @@ import WMFTestKitchen
let group = DispatchGroup()
for event in events {
group.enter()
let url = event.stream.needsHasty ? EventPlatformClient.hastyEventIntakeURI : EventPlatformClient.eventIntakeURI
let url = EventPlatformClient.eventIntakeURI
httpPost(url: url, body: event.data) { result in
switch result {
case .success:
Expand Down
2 changes: 1 addition & 1 deletion Wikipedia/Code/WMFHCaptchaViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class WMFHCaptchaViewController: ThemeableViewController {
logError(data)
self.errorAction?(CustomError.hCaptchaExpired)
case .open:
authInstrument?.submitInteraction(action: "hcaptcha_open")
authInstrument?.submitInteraction(action: "hcaptcha_show")
}
}

Expand Down
Loading