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

Refactor sitemap sort order #5475

Closed
wants to merge 1 commit into from
Closed

Conversation

mashrikt
Copy link
Contributor

@mashrikt mashrikt commented Mar 17, 2019

This is an initial fix.

Closes #5447

@@ -56,9 +56,9 @@ def comparable_version(version_string):
"""
comparable = parse_version_failsafe(version_string)
if not comparable:
if version_string == LATEST_VERBOSE_NAME:
if version_string == STABLE_VERBOSE_NAME:
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that we should do it like this because -

https://github.com/rtfd/readthedocs.org/blob/93bd03b4a8ed42c3a0b3633f114f21a0eac9ea11/readthedocs/projects/templatetags/projects_tags.py#L13-L20

is using comparable_version and changing this means that the order in which versions are rendered everywhere will get disturbed. #5157.

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

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

The issue is about prioritizing the default version over hardcoded stable or latest.

https://github.com/rtfd/readthedocs.org/blob/5e3c099fd21140445ed96a868cb640d1df9b4033/readthedocs/projects/models.py#L951

@stsewd stsewd added the PR: work in progress Pull request is not ready for full review label Mar 28, 2019
@stale
Copy link

stale bot commented May 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label May 12, 2019
@stale stale bot closed this May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: work in progress Pull request is not ready for full review Status: stale Issue will be considered inactive soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sitemap sort order may prioritise unstable/development documentation
3 participants