-
- Downloads
There was an error fetching the commit references. Please try again later.
Fix direct_upload when records with null file_store are used
Old records have a null value of file_store column. This causes the problems with current direct_upload implementation, as this makes it to choose Store::REMOTE instead of Store::LOCAL. This change moves the store save when change saving the object.
Showing
- app/models/ci/job_artifact.rb 7 additions, 4 deletionsapp/models/ci/job_artifact.rb
- app/models/lfs_object.rb 4 additions, 2 deletionsapp/models/lfs_object.rb
- app/uploaders/object_storage.rb 12 additions, 10 deletionsapp/uploaders/object_storage.rb
- changelogs/unreleased/fix-direct-upload-for-old-records.yml 5 additions, 0 deletionschangelogs/unreleased/fix-direct-upload-for-old-records.yml
- spec/models/ci/job_artifact_spec.rb 39 additions, 0 deletionsspec/models/ci/job_artifact_spec.rb
- spec/models/lfs_object_spec.rb 39 additions, 0 deletionsspec/models/lfs_object_spec.rb
- spec/uploaders/object_storage_spec.rb 70 additions, 31 deletionsspec/uploaders/object_storage_spec.rb
Please register or sign in to comment