Skip to content

Commit

Permalink
Remove malformed error pixel (#3612)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/414235014887631/1208683003138954/f
Tech Design URL:
CC:

Description:

This PR removes the malformed error pixel.
  • Loading branch information
samsymons authored Nov 30, 2024
1 parent ce28078 commit 38e5181
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15347,7 +15347,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 215.0.1;
version = 216.0.0;
};
};
9FF521422BAA8FF300B9819B /* XCRemoteSwiftPackageReference "lottie-spm" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "837dfbfe7a1b2a5e0ec2fb24a47a53dec53444b0",
"version" : "215.0.1"
"revision" : "1f1a9f979671e886699ef9b5edd572bc6b490875",
"version" : "216.0.0"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ enum NetworkProtectionPixelEvent: PixelKitEventV2 {
case networkProtectionConfigurationErrorLoadingCachedConfig(_ error: Error)
case networkProtectionConfigurationFailedToParse(_ error: Error)

case networkProtectionMalformedErrorDetected(_ error: Error)

case networkProtectionUnhandledError(function: String, line: Int, error: Error)

/// Name of the pixel event
Expand Down Expand Up @@ -330,9 +328,6 @@ enum NetworkProtectionPixelEvent: PixelKitEventV2 {
case .networkProtectionConfigurationFailedToParse:
return "netp_ev_configuration_failed_to_parse"

case .networkProtectionMalformedErrorDetected:
return "netp_malformed_error_detected"

case .networkProtectionUnhandledError:
return "netp_unhandled_error"
}
Expand Down Expand Up @@ -445,8 +440,7 @@ enum NetworkProtectionPixelEvent: PixelKitEventV2 {
.networkProtectionServerMigrationSuccess,
.networkProtectionDNSUpdateCustom,
.networkProtectionDNSUpdateDefault,
.networkProtectionConfigurationInvalidPayload,
.networkProtectionMalformedErrorDetected:
.networkProtectionConfigurationInvalidPayload:
return nil
}
}
Expand All @@ -473,8 +467,7 @@ enum NetworkProtectionPixelEvent: PixelKitEventV2 {
.networkProtectionSystemExtensionActivationFailure(let error),
.networkProtectionServerMigrationFailure(let error),
.networkProtectionConfigurationErrorLoadingCachedConfig(let error),
.networkProtectionConfigurationFailedToParse(let error),
.networkProtectionMalformedErrorDetected(let error):
.networkProtectionConfigurationFailedToParse(let error):
return error
case .networkProtectionActiveUser,
.networkProtectionNewUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,6 @@ final class MacPacketTunnelProvider: PacketTunnelProvider {
NetworkProtectionPixelEvent.networkProtectionTunnelStartAttemptOnDemandWithoutAccessToken,
frequency: .legacyDailyAndCount,
includeAppVersionParameter: true)
case .malformedErrorDetected(let error):
PixelKit.fire(
NetworkProtectionPixelEvent.networkProtectionMalformedErrorDetected(error),
frequency: .legacyDailyAndCount,
includeAppVersionParameter: true)
}
}

Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/DataBrokerProtection/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
targets: ["DataBrokerProtection"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "215.0.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "216.0.0"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../AppKitExtensions"),
.package(path: "../XPCHelper"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/FeatureFlags/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
targets: ["FeatureFlags"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "215.0.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "216.0.0"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionMac/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
.library(name: "VPNAppLauncher", targets: ["VPNAppLauncher"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "215.0.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "216.0.0"),
.package(url: "https://github.com/airbnb/lottie-spm", exact: "4.4.3"),
.package(path: "../AppLauncher"),
.package(path: "../UDSHelper"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SubscriptionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
targets: ["SubscriptionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "215.0.1"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "216.0.0"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../FeatureFlags")
],
Expand Down

0 comments on commit 38e5181

Please sign in to comment.