infisical
infisical copied to clipboard
feat: bulk save secrets
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:
- Updating secrets under a single secretname
- Updating and saving secrets under multiple secretnames
- 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)
- Create a folder and then update the secrets
- [X] I have read the contributing guide, agreed and acknowledged the code of conduct. 📝
https://github.com/user-attachments/assets/47e9b8a6-7bf7-4f50-8205-fb59b39b7496