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

Fixes App Data Clearing State Status In Settings #3041

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

afterxleep
Copy link
Collaborator

@afterxleep afterxleep commented Jul 4, 2024

Task/Issue URL: https://app.asana.com/0/1204099484721401/1207731330276486/f

Description:
Fixes an issue that caused the "Automatically Clear Data" state in settings to be out of sync.

Fixed by observing Data Clearing updates. – (Eventually, this and all other parts of AppSettings should adopt Combine publishers instead of Notifications, but this does the trick today)

Steps to test this PR:

  • Go to Settings > Data Clearing
  • Observe on/off indicator for 'Automatically Clear Data'
  • Click 'Automatically Clear Data' and toggle the setting ON or OFF
  • Click the Back button
  • Observe the on/off indicator and see that the copy doesn't accurately reflect the toggle state

Internal references:

Software Engineering Expectations
Technical Design Template

@github-actions github-actions bot added the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Jul 4, 2024
@afterxleep afterxleep marked this pull request as ready for review July 4, 2024 16:38
@afterxleep afterxleep removed the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Jul 4, 2024
@afterxleep afterxleep requested review from a team, miasma13 and tomasstrba and removed request for a team and miasma13 July 4, 2024 16:58
@brindy brindy self-requested a review July 4, 2024 18:10
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. Just one small typo, then feel free to merge.

DuckDuckGo/AppUserDefaults.swift Outdated Show resolved Hide resolved
@afterxleep afterxleep merged commit dc1d84e into main Jul 4, 2024
14 checks passed
@afterxleep afterxleep deleted the daniel/settings.fix branch July 4, 2024 23:30
samsymons added a commit that referenced this pull request Jul 7, 2024
# By Christopher Brind (3) and others
# Via Anh Do (1) and GitHub (1)
* main:
  Add connection tester failure pixels (#3049)
  Release 7.127.0-1 (#3051)
  fix bug not clearing ui properly on autoclear (#3050)
  widget UI tests (#3042)
  fix autofill widget failure (#3040)
  macOS BSK change: De-duplicate passwords on import (#3048)
  Privacy Dashboard refactor (#3038)
  Make Maestro tests fail on flow cancellation (#3036)
  Improve VPN logging logic (#3032)
  Subscription refactoring #5 (#3023)
  Update Sync error pixels (#3046)
  Fixes App Data Clearing State Status In Settings (#3041)
  update sync error copy (#2870)
  Fixes for Xcode 16 (BSK -> 164.3.0) (#3035)
  Update the Privacy Pro status attribute matcher (#3033)

# 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants