2 # api_version returns the git commit hash for the API server's
3 # current version. It is extracted from api_version_text, which
4 # returns the source_version provided by the discovery document and
5 # may have the word "-modified" appended to it (if the API server is
6 # running from a locally modified repository).
9 api_version_text.sub(/[^[:xdigit:]].*/, '')
13 arvados_api_client.discovery[:source_version]
16 # wb_version and wb_version_text provide the same strings for the
17 # code version that this Workbench is currently running.
20 Rails.configuration.source_version
24 wb_version + (Rails.configuration.local_modified or '')
27 def version_link_target version
28 "https://arvados.org/projects/arvados/repository/changes?rev=#{version}"