-
Notifications
You must be signed in to change notification settings - Fork 7k
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
MM-18068 Route integration actions to plugins without hitting the network #12156
Conversation
@scottleedavis Head up: @crspeller was out last week and will be out this week. And @lieut-data is a bit overloaded with reviews. Hence, it will take some time to review this. Sorry for the delay. |
@gabrieljackson Can you help and jump in? |
No worries @hanzei . I am happy to see this through to completion regardless of delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a stab at this, @scottleedavis! Comments below :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along nicely! A few comments below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, @scottleedavis! Just one change requested in the unit tests below.
gentle reminder for review @DHaussermann |
test failures involve node_modules and redux, ergo I believe is not related to this PR. |
@scottleedavis or @lieut-data Can you please provide some guidance or test steps on this? Can I verify this on the Spinwick server by watching client-side web traffic? I'm not sure I fully understand the problem being solved. |
@DHaussermann, previously, when an integration action was posted to a plugin, the flow was:
This created problems whenever the server couldn't actually connect to its own site url for any number of reasons. Now, the behaviour is effectively:
since the server realizes it's a relative URL and skips the network lookup altogether. It may be possible to test this on the spinwick by setting a bogus SiteURL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regression tested by ensuring post actions still work. Used Giphy and Matterpoll to confirm.
LGTM!
@scottleedavis Can you please merge |
complete. build test failures look unrelated. |
Test server destroyed |
Indeed, the CircleCI errors seem specious. The required tests have passed, so I think we're good here: merging. And thanks, @scottleedavis, as always :) |
I seem to be having an issue related to this in some way. Would you mind taking a look at the issue mentioned above @scottleedavis Thank you. |
Summary
Routes integration actions to plugins without hitting the network and instead calls
hooks.ServeHTTP
directlyTicket Link
Fixes #11964