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 Enable Auto Updates banner can momentarily flash on page load. #8235
Comments
@techanvil Yes, this happens on my local dev environment as well - the banner appears for a while and then disappears. In addition to your Steps to reproduce, I did have to delete the |
Cool, thanks for checking this @jimmymadon! With this being reproducible, I've updated the issue with AC and moved it to IB. |
On some further investigation, the banner randomly decided to stay put. To reproduce, I reset site kit again and redid the Steps to reproduce but now, I had to refresh the page in quick succession. Screen.Recording.2024-02-08.at.17.57.59.mov |
Unassigning myself, in order not to hold it, as I didn't get a chance to explore it yet, and in favour of another |
@techanvil I cannot reproduce this, I even tried on the slow 3g network. Banner is stable and fixated on my end all the time: Are you still being able to reproduce this? |
Hi @zutigrm, I just gave it a try and am still able to reproduce it on my local dev environment. Tested and reproduced in Chrome on both Mac and Linux. It happens less often on the Mac for some reason. |
I am unassigning myself so someone else who can reproduce it can debug it. I can't replicate it on my end |
IB ✅ |
This issue is caused by a race condition. |
QA Update ✅
Latest - Recording.829.mp4Dev - Recording.828.mp4</details. |
Bug Description
The Enable Auto Updates banner can momentarily flash on page load. See video below.
Note that this might be a glitch that only occurs for a local development environment, and needs some further investigation.
Steps to reproduce
This was reproducible following these steps. However, it only occurred on my local development environment, I tried on a TasteWP site and the Enable Auto Updates banner stayed visible. Therefore, it would be useful to check if this occurs for other developers and whether it points to an issue that is exclusive to the local environment, or a wider issue.
Update: As per @jimmymadon's comment below this is reproducible, at least on a local development environment. Note Jimmy's additional requirement to reproduce this: deleting the
auto_update_plugins
field from the database.Screenshots
auto-updates-banner-flash.mp4
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
EnableAutoUpdateBannerNotification
to check forisDismissed !== false
, ensuring that the widget will rendernull
whileisDismissed
is still loading (i.e. while it'sundefined
).site-kit-wp/assets/js/components/notifications/EnableAutoUpdateBannerNotification/index.js
Lines 144 to 146 in cc9f305
Test Coverage
QA Brief
This task is a bit hard to test as the issue is caused by a race condition and only happens if the API endpoints load super fast, which is only the case on local.
Changelog entry
The text was updated successfully, but these errors were encountered: