-
-
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
feat(API): Included default workspace details in getSelf function #414
feat(API): Included default workspace details in getSelf function #414
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Good work on the PR! Don't worry about the api, we would put that in. |
…f defaultworkspace for the same
@rajdip-b after running API tests, |
This is a strange thing that it's getting created over and over again. I feel yes, you can add them to .gitignore since we are not using them. |
Creating a seperate PR for it |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #414 +/- ##
===========================================
- Coverage 91.71% 87.04% -4.67%
===========================================
Files 111 112 +1
Lines 2510 2501 -9
Branches 469 369 -100
===========================================
- Hits 2302 2177 -125
- Misses 208 324 +116
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## [2.5.0](v2.4.0...v2.5.0) (2024-09-16) ### 🚀 Features * **api-client:** Added workspace controller ([#427](#427)) ([2f4edec](2f4edec)) * **api-client:** Added workspace role controller ([#430](#430)) ([b03ce8e](b03ce8e)) * **api-client:** Synced with latest API ([27f4309](27f4309)) * **api:** Add slug in entities ([#415](#415)) ([89e2fcc](89e2fcc)) * **api:** Included default workspace details in getSelf function ([#414](#414)) ([e67bbd6](e67bbd6)) * **platform:** Add loading skeleton in the [secure]s page ([#423](#423)) ([a97681e](a97681e)) * **schema:** Added a schema package ([01ea232](01ea232)) * **web:** Update about and careers page ([e167f53](e167f53)) ### 🐛 Bug Fixes * **api:** Error messages fixed in api-key service ([#418](#418)) ([edfbce0](edfbce0)) ### 📚 Documentation * Fixed minor typo in postman workspace link ([#411](#411)) ([ed23116](ed23116)) * Updated Postman links ([444bfb1](444bfb1)) ### 🔧 Miscellaneous Chores * **api:** Suppressed version check test in [secure] ([4688e8c](4688e8c)) * **api:** Update slug generation method ([#420](#420)) ([1f864df](1f864df)) ### 🔨 Code Refactoring * **API:** Refactor workspace-membership into a separate module ([#421](#421)) ([574170f](574170f)) * **platform:** added optional chaining due to strict null check ([#413](#413)) ([907e369](907e369))
🎉 This PR is included in version 2.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [2.5.0](keyshade-xyz/keyshade@v2.4.0...v2.5.0) (2024-09-16) ### 🚀 Features * **api-client:** Added workspace controller ([keyshade-xyz#427](keyshade-xyz#427)) ([2f4edec](keyshade-xyz@2f4edec)) * **api-client:** Added workspace role controller ([keyshade-xyz#430](keyshade-xyz#430)) ([b03ce8e](keyshade-xyz@b03ce8e)) * **api-client:** Synced with latest API ([27f4309](keyshade-xyz@27f4309)) * **api:** Add slug in entities ([keyshade-xyz#415](keyshade-xyz#415)) ([89e2fcc](keyshade-xyz@89e2fcc)) * **api:** Included default workspace details in getSelf function ([keyshade-xyz#414](keyshade-xyz#414)) ([e67bbd6](keyshade-xyz@e67bbd6)) * **platform:** Add loading skeleton in the [secure]s page ([keyshade-xyz#423](keyshade-xyz#423)) ([a97681e](keyshade-xyz@a97681e)) * **schema:** Added a schema package ([01ea232](keyshade-xyz@01ea232)) * **web:** Update about and careers page ([e167f53](keyshade-xyz@e167f53)) ### 🐛 Bug Fixes * **api:** Error messages fixed in api-key service ([keyshade-xyz#418](keyshade-xyz#418)) ([edfbce0](keyshade-xyz@edfbce0)) ### 📚 Documentation * Fixed minor typo in postman workspace link ([keyshade-xyz#411](keyshade-xyz#411)) ([ed23116](keyshade-xyz@ed23116)) * Updated Postman links ([444bfb1](keyshade-xyz@444bfb1)) ### 🔧 Miscellaneous Chores * **api:** Suppressed version check test in [secure] ([4688e8c](keyshade-xyz@4688e8c)) * **api:** Update slug generation method ([keyshade-xyz#420](keyshade-xyz#420)) ([1f864df](keyshade-xyz@1f864df)) ### 🔨 Code Refactoring * **API:** Refactor workspace-membership into a separate module ([keyshade-xyz#421](keyshade-xyz#421)) ([574170f](keyshade-xyz@574170f)) * **platform:** added optional chaining due to strict null check ([keyshade-xyz#413](keyshade-xyz#413)) ([907e369](keyshade-xyz@907e369))
User description
Description
Added default workspace details in
getSelf
function for a userFixes #365
Further change
Sample response after updating should be like this
PR Type
enhancement, tests
Description
getSelf
function to include default workspace details for non-admin users.defaultWorkspace
in the user response.Changes walkthrough 📝
user.service.ts
Include default workspace details in getSelf function
apps/api/src/user/service/user.service.ts
getSelf
function to includedefaultWorkspace
in the response.user.e2e.spec.ts
Update tests for getSelf function with workspace details
apps/api/src/user/user.e2e.spec.ts
defaultWorkspace
in user response.