The update message that informs about GitLab's version status seen in the admin dashboard is useful information for admins but not for other users. Having a message displaying Update ASAP to a user may not be necessary at all or even hinder its use.
Customer requires this badge be removed from the Help page but left to be displayed for admins on the admin dashboard.
Solution
For admins we want to show the current messages: Up to date, New version available, Update ASAP
For non-admins we want to show only the first two messages: Up to date, New version available
The admin screen is not visited that often, as we see in our metrics. We want to make sure people actually update the instance whenever a new release is out. I'm on the fence for this one.
@ksylvan I could imagine that if you have users opening issues because gitlab was not updated (because they were browsing the help) and then you understand. I think to display it in the help is not really useful but only in the admin area.
@JobV which metrics ? GitlLab.com? I think on-premise customers (EE) may have a different interpretation .
Can we show the update message for only admins and hide it for all others?
@dimitrieh I think the What's new? idea could be neat. I've liked this feature on slack and it could promote our release post or something similar. It feels a little separate from this issue where the primary concern seems to be showing the update message to users who have no need for it. But I do like the idea!
I just noticed that the message does change. According to the handbook:
GitLab users who open the help page in the web interface or the admin area will see an image in the top right corner with the text "up to date" in green,"new version out" in yellow or "update asap" in red. This enables them toquickly see if they run an outdated or even vulnerable version of GitLab. The version check is enabled by default and can be disabled in the admin area.
I'm not sure what causes the message to change states though? Maybe we could make it so that admins see the changing states but non-admins only see "Up to date" or "A new version is available!"?
@lbennett would you know why it changes states from "up to date" to "update ASAP".. according to the handbook if there is new version out and your current one contains an important vulnerability... but how is this retrieved?
@dimitrieh Yah, looks like it uses version_check.rb to build a URL https://version.gitlab.com/check.svg?gitlab_info=[base64_encoded_version_hash]. It uses that URL as the src of an <img> element and loads the corresponding image. I don't know where the code for version.gitlab.com is but maybe its a different repo and we can assume that it simply decodes the base64, checks if that version is out of date or vulnerable and returns the corresponding .svg.
GitLab is moving all development for both GitLab Community Edition
and Enterprise Edition into a single codebase. The current
gitlab-ce repository will become a read-only mirror, without any
proprietary code. All development is moved to the current
gitlab-ee repository, which we will rename to just gitlab in the
coming weeks. As part of this migration, issues will be moved to the
current gitlab-ee project.
If you have any questions about all of this, please ask them in our
dedicated FAQ issue.
Using "gitlab" and "gitlab-ce" would be confusing, so we decided to
rename gitlab-ce to gitlab-foss to make the purpose of this FOSS
repository more clear
I created a merge requests for CE, and this got closed. What do I
need to do?
Everything in the ee/ directory is proprietary. Everything else is
free and open source software. If your merge request does not change
anything in the ee/ directory, the process of contributing changes
is the same as when using the gitlab-ce repository.
Will you accept merge requests on the gitlab-ce/gitlab-foss project
after it has been renamed?
No. Merge requests submitted to this project will be closed automatically.
Will I still be able to view old issues and merge requests in
gitlab-ce/gitlab-foss?
Yes.
How will this affect users of GitLab CE using Omnibus?
No changes will be necessary, as the packages built remain the same.
How will this affect users of GitLab CE that build from source?
Once the project has been renamed, you will need to change your Git
remotes to use this new URL. GitLab will take care of redirecting Git
operations so there is no hard deadline, but we recommend doing this
as soon as the projects have been renamed.
Where can I see a timeline of the remaining steps?