Skip to content

fix preferences sync call#52

Open
rishichawda wants to merge 1 commit into
mainfrom
rc/fix-preferences-sync-call
Open

fix preferences sync call#52
rishichawda wants to merge 1 commit into
mainfrom
rc/fix-preferences-sync-call

Conversation

@rishichawda

@rishichawda rishichawda commented Jun 26, 2026

Copy link
Copy Markdown
Member

Description

Preferences.set was failing when domain, host and user is passed. Call CFPreferencesSynchronize after CF.CFPreferencesSetValue instead of CF.CFPreferencesAppSynchronize to correctly write preference data. Also added a test case for the scenario that uncovered this bug in chef/chef repo to meet the minimum test coverage threshold of 90%

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@rishichawda rishichawda requested review from a team as code owners June 26, 2026 12:27
Signed-off-by: Rishi Kumar Chawda <rishichawda@users.noreply.github.com>
@rishichawda rishichawda force-pushed the rc/fix-preferences-sync-call branch from 3938b06 to a16cae8 Compare June 26, 2026 12:36
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