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

Don't specify unlimited feed size by default #3127

Merged
merged 1 commit into from Oct 29, 2023

Conversation

mart-e
Copy link
Contributor

@mart-e mart-e commented May 6, 2023

When not set, the RSS feed contains every article. For site with many articles, this makes a very long feed that can be painful to process.
Having a feed with hundreds of articles, is rarely expected and is probably not the best value.

Set a high fallback value of 100 so it does not change for small sites.

Still allow to have infinite feed by setting FEED_MAX_ITEM = False

  • Ensured tests pass and (if applicable) updated functional test output
  • Conformed to code style guidelines by running appropriate linting tools
  • Added tests for changed code
  • Updated documentation for changed code

@mart-e mart-e marked this pull request as ready for review May 6, 2023 06:48
docs/settings.rst Outdated Show resolved Hide resolved
docs/settings.rst Outdated Show resolved Hide resolved
pelican/writers.py Outdated Show resolved Hide resolved
pelican/writers.py Outdated Show resolved Hide resolved
@mart-e mart-e force-pushed the no-inifinite-feed branch 2 times, most recently from 71c0fd5 to 953b661 Compare May 13, 2023 04:52
Having a feed with hundreds of articles, making a very large file, is
rarely expected.

Set a high fallback value of 100 so it does not change for small sites.

Still allow to have infinite feed by setting FEED_MAX_ITEM = None
@mart-e mart-e changed the title Don't spcify unlimited feed size by default Don't specify unlimited feed size by default May 13, 2023
Copy link
Member

@avaris avaris left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@justinmayer justinmayer added this to the Pelican 4.9 milestone Oct 28, 2023
Copy link
Member

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

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

Thanks to @mart-e for the contribution and to @avaris & @boxydog for reviewing.

@justinmayer justinmayer merged commit 165d57e into getpelican:master Oct 29, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants