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:
commit
28f633a96a
|
@ -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
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Mutate the attribute instead of issuing a write operation to the DB in `ProjectFeaturesCompatibility`
|
||||
concern.
|
||||
merge_request: 8552
|
||||
author:
|
Loading…
Reference in New Issue