-
Notifications
You must be signed in to change notification settings - Fork 981
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
Register json middleware #1331
Register json middleware #1331
Conversation
OMG @mollerhoj thank you for pointing this out, I'm surprised we didn't catch this before! |
@mollerhoj I'm unable to commit 😢, could you see if the "allow edits by maintainers" checkbox is enabled on the right? |
It is :-) Now that I have your attention: I'm reading through this gem, and I can't seem to understand what the point of this registry and the adapter registry is. Why not just add the middlewares classes directly to the connection with something like:
The registry seems to add needless complexity (and apparently race conditions #1065). Is there a good reason for it I just do see? |
For some reason I can't commit on your branch in any way 🤔 Could you cherry-pick or replicate this commit into your PR?
This is mostly for legacy support, and you correctly pointed out is not necessary at all. |
Done.
Okay, I see, thank you for the explanation. |
Thanks @mollerhoj, but I think you accidentally force-pushed only my commit on your branch, I didn't include your change in my commit as well because it was supposed to be added 😄 |
I was quite surprised to realize I had to do register this middleware manually, as I didn't have to do that for the other middleware in core.
Ah, good catch! All good now? |
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.
All good! Thanks again for fixing this 🙌!
And thanks for using the main
branch in your projects.
This type of "edge release" feedback in incredibly useful to us 🙏
(cherry picked from commit 5366029)
I was quite surprised to realize I had to do register this middleware manually, as I didn't have to do that for the other middleware in core.