Migrate projects endpoints to nexus service#80
Merged
jeroenrinzema merged 1 commit intomainfrom Dec 1, 2025
Merged
Conversation
There was a problem hiding this comment.
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 |
… initial RBAC implementation
5496abd to
3dfdc74
Compare
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.
closes #71