Implement haveFirstPartyModeSettingsChanged
Selector and resetFirstPartyModeSettings
Action
#9688
Labels
haveFirstPartyModeSettingsChanged
Selector and resetFirstPartyModeSettings
Action
#9688
Feature Description
Develop a selector and action in the First-party mode datastore to handle the settings state:
haveFirstPartyModeSettingsChanged()
: A selector to check if current settings differ from saved settings.resetFirstPartyModeSettings()
: An action to revert any changes, restoring settings to their saved state.These should integrate with existing rollback and validation processes of Analytics and Ads settings.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
haveFirstPartyModeSettingsChanged
selector should be created to compare the current First-party mode settings with the saved settings, returningtrue
if there are unsaved changes andfalse
if the current settings match the saved settings.resetFirstPartyModeSettings
action should be created to reset any unsaved changes in the First-party mode settings, restoring them to the last saved state.resetFirstPartyModeSettings
action should be called within therollbackChanges
process of both Analytics and Ads settings to ensure any unsaved changes are discarded when rolling back.haveFirstPartyModeSettingsChanged
selector should be used within thevalidateHaveSettingsChanged
function of both Analytics and Ads settings to confirm if there are changes that need validation before saving.Implementation Brief
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: