Return or display Gitlab version if GITLAB_KAS_VERSION is a SHA
Gitlab::Kas.version and Gitlab::Kas.version_info are called when the API or ~frontend needs to display the KAS semantic version. Both Gitlab::Kas.version and Gitlab::Kas.version_info bases the version on the contents of the GITLAB_KAS_VERSION file. We want to handle the possibility that the content of the GITLAB_KAS_VERSION file is a SHA. In this situation, Gitlab::Kas.version and Gitlab::Kas.version_info will be based on the Gitlab version, with the SHA as the suffix. Changelog: changed
显示
- app/assets/javascripts/clusters/agents/index.js 2 个添加, 2 个删除app/assets/javascripts/clusters/agents/index.js
- app/assets/javascripts/clusters_list/components/agent_table.vue 5 个添加, 5 个删除...sets/javascripts/clusters_list/components/agent_table.vue
- app/assets/javascripts/clusters_list/components/agent_token.vue 2 个添加, 2 个删除...sets/javascripts/clusters_list/components/agent_token.vue
- app/assets/javascripts/clusters_list/index.js 4 个添加, 2 个删除app/assets/javascripts/clusters_list/index.js
- app/helpers/clusters_helper.rb 2 个添加, 1 个删除app/helpers/clusters_helper.rb
- app/helpers/projects/cluster_agents_helper.rb 1 个添加, 1 个删除app/helpers/projects/cluster_agents_helper.rb
- app/views/admin/dashboard/index.html.haml 1 个添加, 1 个删除app/views/admin/dashboard/index.html.haml
- lib/gitlab/kas.rb 47 个添加, 2 个删除lib/gitlab/kas.rb
- spec/frontend/clusters_list/components/agent_table_spec.js 13 个添加, 6 个删除spec/frontend/clusters_list/components/agent_table_spec.js
- spec/frontend/clusters_list/components/agent_token_spec.js 4 个添加, 4 个删除spec/frontend/clusters_list/components/agent_token_spec.js
- spec/helpers/clusters_helper_spec.rb 3 个添加, 2 个删除spec/helpers/clusters_helper_spec.rb
- spec/helpers/projects/cluster_agents_helper_spec.rb 2 个添加, 2 个删除spec/helpers/projects/cluster_agents_helper_spec.rb
- spec/lib/gitlab/kas_spec.rb 60 个添加, 13 个删除spec/lib/gitlab/kas_spec.rb
- spec/views/admin/dashboard/index.html.haml_spec.rb 3 个添加, 5 个删除spec/views/admin/dashboard/index.html.haml_spec.rb
想要评论请 注册 或 登录