Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce number of buckets for open tabs daily pixel #3663

Merged
merged 1 commit into from
Dec 16, 2024
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
7 changes: 1 addition & 6 deletions DuckDuckGo/TabSwitcherOpenDailyPixel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,7 @@ struct TabSwitcherOpenDailyPixel {
case 21...40: return "21-40"
case 41...60: return "41-60"
case 61...80: return "61-80"
case 81...100: return "81-100"
case 101...125: return "101-125"
case 126...150: return "126-150"
case 151...250: return "151-250"
case 251...500: return "251-500"
default: return "501+"
default: return "81+"
}

}
Expand Down
8 changes: 2 additions & 6 deletions DuckDuckGoTests/TabSwitcherOpenDailyPixelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ final class TabSwitcherOpenDailyPixelTests: XCTestCase {
21...40: "21-40",
41...60: "41-60",
61...80: "61-80",
81...100: "81-100",
101...125: "101-125",
126...150: "126-150",
151...250: "151-250",
251...500: "251-500",
501...504: "501+"]
81...90: "81+",
501...504: "81+"]

for bucket in bucketValues {
for value in bucket.key {
Expand Down
Loading