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

Tweaks to DB API, improved abstractions for better testability. #913

Merged
merged 12 commits into from
Aug 4, 2024

Conversation

bwaresiak
Copy link
Collaborator

@bwaresiak bwaresiak commented Jul 25, 2024

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/856498667320406/1207875839908777/f
iOS PR: duckduckgo/iOS#3143
macOS PR: duckduckgo/macos-browser#3033
What kind of version bump will this require?: Major

Description:

Tweak code to improve error handling and events propagation in Clients. Add protocols for improved testability.

Steps to test this PR:

See platform PRs.

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16
  • macOS 10.15
  • macOS 11
  • macOS 12

Internal references:

Software Engineering Expectations
Technical Design Template

insertRootFolder(uuid: legacyFavoritesFolderID, into: context)
}
try prepareRootFolder(uuid: BookmarkEntity.Constants.rootFolderID)
try prepareRootFolder(uuid: legacyFavoritesFolderID)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is now made to throw in case query fails.

dbFileURL: URL,
errorEvents: EventMapping<MigrationErrors>? = nil) -> [String]? {
public func getFavoritesOrderFromPreV4Model(dbContainerLocation: URL,
dbFileURL: URL) throws -> [String]? {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Instead of using event mapper to handle errors, just throw it from here and handle in client.

@bwaresiak bwaresiak changed the title Hep with DB setup and debugging Tweaks to DB API, improved abstractions for better testability. Jul 26, 2024
@bwaresiak bwaresiak marked this pull request as ready for review July 26, 2024 17:13
@bwaresiak bwaresiak requested a review from samsymons July 26, 2024 17:13
* main:
  Duck player support on RMF (#914)
  Update autofill to 12.1.0 (#916)
  Report Autofill failures (#893)
  Update GRDB to 2.4.0 (upstream 6.29.0, SQLCipher 4.6.0) (#915)
  Update Xcode version to 15.4 (#912)
* main:
  Prevent endless rekey and tunnel update cycle (#897)
* main:
  [DuckPlayer] - Create DuckPlayer target and move initially shared code (#921)
  Improve CrashLogMessageExtractor memory safety (#909)
* main:
  Add RMF `messageShown` attribute (#923)
Copy link
Contributor

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

LGTM, bashed on this a fair bit over the week and had no issues with the client testing steps. Thanks!

@samsymons samsymons merged commit 92ecebf into main Aug 4, 2024
7 checks passed
@samsymons samsymons deleted the bartek/data-debugging branch August 4, 2024 23:48
samsymons added a commit that referenced this pull request Aug 5, 2024
* main:
  Tweaks to DB API, improved abstractions for better testability. (#913)
  Add RMF `messageShown` attribute (#923)
  [DuckPlayer] - Create DuckPlayer target and move initially shared code (#921)
  Improve CrashLogMessageExtractor memory safety (#909)
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