Skip to content

Migrate projects endpoints to nexus service#80

Merged
jeroenrinzema merged 1 commit intomainfrom
refactor/projects
Dec 1, 2025
Merged

Migrate projects endpoints to nexus service#80
jeroenrinzema merged 1 commit intomainfrom
refactor/projects

Conversation

@jeroenrinzema
Copy link
Copy Markdown
Contributor

@jeroenrinzema jeroenrinzema commented Nov 30, 2025

closes #71

@jeroenrinzema jeroenrinzema changed the base branch from main to refactor/users November 30, 2025 20:24
Copy link
Copy Markdown

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

This PR migrates project management endpoints from the legacy platform service to the nexus service, establishing projects as a first-class resource in the new API architecture.

Key changes:

  • Adds project CRUD endpoints (list, create, get, update) to the admin API
  • Implements project-admin relationship management and access control
  • Enhances authentication to load admin context from database for authorization

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
services/nexus/oapi/resources.yml Defines OpenAPI schemas and endpoints for project operations
services/nexus/oapi/resources_gen.go Generated client and server code from OpenAPI specification
services/nexus/internal/store/projects.go Implements project store methods with RBAC filtering and OAPI conversion
services/nexus/internal/store/providers.go Adds helper method to check if project has providers
services/nexus/internal/http/controllers/v1/projects.go Implements project CRUD handlers with authorization checks
services/nexus/internal/http/controllers/v1/projects_test.go Comprehensive integration tests for project endpoints
services/nexus/internal/http/controllers/v1/controller.go Registers projects controller in main controller
services/nexus/internal/http/http.go Passes store to auth middleware for admin loading
services/nexus/internal/http/auth.go Enhances auth to load admin from database and add to context
pkg/claim/rbac/admin.go New package for RBAC admin context management

Comment thread services/nexus/internal/store/projects.go
Comment thread services/nexus/internal/store/projects.go
Comment thread services/nexus/internal/http/controllers/v1/projects.go
@jeroenrinzema jeroenrinzema linked an issue Nov 30, 2025 that may be closed by this pull request
Base automatically changed from refactor/users to main December 1, 2025 09:50
@jeroenrinzema jeroenrinzema merged commit 735fa0e into main Dec 1, 2025
3 checks passed
@jeroenrinzema jeroenrinzema deleted the refactor/projects branch December 1, 2025 10:37
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.

Migrate the projects endpoints to Nexus

2 participants