-
Notifications
You must be signed in to change notification settings - Fork 15
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
Correct ServerFactory by instantiating correct class #1278
base: devel
Are you sure you want to change the base?
Conversation
Reviewer's Guide by SourceryThe ServerFactory class was updated to instantiate the ProxyBasicZMQ class instead of the Proxy class. This change was made to correct a bug in the server factory. Class diagram showing the server factory and proxy relationship changesclassDiagram
class IServer {
<<interface>>
}
class ServerFactory {
-m_log_context
+create(socket_options, socket_credentials) IServer
}
class Proxy {
+Proxy(socket_options, socket_credentials, log_context)
}
class ProxyBasicZMQ {
+ProxyBasicZMQ(socket_options, socket_credentials, log_context)
}
ServerFactory ..> IServer: creates
Proxy ..|> IServer: implements
ProxyBasicZMQ ..|> IServer: implements
note for ServerFactory "Changed to create ProxyBasicZMQ instead of Proxy"
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @JoshuaSBrown - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please provide a more detailed description of the bug and why using ProxyBasicZMQ instead of Proxy fixes it. This context is important for future maintenance.
- Add unit tests to verify the factory correctly instantiates ProxyBasicZMQ and that it behaves as expected.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
I think this is not passing because of corruption in a build layer of one of the docker containers.... |
PR Description
Fixes a bug in the server factory.
Tasks
Summary by Sourcery
Bug Fixes: