-
- 下载
Merge branch 'revert-lock-for-issuable' into 'master'
Revert "Optimistic locking for Issue and Merge Requests" The migration to add `lock_version` in !5146 to every issue and merge request takes too long on GitLab.com since it has to add a default value of 0 to every row. Unfortunately, Rails 4.2 doesn't work properly if the value is left as `nil`; anything using optimistic locking cannot be edited. This bug was fixed in Rails 5.0 via this commit: https://github.com/rails/rails/commit/13772bfa49325a8dc26410d2dcb555665a320f92. I suggest we revert this change for now, and when we upgrade to Rails 5.0 we can reintroduce this feature. See merge request !5245
显示
- app/controllers/projects/issues_controller.rb 1 个添加, 5 个删除app/controllers/projects/issues_controller.rb
- app/controllers/projects/merge_requests_controller.rb 1 个添加, 4 个删除app/controllers/projects/merge_requests_controller.rb
- app/models/concerns/issuable.rb 0 个添加, 6 个删除app/models/concerns/issuable.rb
- app/views/shared/issuable/_form.html.haml 0 个添加, 9 个删除app/views/shared/issuable/_form.html.haml
- db/migrate/20160707104333_add_lock_to_issuables.rb 0 个添加, 17 个删除db/migrate/20160707104333_add_lock_to_issuables.rb
- db/schema.rb 10 个添加, 12 个删除db/schema.rb
- features/project/merge_requests.feature 1 个添加, 1 个删除features/project/merge_requests.feature
- spec/features/issues_spec.rb 0 个添加, 11 个删除spec/features/issues_spec.rb
- spec/features/merge_requests/edit_mr_spec.rb 0 个添加, 11 个删除spec/features/merge_requests/edit_mr_spec.rb
加载中
想要评论请 注册 或 登录