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

Ensure _DISCARDED is not being cached. Fix #2825 #2926

Merged

Conversation

jonasborges
Copy link
Contributor

Filtration is now being applied before caching the metadata, solving the issue where _DISCARD objects from previous runs were being retrieved from cache.

Pull Request Checklist

Resolves: #2825

  • 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

Filtration is now being applied before caching the metadata, solving the issue where _DISCARD objects from previous runs were being retrieved from cache.
pelican/tests/test_readers.py Outdated Show resolved Hide resolved
pelican/tests/test_readers.py Outdated Show resolved Hide resolved
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.

Thanks!

@jonasborges
Copy link
Contributor Author

Thanks!

no problem. thank you for the review!

@justinmayer
Copy link
Member

Many thanks to @jonasborges for the fix and to @avaris for reviewing! 🥇

@justinmayer justinmayer merged commit 8849721 into getpelican:master Oct 6, 2021
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.

Reader level cache results in TypeError with empty metadata in Markdown
3 participants