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

Allowing users to delete suggestions #1027

Merged
merged 4 commits into from
Nov 3, 2024
Merged

Conversation

tomasstrba
Copy link
Contributor

@tomasstrba tomasstrba commented Oct 21, 2024

Please review the release process for BrowserServicesKit here.

Required:

Task/Issue URL: https://app.asana.com/0/1148564399326804/1208219569168397/f
iOS PR: duckduckgo/iOS#3465
macOS PR: duckduckgo/macos-browser#3430
What kind of version bump will this require?: Minor
Optional:

Description:
Improvements of the HistoryCoordinator to allow users to delete individual suggestions

Steps to test this PR:

  1. Make sure unit tests pass
  2. The UI flow is tested in Allowing users to delete suggestions macos-browser#3430

Internal references:

Software Engineering Expectations
Technical Design Template

@tomasstrba tomasstrba self-assigned this Oct 21, 2024
@tomasstrba tomasstrba marked this pull request as ready for review October 30, 2024 09:16
private(set) public var localSuggestions: [Suggestion]
public var topHits: [Suggestion]
public var duckduckgoSuggestions: [Suggestion]
public var localSuggestions: [Suggestion]
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to make this lets instead rather than effectively making this mutable? I should have done that when I made the last changes, sorry.

In the macOS code that is overwriting these it would be better to re-construct the result via the constructor instead.

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.

Looks good, but SuggestionResult should be immutable.

@tomasstrba
Copy link
Contributor Author

@brindy, I agree with you, way better now. Ready for another review

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.

LGTM, thanks for making the change.

@tomasstrba tomasstrba merged commit 80894bf into main Nov 3, 2024
8 checks passed
@tomasstrba tomasstrba deleted the tom/suggestion-removal branch November 3, 2024 21:21
samsymons added a commit that referenced this pull request Nov 3, 2024
* main:
  Validate VPN errors before re-throwing them (#1054)
  Allowing users to delete suggestions (#1027)
  Revert "Bump github.com/1024jp/gzipswift from 6.0.1 to 6.1.0" (#1055)
  Bump github.com/duckduckgo/privacy-dashboard from 5.3.0 to 7.1.1 (#1046)
  Bump github.com/duckduckgo/sync_crypto from 0.2.0 to 0.3.0 (#1048)
  Bump github.com/1024jp/gzipswift from 6.0.1 to 6.1.0 (#1050)
samsymons added a commit that referenced this pull request Nov 4, 2024
* main:
  Validate VPN errors before re-throwing them (#1054)
  Allowing users to delete suggestions (#1027)
  Revert "Bump github.com/1024jp/gzipswift from 6.0.1 to 6.1.0" (#1055)
  Bump github.com/duckduckgo/privacy-dashboard from 5.3.0 to 7.1.1 (#1046)
  Bump github.com/duckduckgo/sync_crypto from 0.2.0 to 0.3.0 (#1048)
  Bump github.com/1024jp/gzipswift from 6.0.1 to 6.1.0 (#1050)
  Update to subscription cookie (#1053)
  Bug Fix: Phishing Detection Dataset Discrepancies (#1032)
  Include www.youtube.com as Youtube host (#1028)
  Ignore GRDB (#1052)
  Connect refactored update flow to the new release notes page (#1025)
  Add to Dock - Add extra custom view to Contextual Dialog Content (#1043)
  Dependabot for BSK (#1045)
  Update autofill to 15.1.0 (#1044)
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