Skip to content

Commit

Permalink
Removes iOS phased rollout dry run pixel (#2064)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/0/1205515530563288/f
Tech Design URL:
CC:

Description:
Removes the incremental feature flag tester and associated pixel & user default key
  • Loading branch information
amddg44 authored Oct 8, 2023
1 parent 040f66d commit 495985d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 259 deletions.
3 changes: 0 additions & 3 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ extension Pixel {
case emailIncontextModalExitEarlyContinue

case compilationFailed
case incrementalRolloutTest
}

}
Expand Down Expand Up @@ -985,8 +984,6 @@ extension Pixel.Event {
case .debugReturnUserAddATB: return "m_debug_return_user_add_atb"
case .debugReturnUserReadATB: return "m_debug_return_user_read_atb"
case .debugReturnUserUpdateATB: return "m_debug_return_user_update_atb"

case .incrementalRolloutTest: return "m_autofill_incremental_rollout_test"
}

}
Expand Down
10 changes: 1 addition & 9 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,7 @@
C18ED43C2AB8364400BF3805 /* FileTextPreviewDebugViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C18ED43B2AB8364400BF3805 /* FileTextPreviewDebugViewController.swift */; };
C18ED43A2AB6F77600BF3805 /* AutofillSettingsEnableFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C18ED4392AB6F77600BF3805 /* AutofillSettingsEnableFooterView.swift */; };
C1963863283794A000298D4D /* BookmarksCachingSearch.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1963862283794A000298D4D /* BookmarksCachingSearch.swift */; };
C1B0F63E2AB08904001EAF05 /* PhasedRolloutFeatureFlagTester.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B0F63D2AB08904001EAF05 /* PhasedRolloutFeatureFlagTester.swift */; };
C1B0F6422AB08BE9001EAF05 /* MockPrivacyConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B0F6412AB08BE9001EAF05 /* MockPrivacyConfiguration.swift */; };
C1B0F6442AB0D47A001EAF05 /* PhasedRolloutFeatureFlagTesterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B0F63F2AB08A53001EAF05 /* PhasedRolloutFeatureFlagTesterTests.swift */; };
C1B7B51C28941E980098FD6A /* HomeMessageViewModelBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B7B51B28941E980098FD6A /* HomeMessageViewModelBuilder.swift */; };
C1B7B52328941F2A0098FD6A /* RemoteMessagingStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B7B51F28941F2A0098FD6A /* RemoteMessagingStore.swift */; };
C1B7B52428941F2A0098FD6A /* RemoteMessageRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1B7B52028941F2A0098FD6A /* RemoteMessageRequest.swift */; };
Expand Down Expand Up @@ -2270,8 +2268,6 @@
C18ED43B2AB8364400BF3805 /* FileTextPreviewDebugViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FileTextPreviewDebugViewController.swift; sourceTree = "<group>"; };
C18ED4392AB6F77600BF3805 /* AutofillSettingsEnableFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AutofillSettingsEnableFooterView.swift; sourceTree = "<group>"; };
C1963862283794A000298D4D /* BookmarksCachingSearch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BookmarksCachingSearch.swift; sourceTree = "<group>"; };
C1B0F63D2AB08904001EAF05 /* PhasedRolloutFeatureFlagTester.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhasedRolloutFeatureFlagTester.swift; sourceTree = "<group>"; };
C1B0F63F2AB08A53001EAF05 /* PhasedRolloutFeatureFlagTesterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhasedRolloutFeatureFlagTesterTests.swift; sourceTree = "<group>"; };
C1B0F6412AB08BE9001EAF05 /* MockPrivacyConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockPrivacyConfiguration.swift; sourceTree = "<group>"; };
C1B7B51B28941E980098FD6A /* HomeMessageViewModelBuilder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HomeMessageViewModelBuilder.swift; sourceTree = "<group>"; };
C1B7B51F28941F2A0098FD6A /* RemoteMessagingStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RemoteMessagingStore.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -5148,7 +5144,6 @@
C1BF0BA629B63E0400482B73 /* AutofillLoginUI */,
F40F843528C938370081AE75 /* AutofillLoginListViewModelTests.swift */,
C1D21E2E293A599C006E5A05 /* AutofillLoginSessionTests.swift */,
C1B0F63F2AB08A53001EAF05 /* PhasedRolloutFeatureFlagTesterTests.swift */,
);
name = Autofill;
sourceTree = "<group>";
Expand All @@ -5167,7 +5162,6 @@
C17B59552A03AAC40055F2D1 /* PasswordGeneration */,
31951E9328230D8900CAF535 /* Shared */,
F407605428131923006B1E0B /* SaveLogin */,
C1B0F63D2AB08904001EAF05 /* PhasedRolloutFeatureFlagTester.swift */,
);
name = Autofill;
sourceTree = "<group>";
Expand Down Expand Up @@ -6354,7 +6348,6 @@
98B31292218CCB8C00E54DE1 /* AppDependencyProvider.swift in Sources */,
02C57C4B2514FEFB009E5129 /* DoNotSellSettingsViewController.swift in Sources */,
02A54A9C2A097C95000C8FED /* AppTPHomeViewSectionRenderer.swift in Sources */,
C1B0F63E2AB08904001EAF05 /* PhasedRolloutFeatureFlagTester.swift in Sources */,
8540BBA22440857A00017FE4 /* PreserveLoginsWorker.swift in Sources */,
85DFEDF924CF3D0E00973FE7 /* TabsBarCell.swift in Sources */,
F17922DB1E717C8D006E3D97 /* Suggestion.swift in Sources */,
Expand Down Expand Up @@ -6512,7 +6505,6 @@
987130C5294AAB9F00AB05E0 /* BookmarkEditorViewModelTests.swift in Sources */,
8341D807212D5E8D000514C2 /* HashExtensionTest.swift in Sources */,
C1D21E2F293A599C006E5A05 /* AutofillLoginSessionTests.swift in Sources */,
C1B0F6442AB0D47A001EAF05 /* PhasedRolloutFeatureFlagTesterTests.swift in Sources */,
85D2187924BF6B8B004373D2 /* FaviconSourcesProviderTests.swift in Sources */,
1E8146AD28C8ABF000D1AF63 /* TrackerAnimationLogicTests.swift in Sources */,
B6AD9E3A28D456820019CDE9 /* PrivacyConfigurationManagerMock.swift in Sources */,
Expand Down Expand Up @@ -8970,7 +8962,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 81.0.0;
version = 81.1.0;
};
};
C14882EB27F211A000D59F0C /* XCRemoteSwiftPackageReference "SwiftSoup" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/DuckDuckGo/BrowserServicesKit",
"state": {
"branch": null,
"revision": "5a77dc747a1bee25947b1d3ae3831922be05fd22",
"version": "81.0.0"
"revision": "43fd829917f61f605fc110b68bb1bf1841276b3c",
"version": "81.1.0"
}
},
{
Expand Down Expand Up @@ -156,7 +156,7 @@
},
{
"package": "TrackerRadarKit",
"repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit",
"repositoryURL": "https://github.com/duckduckgo/TrackerRadarKit.git",
"state": {
"branch": null,
"revision": "4684440d03304e7638a2c8086895367e90987463",
Expand Down
12 changes: 5 additions & 7 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

// Can be removed after a couple of versions
cleanUpMacPromoExperiment2()
cleanUpIncrementalRolloutPixelTest()

APIRequest.Headers.setUserAgent(DefaultUserAgentManager.duckDuckGoUserAgent)
Configuration.setURLProvider(AppConfigurationURLProvider())
Expand Down Expand Up @@ -246,6 +247,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
UserDefaults.standard.removeObject(forKey: "com.duckduckgo.ios.macPromoMay23.exp2.cohort")
}

private func cleanUpIncrementalRolloutPixelTest() {
UserDefaults.standard.removeObject(forKey: "network-protection.incremental-feature-flag-test.has-sent-pixel")
}

private func clearTmp() {
let tmp = FileManager.default.temporaryDirectory
do {
Expand All @@ -264,12 +269,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
})
}

// Temporary feature flag tester, to validate that phased rollouts are working as intended.
// This is to be removed before the end of August 2023.
lazy var featureFlagTester: PhasedRolloutFeatureFlagTester = {
return PhasedRolloutFeatureFlagTester()
}()

func applicationDidBecomeActive(_ application: UIApplication) {
guard !testing else { return }

Expand Down Expand Up @@ -323,7 +322,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

syncService.scheduler.notifyAppLifecycleEvent()
fireFailedCompilationsPixelIfNeeded()
featureFlagTester.sendFeatureFlagEnabledPixelIfNecessary()
}

private func fireAppLaunchPixel() {
Expand Down
84 changes: 0 additions & 84 deletions DuckDuckGo/PhasedRolloutFeatureFlagTester.swift

This file was deleted.

153 changes: 0 additions & 153 deletions DuckDuckGoTests/PhasedRolloutFeatureFlagTesterTests.swift

This file was deleted.

0 comments on commit 495985d

Please sign in to comment.