[PR #3177] [MERGED] HBE-147 refactor: Introduce Team-Environments into self-host refactored to pseudo-fp format #4269

Closed
opened 2026-03-17 01:49:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3177
Author: @balub
Created: 7/7/2023
Status: Merged
Merged: 7/13/2023
Merged by: @AndrewBastin

Base: release/2023.4.8Head: refactor/team-environments


📝 Commits (10+)

  • a3afbc1 refactor: refactored getTeamEnvironment service method to pseudo-FP
  • dbdbe09 refactor: refactored createTeamEnvironment service method to pseudo-FP
  • 90d203b refactor: refactored deleteTeamEnvironment service method to pseudo-FP
  • cecd22c refactor: refactored updateTeamEnvironment service method to pseudo-FP
  • e7541e8 refactor: refactored deleteAllVariablesFromTeamEnvironment service method to pseudo-FP
  • abbc523 refactor: refactored createDuplicateEnvironment service method to pseudo-FP
  • f50b646 refactor: refactored fetchAllTeamEnvironments service method to pseudo-FP
  • 3fa9dd0 chore: added comments to all service methods in team-environments module
  • f9f63b5 refactor: refactored team-environment guard into pseudo-fp
  • ac9d559 chore: modifed mutations in team-environment resolver

📊 Changes

7 files changed (+403 additions, -435 deletions)

View changed files

📝 packages/hoppscotch-backend/src/errors.ts (+7 -0)
📝 packages/hoppscotch-backend/src/team-environments/gql-team-env-team.guard.ts (+24 -49)
packages/hoppscotch-backend/src/team-environments/input-type.args.ts (+41 -0)
📝 packages/hoppscotch-backend/src/team-environments/team-environments.resolver.ts (+50 -58)
📝 packages/hoppscotch-backend/src/team-environments/team-environments.service.spec.ts (+74 -119)
📝 packages/hoppscotch-backend/src/team-environments/team-environments.service.ts (+206 -208)
📝 packages/hoppscotch-backend/src/team-environments/team.resolver.ts (+1 -1)

📄 Description

Closes HBE-148

Description

This PR introduces the Team-Environments module into the self-host project completely refactored in the pseudo-FP format.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

None


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3177 **Author:** [@balub](https://github.com/balub) **Created:** 7/7/2023 **Status:** ✅ Merged **Merged:** 7/13/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.4.8` ← **Head:** `refactor/team-environments` --- ### 📝 Commits (10+) - [`a3afbc1`](https://github.com/hoppscotch/hoppscotch/commit/a3afbc1847efd347e0f232bf490a18c16d384b42) refactor: refactored getTeamEnvironment service method to pseudo-FP - [`dbdbe09`](https://github.com/hoppscotch/hoppscotch/commit/dbdbe09884c7e71cdf305a0e918944e9311881ce) refactor: refactored createTeamEnvironment service method to pseudo-FP - [`90d203b`](https://github.com/hoppscotch/hoppscotch/commit/90d203b957e4d4de1ecd9c9de6a7ac0597feec33) refactor: refactored deleteTeamEnvironment service method to pseudo-FP - [`cecd22c`](https://github.com/hoppscotch/hoppscotch/commit/cecd22c57c52c434de6b39cafa2f10fa33b513e0) refactor: refactored updateTeamEnvironment service method to pseudo-FP - [`e7541e8`](https://github.com/hoppscotch/hoppscotch/commit/e7541e837b03b5aa846c76dd69b774cc4043eab0) refactor: refactored deleteAllVariablesFromTeamEnvironment service method to pseudo-FP - [`abbc523`](https://github.com/hoppscotch/hoppscotch/commit/abbc523cd0d48319427fe086b1405c0be7b5eddc) refactor: refactored createDuplicateEnvironment service method to pseudo-FP - [`f50b646`](https://github.com/hoppscotch/hoppscotch/commit/f50b646ae117bc966406ace7cc6785423c0ad329) refactor: refactored fetchAllTeamEnvironments service method to pseudo-FP - [`3fa9dd0`](https://github.com/hoppscotch/hoppscotch/commit/3fa9dd014500c400bcadf413baf970ee3ca6b0b2) chore: added comments to all service methods in team-environments module - [`f9f63b5`](https://github.com/hoppscotch/hoppscotch/commit/f9f63b55998aa9ebdbff142a56bed0b8ebaf093f) refactor: refactored team-environment guard into pseudo-fp - [`ac9d559`](https://github.com/hoppscotch/hoppscotch/commit/ac9d5599b1859f66b588cc53ecd0930dd332e202) chore: modifed mutations in team-environment resolver ### 📊 Changes **7 files changed** (+403 additions, -435 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/errors.ts` (+7 -0) 📝 `packages/hoppscotch-backend/src/team-environments/gql-team-env-team.guard.ts` (+24 -49) ➕ `packages/hoppscotch-backend/src/team-environments/input-type.args.ts` (+41 -0) 📝 `packages/hoppscotch-backend/src/team-environments/team-environments.resolver.ts` (+50 -58) 📝 `packages/hoppscotch-backend/src/team-environments/team-environments.service.spec.ts` (+74 -119) 📝 `packages/hoppscotch-backend/src/team-environments/team-environments.service.ts` (+206 -208) 📝 `packages/hoppscotch-backend/src/team-environments/team.resolver.ts` (+1 -1) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> <!-- Issue # here --> Closes HBE-148 ### Description <!-- Add a brief description of the pull request --> This PR introduces the Team-Environments module into the self-host project completely refactored in the pseudo-FP format. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> None --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:49:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4269
No description provided.