-
Notifications
You must be signed in to change notification settings - Fork 29
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
Split ServerAddon
into new file
#469
base: main
Are you sure you want to change the base?
Conversation
6cb9bb6
to
db3248f
Compare
db3248f
to
9a94247
Compare
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.
Thank you for the PR! I think extracting the server addon definition to another file is fine, but the rails runner client changes are breaking some of the conventions we're putting in place
9a94247
to
df12cec
Compare
ServerAddon
ServerAddon
into new file
Thanks for the feedback! The comments definitely make sense and so I've taken out two of the commits which would no longer be necessary - leaving this just with the changes to move |
@andyw8 now that I think about it, didn't we hit issues when trying to require the Sorbet runtime in the server? If my memory serves me right, it sometimes led to issues with the application. Maybe we could just split the files, but still make that one untyped. |
Yes, I remember there was a problem, but not the exact details. I agree with the splitting, but for now let's keep |
@@ -0,0 +1,54 @@ | |||
# typed: false |
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.
Since .rubocop.yml
was updated I think this shouldn't be needed?
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 needs a rebase, but the split looks good
Hi @johansenja, are you hoping to continue on this? |
It is able to benefit fromremoved because of some runtime problemsstrict
typing nowserver.rb
require
it specifically in other files, eg if you want to write tests for your server addon, you canrequire
the server addon file specificallyI originially had some other changes here too, but there are no longer needed!