stephskardal / rails_admin_import

Rails Admin Import functionality
http://www.endpoint.com/
MIT License
160 stars 122 forks source link

Integration with ActiveJob #55

Closed dmitrypol closed 5 years ago

dmitrypol commented 8 years ago

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.

monkbroc commented 8 years ago

@codealchemy was interested in figuring out how to add this functionality

codealchemy commented 8 years ago

@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.

dmitrypol commented 8 years ago

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.

monkbroc commented 5 years ago

I'll close out this old issue as it's not likely that this particular gem will ever be integrated with ActiveJob.