google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.23k stars 284 forks source link

Refactor the ZeroDataNotification to use the new Notifications datastore #8977

Closed jimmymadon closed 3 weeks ago

jimmymadon commented 2 months ago

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

Implementation Brief

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.

Changelog entry

eugene-manuilov commented 1 month ago

AC and IB ✔️

jimmymadon commented 1 month ago

@mohitwp This issue is now merged, so I have assigned you this one as you were assigned to #8976. Both these issues can be QAed now together as per their QAB. c.c. @wpdarren

mohitwp commented 1 month ago

QA Update ❌

@jimmymadon Issue > On View only dashboard zero and gathering data notifications are not showing. On latest environment zero and gathering data state notifications are showing.

https://github.com/user-attachments/assets/102d3b92-bfcb-411b-8693-4738bc237066

Question > 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?

![image](https://github.com/user-attachments/assets/759c7db0-87d0-42db-942d-24f52d130d97) https://github.com/user-attachments/assets/109bd5c5-52cd-4853-a579-c167be7cc2fe

PASS CASES

SC gathering Data ![image](https://github.com/user-attachments/assets/55c19487-e61d-4a69-8657-3ac49b40127e) SC and Analytics gathering data ![image](https://github.com/user-attachments/assets/425e7116-b8d5-4831-a791-12821d294847) Entity Dashboard (SC and Analytics gathering data) ![image](https://github.com/user-attachments/assets/1b76bc61-4e22-4b12-938d-bff344f00664) SC is in gathering data state and Analytics is in zero data state. ![image](https://github.com/user-attachments/assets/00cc73b1-8045-4475-8042-adf3d7dc86da) Entity Dashboard ( SC is in gathering data state and Analytics is in zero data state.) ![image](https://github.com/user-attachments/assets/83c7f0c0-57a5-45cf-9d7c-2e02a240d321) Both SC and analytics are in zero data state ![image](https://github.com/user-attachments/assets/30d113e7-6706-446c-b5a9-9bb4f2ff645c) Entity Dashboard ( Both SC and analytics are in zero data state) ![image](https://github.com/user-attachments/assets/7cc4b68d-3084-4002-ab23-3339ee4ae5de) Only Analytics is in gathering data state ![image](https://github.com/user-attachments/assets/1c3f78da-a48c-4fd0-8453-e320565077de) Entity dashboard (Only Analytics is in gathering data state) ![image](https://github.com/user-attachments/assets/9d0ec303-6b96-4717-8795-0696b9089009) Other notifications- Another Admin ![image](https://github.com/user-attachments/assets/b2910d07-700c-40ed-a549-8e6bb6668a59) ![image](https://github.com/user-attachments/assets/5ccf5f07-e9f6-4342-a64d-48439b12da01)
jimmymadon commented 1 month ago

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.

jimmymadon commented 1 month ago

@mohitwp Thanks - back to you for another pass!

mohitwp commented 4 weeks ago

QA Update ✅

![image](https://github.com/user-attachments/assets/7a381813-375a-4e0c-bc3f-35ec1810b057) ![image](https://github.com/user-attachments/assets/48879d8e-8b6a-40b0-849a-8ea25ec1e779) ![image](https://github.com/user-attachments/assets/ecc683f2-0bf1-4724-8b09-d978a9a1d796) ![image](https://github.com/user-attachments/assets/1ee255c6-73e9-4a08-9111-397a615039e9) https://github.com/user-attachments/assets/f430fbd7-dd3e-4dc7-9017-370310bbef05 https://github.com/user-attachments/assets/9404f92c-af2c-4cee-9f0a-dcf740778804