keyshade
keyshade copied to clipboard
feat(api): Implement global search feature in workspace
User description
Description
feat: Implement global search functionality
- Added globalSearch method in WorkspaceService to search projects, environments, secrets, and variables by partial name or description.
- Updated ProjectService's getProjectsOfWorkspace method to filter projects based on search term and user access, excluding sensitive fields.
- Implemented getEnvironmentsOfWorkspace, getSecretsOfWorkspace, and getVariablesOfWorkspace methods in respective services.
- Added excludeFields utility function to remove specified fields from objects.
Fixes #309
PR Type
Enhancement
Description
- Implemented global search functionality across projects, environments, secrets, and variables within a workspace.
- Added
getEnvironmentsOfWorkspace
method inEnvironmentService
to search environments by name or description. - Enhanced
getProjectsOfWorkspace
method inProjectService
to include search functionality and removed pagination and sorting. - Added
getSecretsOfWorkspace
method inSecretService
to search secrets by name or note. - Added
getVariablesOfWorkspace
method inVariableService
to search variables by name or note. - Added
globalSearch
endpoint inWorkspaceController
to search across multiple entities. - Implemented
globalSearch
method inWorkspaceService
to aggregate search results.
Changes walkthrough 📝
Relevant files | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Enhancement |
|
💡 PR-Agent usage: Comment
/help
on the PR to get a list of all available PR-Agent tools and their descriptions