You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Report per Grace:
Sharing this mostly as an FYI, but noting that when I go to the page to edit the banner, I'm still seeing the A/B test as "live" this morning, with "keep and end test" and "publish and end test" options available. There was also a gift that came through this morning (7:30am EST) from the "control" variant which should no longer be live. That said, the A/B test dashboard on the wagtail edit page isn't showing much change in the number of people who have viewed the banner since Friday, so even if the testing banners are still being served, it seems to be in a very limited capacity.
After setting up a "dummy" A/B test comparing two different donate banners—both featuring the copy from the winning banner of the actual A/B test—and promptly canceling it, it appears that this bug is no longer occurring.
However, if it happens to occur again, here are the commands that I would run in the heroku bash to delete the historical tests from the CMS memory. Please type/paste these commands in one by one after clicking “Run Console” on the production heroku app page:
cd network-api
python manage.py shell
Import the required models:
from wagtail_ab_testing.models import AbTest
from wagtail.models import Page
from wagtail.models import Locale
from networkapi.donate_banner.models import DonateBannerPage
default_locale = Locale.get_default()
Get the default locale and fetch the donate banner page:
default_locale = Locale.get_default()
donate_banner_page = DonateBannerPage.objects.filter(locale=default_locale).first()
if not donate_banner_page:
print("No DonateBannerPage found.")
else:
print(f"Found DonateBannerPage: {donate_banner_page.title}")
if not ab_tests.exists():
print("No historical A/B tests found for this page.")
else:
print(f"Found {ab_tests.count()} historical A/B tests for this page.")
Delete the AB Tests:
ab_tests_count = ab_tests.count()
ab_tests.delete()
print(f"Deleted {ab_tests_count} historical A/B tests associated with the DonateBannerPage.")
Report per Grace:
Sharing this mostly as an FYI, but noting that when I go to the page to edit the banner, I'm still seeing the A/B test as "live" this morning, with "keep and end test" and "publish and end test" options available. There was also a gift that came through this morning (7:30am EST) from the "control" variant which should no longer be live. That said, the A/B test dashboard on the wagtail edit page isn't showing much change in the number of people who have viewed the banner since Friday, so even if the testing banners are still being served, it seems to be in a very limited capacity.
The issue seems to be related to this page specifically: https://foundation.mozilla.org/cms/pages/30700/edit/
┆Issue is synchronized with this Jira Bug
The text was updated successfully, but these errors were encountered: