Resolve "NoMethodError: undefined method `uploader_context' for #<ObjectStorage::MigrateUploadsWorker::Upload:0x00007f59e..."

What does this MR do?

Remove the model redefinition in the MigrateUploadsWorker which caused a problem when moving FileUploader-based uploads.

Are there points in the code the reviewer needs to double check?

The redefinition was there because the worker acts as a background job, and I wanted to ensure the resilence of the model. In fact, I think that is a wrong assumption and we should rather ensure the tests are not broken in the future.

Why was this MR needed?

See #46147 (closed)

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #46147 (closed)

/cc @ayufan @ahanselka @jprovaznik

Merge request reports

Loading