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
Hide eol distros #204
Hide eol distros #204
Conversation
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.
The code changes lgtm.
But, this:
- no way for user to access wiki pages for not displayed distros
Seems like a pretty big con to me. I don't know how others feel about it, but I'm hesitant to move forward without the ability to access the wiki blocks for older distributions.
In the meeting we talked about refactoring this to hide the EOL'd distro selectors, but not completely disable them. |
Delaying this until less radical approach is implemented |
hey @mikaelarguedas and/or @wjwwood @tfoote, how were you testing this PR? I have a local instance of the wiki, and was going to create a test page that uses that macro, but first I have to create a user and I haven't been able to do that successfully yet (haven't tried disabling the whitelist yet) Did you test on a local instance, or just on the live one? |
I was testing live for short time periods |
ok, thanks! |
changed the approach and @dhood is implementing the alternative
macro/macroutils.py
Outdated
@@ -14,6 +14,8 @@ | |||
distro_names = ['boxturtle', 'cturtle', 'diamondback', 'electric', 'fuerte', 'groovy', 'hydro', 'indigo', 'jade', 'kinetic', 'lunar', 'melodic', 'unstable'] | |||
distro_names_indexed = ['diamondback', 'electric', 'fuerte', 'groovy', 'hydro', 'indigo', 'jade', 'kinetic', 'lunar', 'melodic', 'unstable'] #boxturtle and cturtle not indexed | |||
distro_names_buildfarm = ['indigo', 'jade', 'kinetic', 'lunar', 'melodic'] | |||
distro_names_never_on_buildfarm = ['boxturtle', 'cturtle', 'diamondback', 'unstable'] |
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.
I just took a guess at why these distros are being excluded from the macros, open to suggestions for a more appropriate variable name if there is one
I actually think that cturtle and diamondback have been removed from the version selector by accident somewhere along the line (@mikaelarguedas pointed out all files are modifying the global Our ubuntu installation page has code to load the cturtle/diamondback installation pages: http://wiki.ros.org/Installation/Ubuntu (which it can't do currently because the version selector starts at electric). I definitely think that we should restore support for macros referencing older distros e.g. http://wiki.ros.org/image_transport has a section using btw this is the contents of the wiki page I previously posted screenshots for, which is what's making the text show up:
And the following for PackageHeader (I'm testing on a dummy wiki which is why it gives index errors):
|
@tfoote @mikaelarguedas @wjwwood could any of you (re)review this if you get a chance |
This PR is a replacement for previously reverted #169
Pros:
Cons:
Alternative:
Create a checkbox "display EOL distros" next to the version selector that adds back all distros to the version selector and allow to access content for all of them