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

Alert user about abnormal app conditions #2110

Merged
merged 13 commits into from
Nov 4, 2023
Merged

Alert user about abnormal app conditions #2110

merged 13 commits into from
Nov 4, 2023

Conversation

jaceklyp
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/72649045549333/1204420573063618/f

Description:
Gracefully handle unrecoverable:

  • compilation errors,
  • insufficient disk space errors,
  • keychain errors.

Steps to test this PR:

  1. Force usage of embedded tds (disable the part where we download tds from remote)

  2. Remove parts of the embedded tds.json so it is no longer parsable.

  3. Simulate insufficient disk space by setting shouldPresentInsufficientDiskSpaceAlertAndCrash to true

  4. Simulate keychain error by placing the following code anywhere in the app: EmailManager().forceSignOut()

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Theme Testing:

  • Light theme
  • Dark theme

Copy link
Contributor

@brindy brindy left a comment

Choose a reason for hiding this comment

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

one minor comment, swiftlint and a conflict to fix, but otherwise LGTM

parameters[PixelParameters.emailKeychainKeychainStatus] = String(status)
parameters[PixelParameters.emailKeychainKeychainOperation] = "save"
}

// https://app.asana.com/0/414709148257752/1205196846001239/f
if errorCode == -25291 {
Copy link
Contributor

Choose a reason for hiding this comment

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

please use the constant here: errSecNotAvailable

@brindy brindy assigned jaceklyp and unassigned brindy Oct 30, 2023
jaceklyp added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Nov 4, 2023
Task/Issue URL: https://app.asana.com/0/72649045549333/1204420573063618/f
iOS PR: duckduckgo/iOS#2110
What kind of version bump will this require?: Patch

Description:

Introduce better handling of critical errors and adjust some EmailManager code to handle errors within.
Copy link

github-actions bot commented Nov 4, 2023

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.

Generated by 🚫 dangerJS against a34178b

@jaceklyp jaceklyp merged commit ecf6b1f into develop Nov 4, 2023
9 checks passed
@jaceklyp jaceklyp deleted the jacek/alerting branch November 4, 2023 19:57
samsymons added a commit that referenced this pull request Nov 5, 2023
* develop:
  Alert user about abnormal app conditions (#2110)
  Add e2e test for email protection deep-links (#2123)
  Update to config v4 (#2114)
  Release 7.95.0 (#2122)
  Add toggling of NetP Notifications to iOS (#2112)
  Fix for deeplink crash when preparing webview preview (#2116)
  Integrates the latest DBP changes in BSK (#2108)
  Switch to next phase of new experiment for UA (#2118)
samsymons added a commit that referenced this pull request Nov 8, 2023
* develop:
  re-enable keyboard shortcuts (#2132)
  fix favorite launch with keyboard bug (#2131)
  Fix syncing empty favorites folders (#2121)
  kill variant when receiving atb update (#2130)
  Adding 'protectionsState' to breakage form submission (#2120)
  Release 7.96.0 (#2128)
  Update remote messaging production url (#2124)
  Alert user about abnormal app conditions (#2110)
  Add e2e test for email protection deep-links (#2123)
  Update to config v4 (#2114)
  Release 7.95.0 (#2122)
  Add toggling of NetP Notifications to iOS (#2112)
  Fix for deeplink crash when preparing webview preview (#2116)
  Integrates the latest DBP changes in BSK (#2108)
  Switch to next phase of new experiment for UA (#2118)
samsymons added a commit that referenced this pull request Nov 9, 2023
# By Christopher Brind (3) and others
# Via GitHub (1) and Michal Smaga (1)
* develop:
  Support environment setting (#2140)
  Update BSK (#2136)
  Update BSK for NetP change (#2134)
  Update test to match exact tracker (#2133)
  Avoid AppTP DB initialization when disabled (#2090)
  re-enable keyboard shortcuts (#2132)
  fix favorite launch with keyboard bug (#2131)
  Fix syncing empty favorites folders (#2121)
  kill variant when receiving atb update (#2130)
  Adding 'protectionsState' to breakage form submission (#2120)
  Release 7.96.0 (#2128)
  Update remote messaging production url (#2124)
  Alert user about abnormal app conditions (#2110)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
samsymons added a commit that referenced this pull request Nov 10, 2023
* develop:
  Support environment setting (#2140)
  Update BSK (#2136)
  Update BSK for NetP change (#2134)
  Update test to match exact tracker (#2133)
  Avoid AppTP DB initialization when disabled (#2090)
  re-enable keyboard shortcuts (#2132)
  fix favorite launch with keyboard bug (#2131)
  Fix syncing empty favorites folders (#2121)
  kill variant when receiving atb update (#2130)
  Adding 'protectionsState' to breakage form submission (#2120)
  Release 7.96.0 (#2128)
  Update remote messaging production url (#2124)
  Alert user about abnormal app conditions (#2110)
  Add e2e test for email protection deep-links (#2123)
  Update to config v4 (#2114)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants