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:
Added new fields do_not_apply_ogl and no_ogl_explanation to the ManuscriptRecord model and updated the corresponding validation rules and attributes. [1][2]
Renamed the additional_information field to public_interest_information in the ManuscriptRecord model and updated the relevant methods and resources. (Fb21f90bL31R31, app/Http/Resources/ManuscriptRecordResource.phpL34-R37)
Updated the ManuscriptRecordController to use Auth::id() instead of auth()->id() for consistency.
Added a new migration file to update the manuscript_records table with the new fields and renamed the existing field.
Frontend Changes:
Updated QuestionEditor.vue to include a new hideEditor prop and conditionally render the editor based on this prop. [1][2]
Modified ManuscriptRecordFormView.vue to include the new fields and validation rules, and updated the event names for consistency. [1][2][3][4][5][6][7]
Added new localization strings for the new fields and updated existing ones in both English and French localization files. [1][2]
Testing:
Added a new test to ensure that a user cannot submit their manuscript for review without providing an explanation if they do not want to apply for an OGL.
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: