Skip to content

implement search functionality for projects with subprojects and assets#1920

Merged
timbastin merged 2 commits into
mainfrom
add-deep-search-feature
May 10, 2026
Merged

implement search functionality for projects with subprojects and assets#1920
timbastin merged 2 commits into
mainfrom
add-deep-search-feature

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented May 4, 2026

No description provided.

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/ProjectAssetDTO with nested SubGroupsAndAssets fields 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.

Comment thread shared/common_interfaces.go
Comment thread shared/common_interfaces.go
Comment thread database/repositories/project_repository.go Outdated
Comment thread database/repositories/project_repository.go
Comment thread database/repositories/project_repository.go
Comment thread database/repositories/project_repository.go
Signed-off-by: rafi <refaei.shikho@hotmail.com>
@refoo0 refoo0 marked this pull request as ready for review May 5, 2026 09:27
@timbastin timbastin merged commit 7e662f2 into main May 10, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants