-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unstable versions, newer than newest stable, display "old version" message #297
Comments
HI @MateuszKubuszok. Thanks for opening this issue. Unfortunately, I'm not 100% sure to understand what's not working as expected. Going to https://chimney.readthedocs.io/en/1.0.0-rc1/ I see the following versions in the flyout:
Is this sorting correct for you? If not, how it should be sorted?
So, should it show a message informing that This version is unreleased yet, expect things might change, or use the stable for now? |
Hi @humitos!, Thanks for the reply. The best sorting would be:
as I believe it would be according to semver and how it's interpreted by e.g. Maven. I wasn't able to reproduce that order by testing each option on addons page (I tried all with a refresh in-between, and I also tried custom pattern For comparison, what you listed was output when I selected Python Packaging. When I select
even though still selected "Flyout sorting latest stable at the beginning" it's now ascending order, and 1.0.0-milestones are lower than 0.5.0. Sorting alphabetically shows:
It's almost correct but again, its ascending order and milestones and release versions are higher here than normal versions. Finally, my own attempt with
the same as Python Packaging. But I am be Ok with the current sorting, I believe it was sorted more or less this way before addonds become available (release versions and release candidates sorted correctly, then milestones made "before" them all). My biggest concern is that the current message might makes it look as if something is misconfigured, because the user can see message about looking at the older version, when they are accessing the newest albeit unstable version. Anything informing that it is pre-release rather than older versions should be ok. |
OK. I never seen the I'm not sure if there is anything we can do to make the
I think this an interesting point. It could be helpful to for the front-end to realize this is an unreleased version and show a notification communicating this to the users. I'm not sure how to implement this in a way that fit our current pattern, tho. I may need to think more about this use case. |
From what I understand, PEPs for Python Packaging has no such concept. But Semantic Versioning in general does allow them. In the specification I can find item 9:
From what I understand SemVer is quite permissive and allows It's even clarified in 11.3:
I saw these and other suffixes ( SemVer.org has a link to this regexp which shows some examples of valid versions, which one might find surprising, but they are valid. I don't necessarily mean that some tool should hardcode Java suffixes next to Python suffixes. I just mean that SemVer is quote permissive, and each language/framework might establish some convention that would still be well within semantic versioning.
I suspected so. RtD was build primarily around Python-based tools (Sphinx, MkDocs), and I imagine it attracts mainly Python libraries sticking to the Python Packagins formats, so cases like mine (JVM, Scala to be specific) might have flied under the radar. From my perspective, BumpVer takes versions which (kinda) match BOTH SemVer and Python conventions and is a bit confused if someone tries to use version which matched SemVer specification but not in a way similar to Python Packaging. I cannot say how valuable such improvement would be for the community if no one else reported an issue with it.
I understand that. As I said, I am ok if the sorting stays as it now. I was mostly concerned about the wording of the notification. |
I'm seeing this same issue with a release candidate for an upcoming Cilium release https://docs.cilium.io/en/v1.16.0-rc.0/overview/intro/ . Currently the versions of docs we have are:
|
Example:
MAJOR.MINOR.PATCH[-PYTAGNUM]
didn't work as intended, milestones/release candidates were displayed before stable release, etc, so it's the least wrong sorting where only milestones are at the end, out of order, and RC and stable are correctly sorted)I'd assume that documentation for non-stable version - newer than newest stable - would rather have the same banner as latest ("This is the latest development version" or similar) rather than "This may be an older version of this documentation" which might be confusing to the users. Ideally, they would have dedicated message like, "This is preview release, expect things might change, or use the stable for now", but if the choice is between the 2 existing ones, I think less confusing would be message from the unstable version.
The text was updated successfully, but these errors were encountered: