loopback4-audit-log icon indicating copy to clipboard operation
loopback4-audit-log copied to clipboard

Make model and repository customizable

Open mrbatista opened this issue 1 year ago • 5 comments

When update to latest version is not possible to use custom repository. download a simple repo that reproduce that problem

Make AuditLog model and AuditLogRepository customizable. The latest version add some dependencies and logic that not make library generic:

  • @sourcefuse/core dependency is out of scope of this library
  • @loopback/sequelize dependency is out of scope of this library
  • export a AuditLog model with tenantId property required

mrbatista avatar May 17 '24 08:05 mrbatista

@Tyagi-Sunny please have a look

yeshamavani avatar May 17 '24 12:05 yeshamavani

ok

Tyagi-Sunny avatar May 21 '24 17:05 Tyagi-Sunny

@Tyagi-Sunny, @Surbhi-sharma1 ping

mrbatista avatar Jun 10 '24 15:06 mrbatista

@Tyagi-Sunny, @Surbhi-sharma1 ping

Hello @mrbatista I will have a look at this and let you know

yeshamavani avatar Jun 11 '24 09:06 yeshamavani

@yeshamavani my 2cent:

  • Migrate library as a component
  • Define default AuditLog class
  • Define default AutidTenantLog class
  • Options to configure component to bind to default AuditLog or custom

mrbatista avatar Jun 11 '24 09:06 mrbatista

:tada: This issue has been resolved in version 8.0.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

yeshamavani avatar Apr 21 '25 13:04 yeshamavani