Feature/request details tabs backend#61
Open
ka8540 wants to merge 15 commits into
Open
Conversation
…d code for Lambda compatibility, and added environment variable configuration
Created Help Category API
…-only auth, modify endpoint; schema + i18n; tests and legacy test fixes
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.
This PR adds backend support for the Request Details page tabs by introducing Notes and Helping Volunteers features alongside the existing request retrieval. It adds REST endpoints under /api/v1.0.0/requests/{requesterId}/{requestId} to list and create notes (/notes GET/POST) and to manage helping volunteers (/helpers GET, POST, PUT, DELETE), enforcing lead-only authorization for helper modifications via the X-Actor-UserId header matched against request.leadVolunteerUserId. The data model is extended with request_notes and request_volunteers tables and Request now maps leadVolunteerUserId to the database; corresponding entities, repositories, and services are implemented. i18n messages are included, basic Swagger summaries are added, and controller/service tests cover the new flows (with minor adjustments to brittle legacy assertions). Changes are additive and applied via schema.sql for local/dev; frontend UI and broader role policies are out of scope.