Closed dmitrypol closed 5 years ago
@codealchemy was interested in figuring out how to add this functionality
@dmitrypol I'm still interested in finding the best way to integrate with ActiveJob, just haven't had the time to tackle it yet. I think there are a few pieces to it (results are currently returned to the user in a flash message v. a file, for example) that would be helpful to handle first.
yes, the flash message does not scale when you have lots of records/errors. For my custom uploaders I have spreadsheet output with success and error tabs. On error tab each row has the original data plus the error_message column. Users fix the data issues and re-upload the spreadsheet.
I am working on custom solution for my importers to take each row in import spreadsheet and turn it into ActiveJob with Sidekiq (or SQS). Then another queue is created with success and error records. When the import is complete the results spreadsheet is generated and emailed.
I'll close out this old issue as it's not likely that this particular gem will ever be integrated with ActiveJob.
Does anyone have experience integrating rails_admin_import with ActiveJob (DJ, Sidekiq, etc)? Does the gem support it?
Some of the files I am importing are quite large. The workflow I am thinking of is that on file upload it will queue up the job and email spreadsheet with results on completion.