Comment 0 for bug 1940318

Revision history for this message
Heitor Matsui (heitormatsui) wrote :

Brief Description
-----------------
In Horizon, the 'Help' button in the user's dropdown menu, located at the top right corner in Horizon, redirects the user to https://docs.openstack.org/, which will open the latest OpenStack release docs (which is currently Wallaby), instead of opening the proper Ussuri documentation

Severity
--------
Minor

Steps to Reproduce
------------------
Log into Horizon, click your user's dropdown menu at the top right corner and then click the Help button

Expected Behavior
------------------
The user is taken to the applied OpenStack release documentation

Actual Behavior
----------------
The user is taken to the latest upstream release documentation

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any

Branch/Pull Time/Commit
-----------------------
master

Last Pass
---------
N/A

Timestamp/Logs
--------------
Snippet of the HTML from the user's dropdown menu at the top right corner, the second <a> tag is the one that points to the Help URL:

<ul id="editor_list" class="dropdown-menu dropdown-menu-right selection-menu">
    <li><a href="/settings/" target="_self"><span class="fa fa-cog"></span>
            Settings
        </a></li>
    <li><a href="http://docs.openstack.org" target="_blank"><span class="fa fa-question-circle"></span>
            Help
        </a></li>
    <li><a href="/project/api_access/openrc/"><span class="fa fa-download"></span>

            OpenStack RC File
        </a></li>
    <li class="divider"></li>
    <li>
        <ul class="dropdown-menu theme-picker">
            <li class="dropdown-header">Themes:</li>
            <li><a data-theme="default" class="theme-default theme-picker-item dropdown-selected disabled" href="#"
                    target="_self"><span class="fa fa-check dropdown-selected-icon"></span><span
                        class="dropdown-title">Default</span></a></li>
            <li><a data-theme="material" class="theme-material theme-picker-item openstack-spin" href="#"
                    target="_self"><span class="fa fa-check dropdown-selected-icon"></span><span
                        class="dropdown-title">Material</span></a></li>
        </ul>
        <script>
            $(document).ready(function () {

                horizon.addInitFunction(function () {

                    $(document).on('click', '.theme-picker-item', function (e) {
                        var $this = $(this);

                        // prevent the default <a> click handler from firing - on
                        // Chrome it confuses the reload() we do below
                        e.preventDefault();

                        if ($this.hasClass('disabled')) {
                            e.stopPropagation();
                            return;
                        }

                        var CookieDate = new Date;
                        CookieDate.setFullYear(CookieDate.getFullYear() + 10);

                        document.cookie = 'theme=' + $this.data('theme') + '; path=/; expires=' + CookieDate.toGMTString() + ';';
                        document.location.reload();
                    });
                });
            });
        </script>
    </li>
    <li class="divider"></li>
    <li><a href="/auth/logout/" target="_self"><span class="fa fa-sign-out"></span>
            Sign Out
        </a></li>
</ul>

Test Activity
-------------
Regression Testing

Workaround
----------
Open the correct documentation