Commit c621a3d2 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 32cd334e a8a02387
...@@ -1838,7 +1838,7 @@ class Project < ActiveRecord::Base ...@@ -1838,7 +1838,7 @@ class Project < ActiveRecord::Base
# Set repository as writable again # Set repository as writable again
def set_repository_writable! def set_repository_writable!
with_lock do with_lock do
update_column(repository_read_only, false) update_column(:repository_read_only, false)
end end
end end
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.form-check .form-check
= f.check_box :pages_https_only, class: 'form-check-input', disabled: pages_https_only_disabled? = f.check_box :pages_https_only, class: 'form-check-input', disabled: pages_https_only_disabled?
= f.label :pages_https_only, class: pages_https_only_label_class do = f.label :pages_https_only, class: pages_https_only_label_class do
%strong Force domains with SSL certificates to use HTTPS %strong Force HTTPS (requires valid certificates)
- unless pages_https_only_disabled? - unless pages_https_only_disabled?
.prepend-top-10 .prepend-top-10
......
---
title: Fix method to mark a project repository as writable
merge_request: 25546
author:
type: fixed
---
title: Fix incorrect Pages Domains checkbox description.
merge_request: 25392
author: Anton Melser
type: other
...@@ -20,6 +20,7 @@ module.exports = { ...@@ -20,6 +20,7 @@ module.exports = {
'^ee(.*)$': '<rootDir>/ee/app/assets/javascripts$1', '^ee(.*)$': '<rootDir>/ee/app/assets/javascripts$1',
'^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1', '^helpers(.*)$': '<rootDir>/spec/frontend/helpers$1',
'^vendor(.*)$': '<rootDir>/vendor/assets/javascripts$1', '^vendor(.*)$': '<rootDir>/vendor/assets/javascripts$1',
'\\.(jpg|jpeg|png|svg)$': '<rootDir>/spec/frontend/__mocks__/file_mock.js',
}, },
collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'], collectCoverageFrom: ['<rootDir>/app/assets/javascripts/**/*.{js,vue}'],
coverageDirectory: '<rootDir>/coverage-frontend/', coverageDirectory: '<rootDir>/coverage-frontend/',
...@@ -30,6 +31,7 @@ module.exports = { ...@@ -30,6 +31,7 @@ module.exports = {
setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js', setupTestFrameworkScriptFile: '<rootDir>/spec/frontend/test_setup.js',
restoreMocks: true, restoreMocks: true,
transform: { transform: {
'^.+\\.(gql|graphql)$': 'jest-transform-graphql',
'^.+\\.js$': 'babel-jest', '^.+\\.js$': 'babel-jest',
'^.+\\.vue$': 'vue-jest', '^.+\\.vue$': 'vue-jest',
}, },
......
...@@ -212,7 +212,7 @@ describe 'Pages' do ...@@ -212,7 +212,7 @@ describe 'Pages' do
it 'tries to change the setting' do it 'tries to change the setting' do
visit project_pages_path(project) visit project_pages_path(project)
expect(page).to have_content("Force domains with SSL certificates to use HTTPS") expect(page).to have_content("Force HTTPS (requires valid certificates)")
uncheck :project_pages_https_only uncheck :project_pages_https_only
...@@ -261,7 +261,7 @@ describe 'Pages' do ...@@ -261,7 +261,7 @@ describe 'Pages' do
visit project_pages_path(project) visit project_pages_path(project)
expect(page).not_to have_field(:project_pages_https_only) expect(page).not_to have_field(:project_pages_https_only)
expect(page).not_to have_content('Force domains with SSL certificates to use HTTPS') expect(page).not_to have_content('Force HTTPS (requires valid certificates)')
expect(page).not_to have_button('Save') expect(page).not_to have_button('Save')
end end
end end
......
...@@ -2753,6 +2753,16 @@ describe Project do ...@@ -2753,6 +2753,16 @@ describe Project do
end end
end end
describe '#set_repository_writable!' do
it 'sets repository_read_only to false' do
project = create(:project, :read_only)
expect { project.set_repository_writable! }
.to change(project, :repository_read_only)
.from(true).to(false)
end
end
describe '#pushes_since_gc' do describe '#pushes_since_gc' do
let(:project) { create(:project) } let(:project) { create(:project) }
......
...@@ -6371,6 +6371,11 @@ jest-snapshot@^23.6.0: ...@@ -6371,6 +6371,11 @@ jest-snapshot@^23.6.0:
pretty-format "^23.6.0" pretty-format "^23.6.0"
semver "^5.5.0" semver "^5.5.0"
jest-transform-graphql@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/jest-transform-graphql/-/jest-transform-graphql-2.1.0.tgz#903cb66bb27bc2772fd3e5dd4f7e9b57230f5829"
integrity sha1-kDy2a7J7wncv0+XdT36bVyMPWCk=
jest-util@^23.4.0: jest-util@^23.4.0:
version "23.4.0" version "23.4.0"
resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561" resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.4.0.tgz#4d063cb927baf0a23831ff61bec2cbbf49793561"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment