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

Use build.version_name first, in case build.version is None #272

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

agjohnson
Copy link
Contributor

When versions are removed, the builds remain with a build.version = None,
along with some additional attributes on the Build instance (for example
build.version_name).

This bug affected any display that listed projects/versions that listed
the most recent build.

When versions are removed, the builds remain with a `build.version = None`,
along with some additional attributes on the Build instance (for example
`build.version_name`).

This bug affected any display that listed projects/versions that listed
the most recent build.

Fixes readthedocs/readthedocs.org#11061
Copy link
Member

@humitos humitos 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 to me.

When versions are removed, the builds remain with a build.version = None,
along with some additional attributes on the Build instance (for example
build.version_name).

I'd suggest to put this comment in the template's code. 2 of us didn't know that we were saving these values in the build object itself to be able to delete the versions while keeping the build for history purposes.

@agjohnson agjohnson merged commit ccbcc7b into main Jan 31, 2024
4 checks passed
@agjohnson agjohnson deleted the agj/fix-project-list-timeout branch January 31, 2024 17:36
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.

Beta dashboard: only the first page of the projects list is accessible
3 participants