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

Add the option to archive multiple acted on values at once #2115

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.

yeshamavani commented 2 months ago

Right now we are fixing this issue for v10 of @sourceloop/audit-service we will fix the same for the latest version as well.