-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Remove non-ActiveRecord::Base backed association #892
Conversation
b56354c
to
e05a8f2
Compare
@rrunyon 😓 Nice find! Yay Sorbet (and you!) being helpful here. I'll merge this. I'm curious, did Tapioca/Sorbet complain about the models otherwise? I've struggled with with Sorbet'ing this repository because of this line:
...or maybe you'll find that next after we solve this exception 😬 |
The typegen for DSLs crashed on the above error so I wasn't able to see if there were more issues downstream. I'm happy to follow up after this is merged, and if I run into more issues maybe I'll work off of a fork until I can power through compilation and contribute back what I find. |
@rrunyon I just pushed a release to RubyGems if you can try that next 🤞🏻 https://github.com/bensheldon/good_job/releases/tag/v3.14.2 |
@bensheldon that did the trick! I was able to generate
This list is missing |
I have a project using GoodJob that I attempted to autogenerate Sorbet types for today. During
bin/tapioca dsl
I was running into this error:I traced the breaking association to
GoodJob::Execution#batch_callback
. From what I can tell, this association is not referenced anywhere in the code, nor is it valid because it relies on a PORO as its backing class. I was able to reproduce the issue by following the association on one of my execution records:Seems to me like removing it is probably the best thing to do.
Thanks for all the hard work!