Skip to content

Render description HTML on upload #5818

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

Merged
merged 6 commits into from
May 12, 2019
Merged

Conversation

dstufft
Copy link
Member

@dstufft dstufft commented May 8, 2019

Renders the description when the file gets uploaded instead of during each HTTP request to a project page. It will also store the version of readme_renderer that was used to render the description, and a periodic task will look for anything that wasn't rendered using the current renderer version (in batches of 5000).

This PR currently will fallback to rendering the description inline if there isn't a Release.description.html, but in the future we will remove that fallback and require that Release.description.html has been set. The fallback exists entirely to keep things working until the cronjob has backfilled all of the data.

Fixes #3739

@dstufft dstufft force-pushed the cached-description branch from f1dbb61 to dc2cef1 Compare May 10, 2019 23:54
@dstufft dstufft force-pushed the cached-description branch from dc2cef1 to 2b94541 Compare May 11, 2019 02:35
@dstufft dstufft changed the title [WIP] Render description HTML on upload Render description HTML on upload May 12, 2019
@dstufft dstufft merged commit 8388334 into pypi:master May 12, 2019
@dstufft dstufft deleted the cached-description branch May 12, 2019 01:00
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.

cache/stash long_descriptions rendered by readme_render
1 participant