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

Adding lastSentDate to broken site report #2320

Merged
merged 18 commits into from
Jan 29, 2024

Conversation

federicocappelli
Copy link
Member

@federicocappelli federicocappelli commented Jan 10, 2024

Task/Issue URL: https://app.asana.com/0/1163321984198618/1205860617092609/f

Description:

Goal

  • See tech design → ✓ Tech design: Report previously submitted site breakage reports
  • For each reported website store the first 6 characters of the hash of the domain (not eTLD+1) and last reported date (not timestamp).
  • For an existing reported website update the last reported date of the corresponding hash.
  • Last reported days are cleared once they're more than 30 days old.

Why Now?

  • We have observed a lot of reports that appear to be duplicates
  • We implemented this on Android and the Extension
  • We found that 10%+ of reports on Android are duplicates, and expect that pattern to hold across products.

Steps to test this PR:

  • Send a broken website report for website A
  • Check the pixel, should not contain lastSentDate
  • Send a broken website report for website A
  • Check the pixel, should contain lastSentDate with the same day date

Note: 30-days history element expiry can't be easily tested manually, we use unit tests for that.

Device Testing:

  • iPhone 15

OS Testing:

  • iOS 17

Internal references:

Software Engineering Expectations
Technical Design Template

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@mallexxx mallexxx self-assigned this Jan 12, 2024
Copy link
Collaborator

@mallexxx mallexxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Please remove the commented out lines

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
federicocappelli added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 29, 2024
Task/Issue URL:
https://app.asana.com/0/1205842942115003/1205860617092609/f
https://app.asana.com/0/1163321984198618/1206045984561862/f

iOS PR: duckduckgo/iOS#2320
macOS PR: duckduckgo/macos-browser#2041
What kind of version bump will this require?: Major

Description:

This PR contains the code related to two separate, but overlapping, tasks:

https://app.asana.com/0/1205842942115003/1205860617092609/f: Remove the native report broken site form inside the general feedback and replace it with the web privacy dashboard
https://app.asana.com/0/1163321984198618/1206045984561862/f: Store locally a broken website report history and send a lastSentDate field in the report broken site pixel. This task includes the migration to all report broken site business logic and models to BSK.
Privacy dashboard code related to web breakage is now unit tested
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/en.lproj/Localizable.strings
#	LocalPackages/DuckUI/Package.swift
#	LocalPackages/SyncUI/Package.swift
#	LocalPackages/Waitlist/Package.swift
@federicocappelli federicocappelli merged commit 720279e into main Jan 29, 2024
12 checks passed
@federicocappelli federicocappelli deleted the fcappelli/prev_sub_breakage branch January 29, 2024 11:21
samsymons added a commit that referenced this pull request Jan 29, 2024
* main:
  Fix `site:` queries escaping with iOS 17 SDK (#640) (#2402)
  Prepare release script updates (#2389)
  Adding lastSentDate to broken site report  (#2320)
  Bump submodules/privacy-reference-tests from `a3acc21` to `6b7ad1e` (#2382)
  Skip 'Make Release Build' GHA job for Dependabot PRs (#2399)
samsymons added a commit that referenced this pull request Jan 30, 2024
# By dependabot[bot] (1) and others
# Via GitHub
* main:
  Reenable toggle on disallowing vpn (#2404)
  Bump BrowserServicesKit to 103.0.2 (#2393)
  Fix the alpha build VPN extension embed script (#2396)
  Fix `site:` queries escaping with iOS 17 SDK (#640) (#2402)
  Prepare release script updates (#2389)
  Adding lastSentDate to broken site report  (#2320)
  Bump submodules/privacy-reference-tests from `a3acc21` to `6b7ad1e` (#2382)
  Skip 'Make Release Build' GHA job for Dependabot PRs (#2399)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants