infisical icon indicating copy to clipboard operation
infisical copied to clipboard

feat: bulk save secrets

Open Utkarshn10 opened this issue 6 months ago • 1 comments

Description 📣

Solves https://github.com/Infisical/infisical/issues/2031

This PR adds the feature to bulk update secrets. To solve the issue I have used the prop drilling method and have sent setBulkSecretUpdateContent array state and updating it when a secret is updated, deleted or added.

Type ✨

  • [ ] Bug fix
  • [X] New feature
  • [ ] Breaking change
  • [ ] Documentation

Tests 🛠️

Edge cases Tested:

  1. Updating secrets under a single secretname
  2. Updating and saving secrets under multiple secretnames
  3. Updating a secret and then deleting the secret using already existing delete functionality (in this case the secret should also be removed from the array that contains the updated secrets)
  4. Create a folder and then update the secrets

https://github.com/user-attachments/assets/47e9b8a6-7bf7-4f50-8205-fb59b39b7496

Utkarshn10 avatar Aug 15 '24 12:08 Utkarshn10