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

Resolve location selection against remote locations #2805

Closed
wants to merge 3 commits into from

Conversation

graeme
Copy link
Collaborator

@graeme graeme commented May 22, 2024

Task/Issue URL: https://app.asana.com/0/1203137811378537/1206773442486707/f
BSK: duckduckgo/BrowserServicesKit#764

Description:

The VPN geoswitching logic currently doesn’t handle the case that a location becomes unavailable. We should fall back to the country, if a city isn’t available, or nearest if the country isn’t available.

Steps to test this PR:

Edit the NetworkProtectionVPNLocationViewModel to hardcode an extra a location that doesn’t exist and present it on the UI. Try with a country that doesn’t exist as well as a city that doesn’t exist being added to a country that does.
Select the location and confirm
Check that the fallback logic follow that mentioned in the description.


Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label May 22, 2024
@graeme graeme changed the title Update the branch and adapt code Resolve location selection against remote locations May 22, 2024
@graeme graeme removed the bot: not in app board Added by automation for pull requests with tasks not added to macOS App Board Asana project label May 24, 2024
@graeme graeme requested a review from samsymons May 24, 2024 12:56
@github-actions github-actions bot added the stale label Jun 1, 2024
samsymons added 2 commits June 1, 2024 08:36
# By Elle Sullivan (10) and others
# Via GitHub (6) and others
* main: (42 commits)
  Update autoconsent to v10.9.0 (#2822)
  Bump version to 1.90.0 (196)
  Revert "Add PIPAgent entitlement (#2821)" (#2823)
  Bump version to 1.90.0 (195)
  Bump version to 1.90.0 (194)
  Add PIPAgent entitlement (#2821)
  Fixes some VPN uninstallation issues (#2820)
  Bump version to 1.90.0 (193)
  Remove autofill survey (#2819)
  Remove autofill survey (#2819)
  Bump version to 1.90.0 (192)
  Set marketing version to 1.90.0
  Update embedded files
  Privacy Pro survey support (#2816)
  Update PeopleWhiz Broker Files to use hash id (#2814)
  Update BSK due to iOS changes. (#2776)
  Scroll address bar to caret when using arrows (#2799)
  Privacy Pro macOS quick follow ups (#2813)
  BSK bump for iOS RMF updates (#2798)
  Autofill engagement KPIs for pixel reporting (#2806)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@duckduckgo duckduckgo deleted a comment from github-actions bot Jun 1, 2024
@github-actions github-actions bot removed the stale label Jun 2, 2024
Copy link
Contributor

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Jun 15, 2024
Copy link
Contributor

This PR has been closed after 14 days of inactivity. Feel free to reopen it if you plan to continue working on it or have further discussions.

@github-actions github-actions bot closed this Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants