dfaruque / Serenity.Extra

Name of the repo says that this is an EXTRA of http://serenity.is platform
60 stars 34 forks source link

Audit insert disabled #19

Closed Zahar661 closed 5 years ago

Zahar661 commented 5 years ago

Hi! Work super, thanks! Why was insert disabled? Error in handler.Old or is there information in the first version of the update?

image

dfaruque commented 5 years ago

I have intentionally disabled it. Because of InsertDate and InsertUser should be in the table field. there is no data change to log actually while inserting. Another issue is bulk inserting the large dataset will be very slow when insert audit log is enabled.

By the way, you may enable it if you need.

asilmertkan commented 5 years ago

Hi! Thanks for good job! Sorry for write on closed issue, so my issue about this. I used ex version and I update it, So now I didn't see Create and Delete log. How I can enable it? Is there a way you can suggest? Thanks Again...

dfaruque commented 5 years ago

implement IAuditLog in which Row/Entity you want to log. like the following public sealed class OrderRow : Row, IIdRow, INameRow, _Ext.IAuditLog

asilmertkan commented 5 years ago

Hi again,

I already implement it and It worked perfect in ex-version. But last version seem just "update" logs. I looked for your azure sample website and I saw same issue in there too. I added a new customer as "abc" then looked logview and I did'nt see a log for this record.

dfaruque commented 5 years ago

Please uncomment the highlighted code (shown in the screenshot above) for now.