[PR #2512] [MERGED] feat: team environments #3861

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2512
Author: @nivedin
Created: 7/14/2022
Status: Merged
Merged: 10/7/2022
Merged by: @AndrewBastin

Base: mainHead: feat/team-environment


📝 Commits (10+)

  • ae005b8 feat: added team-environment graphQl mutations
  • ce0ef53 feat: added team-environment graphQl queries
  • fa51ee4 feat: added team-environment graphQl subscriptions
  • 7d417e4 feat: added team-environment adapter
  • 93beda1 feat: added new myEnvironment and teamEnvironment UI
  • b4e31b8 fix: reset active environment tab when logout
  • 13e86a3 fix: remove console statement
  • 1430978 feat: store team environments in the store
  • 6d2ebc2 refactor: update env query to fetch teamID
  • 3d2621c refactor: update environment store to load current team env

📊 Changes

28 files changed (+1883 additions, -224 deletions)

View changed files

📝 packages/hoppscotch-app/assets/scss/styles.scss (+9 -0)
📝 packages/hoppscotch-app/locales/en.json (+7 -0)
📝 packages/hoppscotch-app/src/components.d.ts (+7 -3)
packages/hoppscotch-app/src/components/environments/ChooseType.vue (+149 -0)
📝 packages/hoppscotch-app/src/components/environments/ImportExport.vue (+97 -10)
📝 packages/hoppscotch-app/src/components/environments/index.vue (+248 -121)
📝 packages/hoppscotch-app/src/components/environments/my/Details.vue (+17 -25)
📝 packages/hoppscotch-app/src/components/environments/my/Environment.vue (+15 -11)
packages/hoppscotch-app/src/components/environments/my/index.vue (+121 -0)
packages/hoppscotch-app/src/components/environments/teams/Details.vue (+340 -0)
packages/hoppscotch-app/src/components/environments/teams/Environment.vue (+176 -0)
packages/hoppscotch-app/src/components/environments/teams/index.vue (+177 -0)
📝 packages/hoppscotch-app/src/components/http/TestResult.vue (+9 -7)
📝 packages/hoppscotch-app/src/helpers/RequestRunner.ts (+25 -6)
packages/hoppscotch-app/src/helpers/backend/gql/mutations/CreateDuplicateEnvironment.graphql (+8 -0)
packages/hoppscotch-app/src/helpers/backend/gql/mutations/CreateTeamEnvironment.graphql (+7 -0)
packages/hoppscotch-app/src/helpers/backend/gql/mutations/DeleteTeamEnvironment.graphql (+3 -0)
packages/hoppscotch-app/src/helpers/backend/gql/mutations/UpdateTeamEnvironment.graphql (+7 -0)
packages/hoppscotch-app/src/helpers/backend/gql/queries/GetTeamEnvironments.graphql (+10 -0)
packages/hoppscotch-app/src/helpers/backend/gql/subscriptions/TeamEnvironmentCreated.graphql (+8 -0)

...and 8 more files

📄 Description

Closes hoppscotch/internal-issues#2 #2429

Description

This PR introduces a feature that allows users to create team environments. The environment UI is divided into two 'My Environments' and 'Team Environments' same as the collections UI. Users can select the team that they are part of and create, delete, and update the environment variables.

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

TODO

  • Update the store environments when the team is selected
  • Differentiate the 'team environment' and 'my environment' variable tooltip UI when selected.

🔄 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/2512 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 7/14/2022 **Status:** ✅ Merged **Merged:** 10/7/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `feat/team-environment` --- ### 📝 Commits (10+) - [`ae005b8`](https://github.com/hoppscotch/hoppscotch/commit/ae005b83f89ffed493194220645b717ca4f30682) feat: added team-environment graphQl mutations - [`ce0ef53`](https://github.com/hoppscotch/hoppscotch/commit/ce0ef536533f9ee2c032fae448e1d9546db9e0b8) feat: added team-environment graphQl queries - [`fa51ee4`](https://github.com/hoppscotch/hoppscotch/commit/fa51ee45df52a4aef9656756e03da3a3b0b640da) feat: added team-environment graphQl subscriptions - [`7d417e4`](https://github.com/hoppscotch/hoppscotch/commit/7d417e40860c5ec3247e2a01f91159ea7fcaa5c5) feat: added team-environment adapter - [`93beda1`](https://github.com/hoppscotch/hoppscotch/commit/93beda18e2093d716bfc0991014b3717c9b65cb6) feat: added new myEnvironment and teamEnvironment UI - [`b4e31b8`](https://github.com/hoppscotch/hoppscotch/commit/b4e31b8ac38574ae00f9aa1912bfe1b1220e7766) fix: reset active environment tab when logout - [`13e86a3`](https://github.com/hoppscotch/hoppscotch/commit/13e86a3787233b6168482f8d168535315a57cd99) fix: remove console statement - [`1430978`](https://github.com/hoppscotch/hoppscotch/commit/14309787472e149b5192fde7bed29f9891f4ed9b) feat: store team environments in the store - [`6d2ebc2`](https://github.com/hoppscotch/hoppscotch/commit/6d2ebc2919181c67fcb5896a9aeea32bf09c2320) refactor: update env query to fetch teamID - [`3d2621c`](https://github.com/hoppscotch/hoppscotch/commit/3d2621c33eff62f5c066d1c24ab6852ed4486212) refactor: update environment store to load current team env ### 📊 Changes **28 files changed** (+1883 additions, -224 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/assets/scss/styles.scss` (+9 -0) 📝 `packages/hoppscotch-app/locales/en.json` (+7 -0) 📝 `packages/hoppscotch-app/src/components.d.ts` (+7 -3) ➕ `packages/hoppscotch-app/src/components/environments/ChooseType.vue` (+149 -0) 📝 `packages/hoppscotch-app/src/components/environments/ImportExport.vue` (+97 -10) 📝 `packages/hoppscotch-app/src/components/environments/index.vue` (+248 -121) 📝 `packages/hoppscotch-app/src/components/environments/my/Details.vue` (+17 -25) 📝 `packages/hoppscotch-app/src/components/environments/my/Environment.vue` (+15 -11) ➕ `packages/hoppscotch-app/src/components/environments/my/index.vue` (+121 -0) ➕ `packages/hoppscotch-app/src/components/environments/teams/Details.vue` (+340 -0) ➕ `packages/hoppscotch-app/src/components/environments/teams/Environment.vue` (+176 -0) ➕ `packages/hoppscotch-app/src/components/environments/teams/index.vue` (+177 -0) 📝 `packages/hoppscotch-app/src/components/http/TestResult.vue` (+9 -7) 📝 `packages/hoppscotch-app/src/helpers/RequestRunner.ts` (+25 -6) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/mutations/CreateDuplicateEnvironment.graphql` (+8 -0) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/mutations/CreateTeamEnvironment.graphql` (+7 -0) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/mutations/DeleteTeamEnvironment.graphql` (+3 -0) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/mutations/UpdateTeamEnvironment.graphql` (+7 -0) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/queries/GetTeamEnvironments.graphql` (+10 -0) ➕ `packages/hoppscotch-app/src/helpers/backend/gql/subscriptions/TeamEnvironmentCreated.graphql` (+8 -0) _...and 8 more files_ </details> ### 📄 Description Closes hoppscotch/internal-issues#2 #2429 ### Description This PR introduces a feature that allows users to create team environments. The environment UI is divided into two 'My Environments' and 'Team Environments' same as the collections UI. Users can select the team that they are part of and create, delete, and update the environment variables. ### Checks - [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 TODO - [x] Update the store environments when the team is selected - [x] Differentiate the 'team environment' and 'my environment' variable tooltip UI when selected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:26:35 +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#3861
No description provided.