Open simison opened 1 year ago
I am going to ping some of the longer-term members of @Automattic/serenity, as this seems related to some work we did earlier this year.
Good points re:
On atomic, the file responsible for fetching is: wp-content/plugins/full-site-editing/wpcom-block-editor-nux/dist/wpcom-block-editor-nux.min.js
. It fetches due to calls from the SellerCelebrationModal and the VideoCelebrationModal.
Confirmed this is still happening.
Quick summary
I see we request for "intent" in couple places in the editor, added in PRs regarding Seller experience:
https://github.com/Automattic/wp-calypso/pull/61222 https://github.com/Automattic/wp-calypso/pull/61771
On my Atomic site these APIs (
/wp-json/wpcom/v2/site-intent
) are returning 404 not found.Furthermore, we request the data twice, while we could request just once and add to data store, and use it from there?
Even furthermore, we request data even if site is old and we're not about to show these welcome/video modals anyway. We should request only if we're about to show them something, not on every editor load.
Steps to reproduce
What you expected to happen
Requests to work, or no requests done.
What actually happened
404 requests
Browser
No response
Context
No response
Platform (Simple, Atomic, or both?)
Atomic
Other notes
No response
Reproducibility
Consistent
Severity
None
Available workarounds?
None
Workaround details
No response