infisical icon indicating copy to clipboard operation
infisical copied to clipboard

fix: allow creation of multiple project envs

Open varonix0 opened this issue 1 year ago • 0 comments

Description 📣

Previously when creating multiple project environments at once, it was possible that our database would throw an error, due to the unique composite constraint on project ID / position. This would happen because the transactions would turn into race conditions of whichever would first finish wish the selected position.

The solution for this is to use the keystore to ensure that only one project environment update / create / delete operation will run at once.

Type ✨

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

varonix0 avatar Sep 30 '24 13:09 varonix0