-
Notifications
You must be signed in to change notification settings - Fork 813
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
SSO JITM appears in Calypso Sidebar #14547
Comments
cc @jeherve we're also happy to help fix this one if folks guide us a bit in code. I suspect we have a regex here that's too inclusive. |
Nice catch! This one is a bit of a custom JITM, it doesn't work the same way as the other messages. We force-inject it to the list of messages you should get when you first log in to your site after enabling SSO. That makes fixing things a bit more complicated. To be honest I don't think it makes sense for this message to appear at all in Calypso. Do you happen to know if there would be a way to remove a specific JITM right in Calypso? |
@jeherve Is there no clean way of modifying the API response from One sanity check might be that anything added to the |
Yes, that would seem to be the best way. #14622 should take care of that, hopefully. |
Thanks @jeherve I've added 14622 to our review list! |
cc @rickybanister, thanks to @jeherve this one should be fixed in the 8.3 release |
* JITM: pass extra parameter to filter used to customize messages * SSO: do not display JITM when not in wp-admin Fixes #14547 * Use strict comparison * Set default parameter for new argument Co-authored-by: Brandon Kraft <public@brandonkraft.com>
It looks like an SSO JITM is showing up in the sidebar, probably unintentionally. This was originally found and reported by @rickybanister
I believe this one is registered at
jetpack/modules/sso.php
Line 1113 in e17a5c6
But appears in two API responses on the
calypso:stats-day:admin-notices
andcalypso:stats:sidebar_notice
. For the amount of content here the API should not be returning this.We do have an A/B test running for sidebar banners, but this is unrelated since I see the same behavior in Calypso master at
9820c2fa70292fda1db438deca943ce1b29f0faa
before the PR was merged.@Automattic/manage is happy to help review any PRs if folks have a fix.
To Reproduce This:
Expected: Banner appears in Stats
Actual: Banner appears in Stats and in Sidebar
The text was updated successfully, but these errors were encountered: