implement search functionality for projects with subprojects and assets#1920
Merged
Conversation
Signed-off-by: rafi <refaei.shikho@hotmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an organization-level project search endpoint intended to return matching projects together with nested subprojects/assets, extending the existing project listing/search capabilities.
Changes:
- Added a new
/organizations/:organization/projects/search/route and controller/service plumbing. - Added repository logic to search matching assets/projects via recursive CTEs and reshape results into nested
ProjectDTOs. - Extended
ProjectDTO/ProjectAssetDTOwith nestedSubGroupsAndAssetsfields for tree responses.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/common_interfaces.go | Added new repository/service interface methods for project search. |
| services/project_service.go | Added service method that resolves RBAC-scoped project/asset IDs and forwards search params. |
| router/org_router.go | Registered the new organization-level search endpoint. |
| dtos/project_dto.go | Added nested tree fields to project and project-asset DTOs. |
| database/repositories/project_repository.go | Implemented recursive SQL search and flat-to-tree DTO transformation. |
| controllers/project_controller.go | Added controller handler returning the new paged search response. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: rafi <refaei.shikho@hotmail.com>
timbastin
approved these changes
May 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.