Merge branch 'bug/project-feature-compatibility' into 'master'

Mutate the attribute instead of issuing a write operation to the DB in `ProjectFeaturesCompatibility` concern.

Closes gitlab-ee#1520

See merge request !8552
This commit is contained in:
Douwe Maan 2017-01-14 21:36:35 +00:00
commit 28f633a96a
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,6 @@ module ProjectFeaturesCompatibility
build_project_feature unless project_feature
access_level = Gitlab::Utils.to_boolean(value) ? ProjectFeature::ENABLED : ProjectFeature::DISABLED
project_feature.update_attribute(field, access_level)
project_feature.send(:write_attribute, field, access_level)
end
end

View File

@ -0,0 +1,5 @@
---
title: Mutate the attribute instead of issuing a write operation to the DB in `ProjectFeaturesCompatibility`
concern.
merge_request: 8552
author: