SpartnerNL / Laravel-Nova-Excel

🚀 Supercharged Excel exports for Laravel Nova Resources
https://docs.laravel-excel.com/nova/1.0/
MIT License
382 stars 74 forks source link

[BUG] Action log not working #45

Open dimiandre opened 5 years ago

dimiandre commented 5 years ago

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

  1. Activate the action log following nova documentation https://nova.laravel.com/docs/1.0/actions/defining-actions.html#action-log
  2. Add ExportToExcel or DownloadExcel action to your resource
  3. Do an export

Expected behavior:

Create a new log of the performed action

Actual behavior:

Nothing is created

patrickbrouwers commented 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?

dimiandre commented 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?

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

patrickbrouwers commented 5 years ago

So you mean for each resource (example each user) that is in the export, have a log entry ?

dimiandre commented 5 years ago

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

patrickbrouwers commented 5 years ago

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

dimiandre commented 5 years ago

ok!

thanks a lot :)