feat: add OGL question to DFO pub MRF #824
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 includes several changes to the
ManuscriptRecord
model and its related components, controllers, and resources. The changes introduce new fields and validation rules, update existing fields, and add new migration files to support these updates. Additionally, there are updates to the front-end components to reflect these changes.Backend Changes:
do_not_apply_ogl
andno_ogl_explanation
to theManuscriptRecord
model and updated the corresponding validation rules and attributes. [1] [2]additional_information
field topublic_interest_information
in theManuscriptRecord
model and updated the relevant methods and resources. (Fb21f90bL31R31, app/Http/Resources/ManuscriptRecordResource.phpL34-R37)ManuscriptRecordController
to useAuth::id()
instead ofauth()->id()
for consistency.manuscript_records
table with the new fields and renamed the existing field.Frontend Changes:
QuestionEditor.vue
to include a newhideEditor
prop and conditionally render the editor based on this prop. [1] [2]ManuscriptRecordFormView.vue
to include the new fields and validation rules, and updated the event names for consistency. [1] [2] [3] [4] [5] [6] [7]Testing: