diff options
author | pburdette <pburdette@gitlab.com> | 2019-08-26 10:39:07 -0400 |
---|---|---|
committer | pburdette <pburdette@gitlab.com> | 2019-08-27 14:26:41 -0400 |
commit | f8403e3add2b60f072f2fd83d394f289090e5317 (patch) | |
tree | 0de6007088e0636a796438623b451b4ddc702498 | |
parent | 5f283c588436b1a786c8a772cf63f43577304246 (diff) | |
download | gitlab-ce-35060-remove-token-field.tar.gz |
Remove token field from runners edit form35060-remove-token-field
Add changelog entry
Remove unnecessary test checking for form value
Translations updated for gitlab.pot
Use proper format on changelog entry
-rw-r--r-- | app/views/shared/runners/_form.html.haml | 5 | ||||
-rw-r--r-- | changelogs/unreleased/35060-remove-token-field.yml | 5 | ||||
-rw-r--r-- | locale/gitlab.pot | 3 | ||||
-rw-r--r-- | spec/features/admin/admin_runners_spec.rb | 4 |
4 files changed, 5 insertions, 12 deletions
diff --git a/app/views/shared/runners/_form.html.haml b/app/views/shared/runners/_form.html.haml index 559b5aa9c1e..24b4eae0c58 100644 --- a/app/views/shared/runners/_form.html.haml +++ b/app/views/shared/runners/_form.html.haml @@ -26,11 +26,6 @@ = f.check_box :locked, { class: 'form-check-input' } %label.light{ for: :runner_locked }= _('When a runner is locked, it cannot be assigned to other projects') .form-group.row - = label_tag :token, class: 'col-form-label col-sm-2' do - = _('Token') - .col-sm-10 - = f.text_field :token, class: 'form-control', readonly: true - .form-group.row = label_tag :ip_address, class: 'col-form-label col-sm-2' do = _('IP Address') .col-sm-10 diff --git a/changelogs/unreleased/35060-remove-token-field.yml b/changelogs/unreleased/35060-remove-token-field.yml new file mode 100644 index 00000000000..93a7b459dd8 --- /dev/null +++ b/changelogs/unreleased/35060-remove-token-field.yml @@ -0,0 +1,5 @@ +--- +title: Remove token field from runners edit form +merge_request: 32231 +author: +type: fixed diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 0568bdbdfca..bc86d955c32 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -12064,9 +12064,6 @@ msgstr "" msgid "Toggles :%{name}: emoji award." msgstr "" -msgid "Token" -msgstr "" - msgid "Tomorrow" msgstr "" diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb index 4ad90c96558..0d5f5df71b6 100644 --- a/spec/features/admin/admin_runners_spec.rb +++ b/spec/features/admin/admin_runners_spec.rb @@ -282,10 +282,6 @@ describe "Admin Runners" do visit admin_runner_path(runner) end - describe 'runner info' do - it { expect(find_field('runner_token').value).to eq runner.token } - end - describe 'projects' do it 'contains project names' do expect(page).to have_content(@project1.full_name) |