-
Notifications
You must be signed in to change notification settings - Fork 293
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
The isAudienceSegmentationWidgetHidden
flag should retain its value when changing the connected Analytics property
#9432
Comments
isAudienceSegmentationWidgetHidden
flag should retain its value when changing the connected Analytics property
IB ✅ |
Retain choice to display visitor groups on reset
QA Update ✅Verified the following:
|
I wasn't sure the ACs here match up with the QA instructions. I think I was misunderstanding, as the ACs state:
But the QA done by Asvin mentions a database field not being reset/deleted. I think this isn't exactly related to the QA Brief though, and the values returned by the selectors is the main result that matters here. So moving to Approval based on my understanding. |
Thanks @tofumatt - to clarify, the AC point stating "The audience selection should be cleared for all users." relates to the underlying We do want to retain |
Bug Description
For iwpc986_googlesitekit_audience_settings, whenever we disconnect or change analytics properly, the values would not only be cleared but the entired rows will be deleted.
Expectation: The rows should not be deleted; the
configuredAudiences
anddidSetAudiences
properties should have their values reset to the defaults, while theisAudienceSegmentationWidgetHidden
property should retain its value.Steps to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
didSetAudiences
flag should be cleared for all users (see Implement the secondary user variants of the "no audiences" banner. #8577).See #8180 (comment) (Item 3) for additional context.
Implementation Brief
In
includes/Core/User/Audience_Settings.php
:Audience_Settings::merge()
method to handlenull
values forconfiguredAudiences
.In
includes/Modules/Analytics_4/Reset_Audiences.php
:Reset_Audiences::reset_audience_data()
method to use theAudience_Settings::merge()
method to reset theconfiguredAudiences
anddidSetAudiences
properties withnull
andfalse
values, respectively.Audience_Settings::delete()
method to prevent deleting the entire row.Test Coverage
Audience_Settings::merge()
method.Reset_Audiences::reset_audience_data()
method.QA Brief
isAudienceSegmentationWidgetHidden
property still retains its value, but the others have reset to their default values (null
andfalse
respectively).QA:Eng
if necessary).Changelog entry
configuredAudiences
anddidSetAudiences
to default values while keepingisAudienceSegmentationWidgetHidden
unchanged.The text was updated successfully, but these errors were encountered: