You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the CSV feature working nicely via the web browser.
I would like to create a background job that runs this CSV data export to an S3 bucket every day.
I'm currently doing my own CSV export code separate to ActiveAdmin, but thought it would be nice to re-use the ActiveAdmin export process so I only have to update columns etc.. in one place.
So far I've figured out a way to access the ActiveAdmin resource:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the CSV feature working nicely via the web browser.
I would like to create a background job that runs this CSV data export to an S3 bucket every day.
I'm currently doing my own CSV export code separate to ActiveAdmin, but thought it would be nice to re-use the ActiveAdmin export process so I only have to update columns etc.. in one place.
So far I've figured out a way to access the ActiveAdmin resource:
and then how to access the CSV builder for that resource:
but I'm struggling to figure out how to call the build method manually
some related code in ActiveAdmin: https://github.com/activeadmin/activeadmin/blob/master/app/controllers/active_admin/resource_controller/streaming.rb#L40
🙇
Beta Was this translation helpful? Give feedback.
All reactions