sourcefuse / loopback4-microservice-catalog

A Catalog of Microservices Created by SourceFuse for the Community
https://sourcefuse.github.io/arc-docs/arc-api-docs/
MIT License
292 stars 70 forks source link

@sourceloop/audit-service Add the option to archive multiple acted on values at once #2119

Closed yeshamavani closed 2 months ago

yeshamavani commented 2 months ago

Is your feature request related to a problem? Please describe.

Right now the custom filter for archival accepts only string type value in actedOn field and there is no field for actionGroup here. This restricts the user to archive only one entity at a time, increasing the number of '/archive' calls and hence increasing the files => which inturn affects the time taken by '/export' job since it has to get data one by one from each file and thus increasing latency.

Describe the solution you'd like Here we can use a string array for actedOn and groupBy fields allowing user to archive all at once.

This is similar to the one done for v10 of audit-service should be done for latest version as well https://github.com/sourcefuse/loopback4-microservice-catalog/issues/2115