api-client/packages/hoppscotch-backend
shaezard 1824990980
fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647)
* fix: add teamID/userUid filter to updateMany queries

Prevents cross-user/cross-team orderIndex corruption

* fix: fix orderIndex of existing collections

* feat(backend): add cascade delete for collections

- Add onDelete: Cascade to TeamCollection parent relationship
- Add onDelete: Cascade to UserRequest → UserCollection relationship
- Remove manual recursive deleteCollectionData methods
- Simplify deleteUserCollection and deleteTeamCollection services
- Add Prisma migration for cascade delete foreign keys

Resolves #5654

* refactor(team-collection): remove manual deleteCollectionData method

Resolves #5654

* fix(backend): fixed locking mechanisms for collections and requests

- User/Team Collection/Requests

Resolves #5666

---------

Co-authored-by: Abdur Rahman Daanish <abdurrahman_daanish@intuit.com>
2026-01-23 00:32:48 +06:00
..
prisma fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647) 2026-01-23 00:32:48 +06:00
src fix: add teamID/userUid filter to updateMany queries, Fixed Row level locking to prevent deadlocks and achieve ~100x performance improvement (#5647) 2026-01-23 00:32:48 +06:00
test feat: added hoppscotch-backend as a package 2022-12-05 12:36:11 +05:30
.dockerignore chore: added docker files for bringing the container up 2022-12-06 13:18:02 +05:30
.gitignore chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
.prettierrc chore: cleaned up hopp-backend package and modified docker and docker-compose files 2022-12-08 22:19:14 +05:30
backend.Caddyfile feat: mock server (#5482) 2025-10-27 23:03:22 +05:30
Dockerfile feat: update node version to node20-apline3.19 (#4040) 2024-05-10 14:24:34 +05:30
eslint.config.js chore(backend): update dependencies (#5085) 2025-05-22 16:32:58 +05:30
global.d.ts feat: added jest and jest-fp-ts setup 2022-12-20 14:41:50 +05:30
jest.setup.js feat: added jest and jest-fp-ts setup 2022-12-20 14:41:50 +05:30
nest-cli.json chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
package.json chore: security patch for the dependency chain v2026.1.0 (#5786) 2026-01-21 23:25:40 +05:30
prisma.config.ts chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
prod_run.mjs chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30
tsconfig.build.json refactor: slim down the backend containers (#4233) 2024-08-08 11:31:13 +05:30
tsconfig.json chore: security patch for the dependency chain v2025.11.0 (#5590) 2025-11-24 14:21:29 +05:30