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

PRs show incorrect current version #7622

Closed
Daltz333 opened this issue Oct 30, 2020 · 12 comments
Closed

PRs show incorrect current version #7622

Daltz333 opened this issue Oct 30, 2020 · 12 comments
Labels
Bug A bug

Comments

@Daltz333
Copy link

Our PRs constantly link to another PR as the latest version, which isn't current.

image

https://frc-docs--905.org.readthedocs.build/en/905/

@stsewd stsewd added the Bug A bug label Nov 2, 2020
@stsewd
Copy link
Member

stsewd commented Nov 2, 2020

Maybe do you have some redirects setup in your project? I can't replicate this in other projects

@stsewd
Copy link
Member

stsewd commented Nov 2, 2020

This is weird, this only happening on this subdomain https://frc-docs--905.org.readthedocs.build/, https://frc-docs--915.org.readthedocs.build/en/915/ works fine

@stsewd
Copy link
Member

stsewd commented Nov 2, 2020

Found the problem, this happens when a version doesn't exist. We delete the version after the PR is closed, so the docs you are seeing are cached, or we don't delete them from storage.

This only happens on external versions

@Daltz333
Copy link
Author

Daltz333 commented Nov 2, 2020

We do custom redirects using the sphinxext-rediraffe plugin. But I do not think that is the issue.

@stsewd
Copy link
Member

stsewd commented Dec 9, 2020

We don't delete external versions when the PR is closed/merged now. We mark them as inactive, so the infinite redirect shouldn't happen now (in new builds).

@stsewd stsewd closed this as completed Dec 9, 2020
@Daltz333
Copy link
Author

This issue is still there. The redirect is fine but the detected latest version is false. It should use whatever is marked stable. Not another PR Screenshot_20201209-193751_Firefox Focus.jpg

@stsewd
Copy link
Member

stsewd commented Dec 10, 2020

@Daltz333 is that a recent PR build? Can you put the link here?

@Daltz333
Copy link
Author

Here is a PR that was updated recently https://frc-docs--974.org.readthedocs.build/en/974/

@stsewd
Copy link
Member

stsewd commented Dec 10, 2020

I can see the api is returning show_version_warning: false. Looks like that message comes from this extension https://sphinx-version-warning.readthedocs.io/en/latest/configuration.html#confval-versionwarning_default_message, not from rtd.

@Daltz333
Copy link
Author

Oh, lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug
Projects
None yet
Development

No branches or pull requests

2 participants