795 add peer reviewers to internal mrfs #826
Merged
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 pull request introduces significant changes to the manuscript peer review functionality, including the addition of new models, controllers, policies, and resources. The key updates are the implementation of the
ManuscriptPeerReviewer
model and its associated controller, policies, and resources, as well as updates to factories and seeders to support the new functionality.Key Changes:
New Models and Enums:
ManuscriptPeerReviewer
model to manage peer reviewers for manuscripts. This includes attributes formanuscript_record_id
,author_id
,review_date
,role
, andtype
with appropriate relationships and casts.PeerReviewRole
andPeerReviewType
enums to categorize the roles and types of peer reviews. [1] [2]Controllers and Policies:
ManuscriptPeerReviewerController
to handle CRUD operations for manuscript peer reviewers, including validation and authorization checks.ManuscriptPeerReviewerPolicy
to manage permissions for viewing, updating, and deleting peer reviewers.Resources and Factories:
ManuscriptPeerReviewerResource
to format the peer reviewer data for API responses, including authorization checks for update and delete actions.ManuscriptPeerReviewerFactory
to generate test data for peer reviewers.Database and Seeders:
manuscript_peer_reviewers
table with necessary foreign keys and attributes.ManuscriptRecordFactory
andLocalTestDataSeeder
to include peer reviewers in the generated manuscript records. [1] [2]These changes collectively enhance the manuscript management system by adding robust support for managing peer reviewers, ensuring proper validation, authorization, and data handling throughout the application.
closes #795