Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces new endpoints for retrieving schema information for users and events in the Lunogram platform. It adds two new GET endpoints that return structured schema data, enabling the frontend to understand the available data fields and their types for both user profiles and event tracking.
Key changes:
- Added
ListUserSchemasendpoint to retrieve all user data schema paths - Added
ListEventsendpoint to retrieve events with their associated schema paths - Implemented store layer methods to fetch schema data from the database
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| services/nexus/internal/store/users.go | Added UserSchema struct and ListUserSchemas method to query user schema paths |
| services/nexus/internal/store/events.go | Added Event struct and ListEvents method to query events with aggregated schema paths |
| services/nexus/internal/http/controllers/v1/management/users.go | Implemented ListUserSchemas controller handler with authentication and response mapping |
| services/nexus/internal/http/controllers/v1/management/events.go | Created new EventsController with ListEvents handler for events schema retrieval |
| services/nexus/internal/http/controllers/v1/management/users_test.go | Added comprehensive tests for ListUserSchemas endpoint covering success, empty, and unauthorized cases |
| services/nexus/internal/http/controllers/v1/management/events_test.go | Added comprehensive tests for ListEvents endpoint covering success, empty, and unauthorized cases |
| services/nexus/internal/http/controllers/v1/management/controller.go | Integrated EventsController into main controller struct |
| services/nexus/internal/http/controllers/v1/management/oapi/resources.yml | Defined OpenAPI specifications for both new endpoints with schemas |
| services/nexus/internal/http/controllers/v1/management/oapi/resources_gen.go | Generated Go code from OpenAPI spec including types, client methods, and server interfaces |
a7881a7 to
8313692
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.
Include new endpoints for the users and events schemas.