Fix save_state! should only modify state field
Change to use existing document record and only modify the state field. This prevents overwriting name, completed, or any future fields added.
显示
- .rubocop_todo/layout/line_length.yml 0 个添加, 1 个删除.rubocop_todo/layout/line_length.yml
- .rubocop_todo/style/missing_respond_to_missing.yml 0 个添加, 1 个删除.rubocop_todo/style/missing_respond_to_missing.yml
- ee/app/models/elastic/migration_record.rb 15 个添加, 4 个删除ee/app/models/elastic/migration_record.rb
- ee/lib/gitlab/elastic/helper.rb 3 个添加, 0 个删除ee/lib/gitlab/elastic/helper.rb
- ee/spec/models/elastic/migration_record_spec.rb 56 个添加, 10 个删除ee/spec/models/elastic/migration_record_spec.rb
加载中
想要评论请 注册 或 登录