Sign in with Google user registration notification does not always get dismissed #9933
Labels
Module: Sign in with Google
Sign in with Google (SiwG) related issues.
Next Up
Issues to prioritize for definition
P1
Medium priority
Team S
Issues for Squad 1
Type: Bug
Something isn't working
Bug Description
In edit mode, when the user has not enabled the user registration, a notification appears as expected but when I clicked on 'Got it' the notification remains. It's only when I click a second time that it gets dismissed.
It doesn't always happen though. it is a little sporadic in its behaviour.
Fast forward in the attached video to around 1:25 to see the issue in action.
Got.it.in.edit.mode.mov
Further context on
dismissItem
It seems the
dismissItem
action being dispatched when thewp_googlesitekitpersistent_dismissed_items
is either empty or removed causes two separatewp_googlesitekitpersistent_dismissed_items
to be created. Two requests are made, one being legitimate and another being a bogus entry whereslug
is evaluated astrue
rather than a string:If this request is processed by the server first, an empty
wp_googlesitekitpersistent_dismissed_items
is retrieved constantly:If it's not the first entry then everything is normal.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
dismissItem
, and it should be made whereslug
is a string.dismissItem
action such that only a string is a validslug
to prevent this issue in the future.Implementation Brief
Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: