Open dimiandre opened 5 years ago
Hey @dimiandre . What do you expect to end up in the action log. That the resource has been exported or that someone started an export?
Hey @dimiandre . What do you expect to end up in the action log. That the resource has been exported or that someone started an export?
@patrickbrouwers thanks for the reply :) I think in case of DownloadExcel action would be nice to have a log of the resource has been exported and in case of ExportToExcel would be nice to have a log of the resource has started exporting
what do you think?
So you mean for each resource (example each user) that is in the export, have a log entry ?
So you mean for each resource (example each user) that is in the export, have a log entry ?
yes! but as i said, it's a native feature of nova the "action log". It should work by default each time you create a cutom action, I don't know why it's not working with this action
It's because the export action is not like any other nova action, it doesn't inherit all the functionality because we delegate the querying (for performance reasons) to the laravel excel package. I didn't enable the action log, because it didn't seem valuable to me. I'm fine with adding it, however it's not really high on my current prio-list. If it's of importance to you (to have it prioritize) you can check our options for commercial support: https://laravel-excel.com/commercial-support
ok!
thanks a lot :)
Prerequisites
Activate the action log following nova documentation https://nova.laravel.com/docs/1.0/actions/defining-actions.html#action-log (adding use Actionable to the model that refers to resource that has ExportToExcel or DownloadExcel action)
Versions
Description
If you activate the Action log, when you export something you should see the log inside the single view of the resource. This does not happen. I tried other actions and those are being logged correctly.
Steps to Reproduce
Expected behavior:
Create a new log of the performed action
Actual behavior:
Nothing is created