-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(api)!: Refactor environment, secret and variable functionality #270
refactor(api)!: Refactor environment, secret and variable functionality #270
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
07decce
to
6a86f9a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #270 +/- ##
===========================================
- Coverage 91.71% 88.33% -3.39%
===========================================
Files 111 106 -5
Lines 2510 2271 -239
Branches 469 351 -118
===========================================
- Hits 2302 2006 -296
- Misses 208 265 +57
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
## [2.0.0](v1.4.0...v2.0.0) (2024-06-12) ### ⚠ BREAKING CHANGES * **api:** Refactor environment, [secure] and variable functionality ### 🚀 Features * **platform:** Workspace integrate ([#241](#241)) ([6107e7d](6107e7d)) ### 📚 Documentation * Fix broken links in README.md ([9266788](9266788)) * Modified environment-variable.md ([#256](#256)) ([4974756](4974756)) ### 🔧 Miscellaneous Chores * Added docker build and run commands to` package.json` ([#258](#258)) ([af61791](af61791)) * **api:** Fix inconsistencies in zod schema ([#240](#240)) ([f3a3632](f3a3632)) * **ci:** Update deploy web ([e80d47d](e80d47d)) * **docker:** Grant correct permissions to docker image ([#251](#251)) ([49546aa](49546aa)) * Update GitHub Action plugin versions ([#263](#263)) ([020bbf6](020bbf6)) * Update package versions for release ([93785be](93785be)) ### 🔨 Code Refactoring * **api:** Refactor environment, [secure] and variable functionality ([#270](#270)) ([55a6d37](55a6d37)) * **api:** Replace for loop with array indexing while decrypting [secure]s during bulk fetch [#265](#265) ([#266](#266)) ([62a1731](62a1731)) * **api:** Update return type while fetching [secure]s and variables ([#264](#264)) ([fd36abd](fd36abd))
🎉 This PR is included in version 2.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [2.0.0](v1.4.0...v2.0.0) (2024-06-12) ### ⚠ BREAKING CHANGES * **api:** Refactor environment, [secure] and variable functionality ### 🚀 Features * **platform:** Workspace integrate ([#241](#241)) ([6107e7d](6107e7d)) ### 📚 Documentation * Fix broken links in README.md ([9266788](9266788)) * Modified environment-variable.md ([#256](#256)) ([4974756](4974756)) ### 🔧 Miscellaneous Chores * Added docker build and run commands to` package.json` ([#258](#258)) ([af61791](af61791)) * **api:** Fix inconsistencies in zod schema ([#240](#240)) ([f3a3632](f3a3632)) * **ci:** Update deploy web ([e80d47d](e80d47d)) * **docker:** Grant correct permissions to docker image ([#251](#251)) ([49546aa](49546aa)) * Update GitHub Action plugin versions ([#263](#263)) ([020bbf6](020bbf6)) * Update package versions for release ([93785be](93785be)) ### 🔨 Code Refactoring * **api:** Refactor environment, [secure] and variable functionality ([#270](#270)) ([55a6d37](55a6d37)) * **api:** Replace for loop with array indexing while decrypting [secure]s during bulk fetch [#265](#265) ([#266](#266)) ([62a1731](62a1731)) * **api:** Update return type while fetching [secure]s and variables ([#264](#264)) ([fd36abd](fd36abd))
## [2.0.0](keyshade-xyz/keyshade@v1.4.0...v2.0.0) (2024-06-12) ### ⚠ BREAKING CHANGES * **api:** Refactor environment, [secure] and variable functionality ### 🚀 Features * **platform:** Workspace integrate ([keyshade-xyz#241](keyshade-xyz#241)) ([6107e7d](keyshade-xyz@6107e7d)) ### 📚 Documentation * Fix broken links in README.md ([9266788](keyshade-xyz@9266788)) * Modified environment-variable.md ([keyshade-xyz#256](keyshade-xyz#256)) ([4974756](keyshade-xyz@4974756)) ### 🔧 Miscellaneous Chores * Added docker build and run commands to` package.json` ([keyshade-xyz#258](keyshade-xyz#258)) ([af61791](keyshade-xyz@af61791)) * **api:** Fix inconsistencies in zod schema ([keyshade-xyz#240](keyshade-xyz#240)) ([f3a3632](keyshade-xyz@f3a3632)) * **ci:** Update deploy web ([e80d47d](keyshade-xyz@e80d47d)) * **docker:** Grant correct permissions to docker image ([keyshade-xyz#251](keyshade-xyz#251)) ([49546aa](keyshade-xyz@49546aa)) * Update GitHub Action plugin versions ([keyshade-xyz#263](keyshade-xyz#263)) ([020bbf6](keyshade-xyz@020bbf6)) * Update package versions for release ([93785be](keyshade-xyz@93785be)) ### 🔨 Code Refactoring * **api:** Refactor environment, [secure] and variable functionality ([keyshade-xyz#270](keyshade-xyz#270)) ([55a6d37](keyshade-xyz@55a6d37)) * **api:** Replace for loop with array indexing while decrypting [secure]s during bulk fetch [keyshade-xyz#265](keyshade-xyz#265) ([keyshade-xyz#266](keyshade-xyz#266)) ([62a1731](keyshade-xyz@62a1731)) * **api:** Update return type while fetching [secure]s and variables ([keyshade-xyz#264](keyshade-xyz#264)) ([fd36abd](keyshade-xyz@fd36abd))
User description
Description
This PR introduces a lot of breaking changes. Listing them down below:
PR Type
Enhancement, Tests
Description
Changes walkthrough 📝
secret.service.ts
Refactor secret service to support multiple environments and remove
approval logic.
apps/api/src/secret/service/secret.service.ts
variable.service.ts
Refactor variable service to support multiple environments and remove
approval logic.
apps/api/src/variable/service/variable.service.ts
project.service.ts
Refactor project service to remove approval logic and handle multiple
environments.
apps/api/src/project/service/project.service.ts
default tags.
authority-checker.service.ts
Simplify authority checker service by removing approval-related
checks.
apps/api/src/common/authority-checker.service.ts
secrets.
create.environment.ts
Simplify environment creation DTO by removing unnecessary validation.
apps/api/src/environment/dto/create.environment/create.environment.ts
IsBoolean
import and usage.secret.e2e.spec.ts
Update secret service tests to reflect refactored logic and multiple
environments.
apps/api/src/secret/secret.e2e.spec.ts
variable.e2e.spec.ts
Update variable service tests to reflect refactored logic and multiple
environments.
apps/api/src/variable/variable.e2e.spec.ts