Skip to content
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

rewrite changes handling for rss feed #2857

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

haarg
Copy link
Member

@haarg haarg commented Jan 9, 2023

The previous code would batch requests in the controller, manually generate URLs in the model, and had odd inputs and outputs.

Rewrite the changes model by_release method to accept a simple list of release paths, handling batching internally, and return a simple hashref. Doing the batching internally makes it easy to add concurrency to the requests.

Also fix the version regex to understand v prefixes.

Copy link
Member

@oalders oalders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Just need to remove that one variable to get the tests passing.

lib/MetaCPAN/Web/Controller/Feed.pm Outdated Show resolved Hide resolved
The previous code would batch requests in the controller, manually
generate URLs in the model, and had odd inputs and outputs.

Rewrite the changes model by_release method to accept a simple list of
release paths, handling batching internally, and return a simple
hashref. Doing the batching internally makes it easy to add concurrency
to the requests.

Also fix the version regex to understand v prefixes.
@haarg haarg force-pushed the haarg/rewrite-feed-changes-fetch branch from 1a7d5e9 to bbc3f80 Compare January 9, 2023 23:13
@oalders oalders merged commit 50d76a3 into master Jan 10, 2023
@oalders oalders deleted the haarg/rewrite-feed-changes-fetch branch January 10, 2023 15:08
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.

2 participants