-
Notifications
You must be signed in to change notification settings - Fork 236
Release Info refactor #1946
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
Release Info refactor #1946
Conversation
34479d1
to
bfab1dc
Compare
This merges the ReleaseInfo role's logic into the ReleaseInfo model, and allows it to give all of the relevant release info at once. This removes the need to have goofy shared functions to massage the data, or insert it into the stash. It also allows the parallelism of the release info requests to be controlled easier.
bfab1dc
to
eb904bc
Compare
return $ret; | ||
} | ||
|
||
my $rt_cpan_base = 'https://rt.cpan.org/Ticket/Display.html?id='; |
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.
Any reason we didn't want to have all of this logic living in a model?
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.
It kind of feels like it doesn't belong there, since it is display logic. I wasn't sure really about where it should be, but ReleaseInfo would be the appropriate model if it was on that level.
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.
Actually I misread your comment. I was considering moving this into ReleaseInfo, but I wasn't certain yet if I wanted to do that. But it can also be addressed separately.
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.
I was just curious. I thought it might be easier to test in a model and I think it got pulled from a model into the controller.
eb904bc
to
342faa8
Compare
Refactor of release info fetching and collection. Error handling not yet complete.