Open gibrown opened 6 years ago
This issue has been marked as stale and will be closed in seven days. This happened because:
You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation.
@gibrown When you have some spare time, could you help verify if @taggon 's PR and the backend diff together will resolve this issue? We would be grateful :)
The .com change looks like it doesn't apply to Jetpack sites since the api endpoint still ends up doing a remote call to the JP site. Probably better to have @withinboredom confirm that I am reading it correctly though.
@southp @gibrown The PR #36797 is designed only for enabling JITM for dotcom sites. However, the JITM API call to dotcom sites would be simpler and faster since it doesn't need to invoke remote Jetpack sites' API. For dotcom sites, the data path mentioned in the issue will be like Asia(browser) -> US(wp.com) -> Asia(browser).
I referred this issue because this was the reason for disabling JITM for dotcom sites. The PR doesn't completely resolve the problem.
Cool ya, doesn't resolve this issue, and doesn't fix it for Atomic sites I guess.
and doesn't fix it for Atomic sites I guess.
@gibrown You're right. When I say dotcom sites, they don't include Atomic ones.
This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels.
You're right. When I say dotcom sites, they don't include Atomic ones.
@taggon / @gibrown Is this strictly true? Can we mod this Jetpack_Direct_Call
thing to work with atomic sites?
e.g. something like D85060-code?
Commented on D85060. If we can do this for Atomic sites, then it should work that way for all Jetpack sites.
Thanks we can discuss here if its easier to track pings.
I think it came down to a Jetpack side filter? Looking at the code a bit there might be something to do with user id mapping and determining user roles too. WPCom sites have matching user id's and I think atomic do too (or at least that's what I'm banking on here)
Maybe it would be good to move this into the jetpack repo of issues now if the Jetpack plugin is a part of what needs to change? I think there are ways to get around the user id problems now. Do you have any links or a re-summary of where we are now at?
D85060-code is where we're at currently. I don't really understand this setup much myself. Just know we can't really be expected to develop on this without making it easier to debug requests and test output.
pb5gDS-1DI-p2 - @lupus2k's initial exploration & (re)discovering the extra network hops.
pb5gDS-1Vj-p2 - Latest exploration, resulting in D85060-code.
This issue is stale because it has been 180 days with no activity. You can keep the issue open by adding a comment. If you do, please provide additional context and explain why you’d like it to remain open. You can also close the issue yourself — if you do, please add a brief explanation and apply one of relevant issue close labels.
The current implementation of the JITM in Calypso takes a round about path to get a response:
https://public-api.wordpress.com/rest/v1.1/jetpack-blogs/43590063/rest-api/?_envelope=1&path=%2Fjetpack%2Fv4%2Fjitm&query=%7B%22message_path%22%3A%22calypso%3Aposts-pages%3Aadmin_notices%22%7D&http_envelope=1
Three big problems here:
Chatted a bit with @withinboredom about this, and the main reason for this path is because there is a filter in Jetpack that lets the site owner disable these messages: https://github.com/Automattic/jetpack/blob/4dd36e11d44e0ac3b617476ac2fab50409630dd9/class.jetpack-jitm.php#L29
Two things on that:
I think we could even directly query the v2 api from Calypso and that would resolve most of the issue.