Skip to content

fix: persist site config via setConfig after disableImport#240

Open
prithipalpatwal wants to merge 1 commit intomainfrom
fix/disable-import-audit-set-config
Open

fix: persist site config via setConfig after disableImport#240
prithipalpatwal wants to merge 1 commit intomainfrom
fix/disable-import-audit-set-config

Conversation

@prithipalpatwal
Copy link
Copy Markdown

Site save tracks updates through setters; mutating getConfig() alone did not reliably persist import changes. Calling setConfig(Config.toDynamoItem(siteConfig)) before save.

Tests mock Config.toDynamoItem and assert setConfig on success paths, and that setConfig is skipped when the site is not found or lookup fails.

Made-with: Cursor

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

…sableImport

Site save tracks updates through setters; mutating getConfig() alone did not
reliably persist import changes. Mirror brand-profile by calling
setConfig(Config.toDynamoItem(siteConfig)) before save.

Tests mock Config.toDynamoItem and assert setConfig on success paths, and that
setConfig is skipped when the site is not found or lookup fails.

Made-with: Cursor
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant