-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Version handling improvements #1354
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
Version handling improvements #1354
Conversation
Nice! |
# self.versions.create(slug='stable', verbose_name='stable', type='branch', active=True, identifier=branch) | ||
slug=LATEST, verbose_name=LATEST_VERBOSE_NAME, machine=True, type='branch', active=True, identifier=branch) | ||
# if not self.versions.filter(slug=STABLE).exists(): | ||
# self.versions.create_stable(type='branch', identifier=branch) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the create_stable isn't used currently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not in that case. But here: https://github.com/rtfd/readthedocs.org/pull/1354/files#diff-c31d0a7752163caf020c33fb85ba7a96R124
…ments Version handling improvements
🎆 |
It was accidentally removed in 4e7c80e as part of #1354. See: 4e7c80e#diff-d61f6aff9736141f30b581471d5d55ceL515
Here are some improvements that I made while investigating #1052.
The breakdown is:
'stable'
and'latest'
and use a defined constant instead.create_stable
/create_latest
manager methods for easier creation of versions.BetterVersion
is a terrible name IMO :) It should more say about what it actually is. I renamed it toVersionIdentifier
.