Skip to content

Conversation

haarg
Copy link
Member

@haarg haarg commented Jul 7, 2017

Refactor of release info fetching and collection. Error handling not yet complete.

@haarg haarg force-pushed the haarg/release-info-refactor branch from 34479d1 to bfab1dc Compare July 14, 2017 16:09
haarg added 2 commits July 14, 2017 18:11
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.
@haarg haarg force-pushed the haarg/release-info-refactor branch from bfab1dc to eb904bc Compare July 14, 2017 16:11
@haarg haarg changed the title [WIP] Release Info refactor Release Info refactor Jul 14, 2017
@haarg haarg requested review from mickeyn and oalders July 14, 2017 16:13
return $ret;
}

my $rt_cpan_base = 'https://rt.cpan.org/Ticket/Display.html?id=';
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Member

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.

@haarg haarg force-pushed the haarg/release-info-refactor branch from eb904bc to 342faa8 Compare July 14, 2017 16:25
@mickeyn mickeyn merged commit 710762e into master Jul 19, 2017
@mickeyn mickeyn deleted the haarg/release-info-refactor branch July 19, 2017 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants