-
Notifications
You must be signed in to change notification settings - Fork 297
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
Refactor the ZeroDataNotification to use the new Notifications datastore #8977
Comments
AC and IB ✔️ |
QA Update ❌
@jimmymadon Recording.1304.mp4Question > The "AdSense - Earnings at risk" notice reappears when we open the dashboard in a new tab, even after clicking "OK, Got It!" This occurs in both the latest and development environments. Is this expected? PASS CASES SC gathering Data SC and Analytics gathering data Entity Dashboard (SC and Analytics gathering data) SC is in gathering data state and Analytics is in zero data state. Entity Dashboard ( SC is in gathering data state and Analytics is in zero data state.) Both SC and analytics are in zero data state Entity Dashboard ( Both SC and analytics are in zero data state) Only Analytics is in gathering data state Entity dashboard (Only Analytics is in gathering data state) Other notifications- Another Admin |
Holding this issue in CR with me until #8976 has its follow up PR merged as it fixes this issue too. Then will move this straight to QA. |
@mohitwp Thanks - back to you for another pass! |
QA Update ✅
|
Feature Description
This issue will "use" the new datastore infrastructure to queue the
ZeroDataNotification
using the new datastore infrastructure.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
ZeroDataNotification
should be refactored and rendered (queued) using the newcore/notifications
datastore. This means that the component should not be called directly but via the genericgetQueuedNotifications
selector.Implementation Brief
assets/js/googlesitekit/notifications/register-defaults.js
:ZeroDataNotification
notification similar to theGatheringDataNotification
component.GatheringDataNotification
.GatheringDataNotification
. However, returnfalse
if eitherhasSearchConsoleGatheringData
orhasAnalyticsGatheringData
params are true. This is so that, either theGatheringDataNotification
and theZeroDataNnotification
NEVER get queued together.BannerNotifications
andEntityBannerNotifications
, remove the call toZeroDataNotification
.Test Coverage
QA Brief
Ideally - WAIT for this issue to be merged and then QA both #8976 and this issue together as they are exactly the same pattern in code.
SetupSuccessBannerNotification
is active - they should take precedence over the Gathering and Zero Data notifications.Changelog entry
The text was updated successfully, but these errors were encountered: