-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkp/pkp-lib#4787 Reviewer suggestions #10497
base: main
Are you sure you want to change the base?
Conversation
177b71d
to
304c66c
Compare
c2c4775
to
5d155f9
Compare
|
||
return AuthorizationPolicy::AUTHORIZATION_DENY; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how right now we usually setting different restriction but probably a middleware is better and cleaner approach that we should start using ?
public function messages(): array | ||
{ | ||
return [ | ||
'familyName.required' => 'family name is required', | ||
]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are placeholder for now as part of experiment but this is what needed to be resolved as dynamic multilingual response for error .
0276910
to
73c1147
Compare
<?php | ||
|
||
/** | ||
* @file classes/migration/upgrade/v3_5_0/I4787_ReviewSuggestions.php | ||
* | ||
* Copyright (c) 2014-2024 Simon Fraser University | ||
* Copyright (c) 2000-2024 John Willinsky | ||
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. | ||
* | ||
* @class I4787_ReviewSuggestions | ||
* | ||
* @brief Add reviewer suggestion related tables | ||
*/ | ||
|
||
namespace PKP\migration\upgrade\v3_5_0; | ||
|
||
use Illuminate\Support\Collection; | ||
use PKP\migration\install\ReviewerSuggestionsMigration; | ||
use PKP\migration\upgrade\v3_4_0\I7191_InstallSubmissionHelpDefaults; | ||
|
||
abstract class I4787_ReviewSuggestions extends I7191_InstallSubmissionHelpDefaults | ||
{ | ||
/** | ||
* Run the migration. | ||
*/ | ||
public function up(): void | ||
{ | ||
(new ReviewerSuggestionsMigration($this->_installer, $this->_attributes))->up(); | ||
parent::up(); | ||
} | ||
|
||
/** | ||
* Reverse the migration | ||
*/ | ||
public function down(): void | ||
{ | ||
(new ReviewerSuggestionsMigration($this->_installer, $this->_attributes))->down(); | ||
parent::down(); | ||
} | ||
|
||
/** | ||
* @return Collection [settingName => localeKey] | ||
*/ | ||
protected function getNewSettings(): Collection | ||
{ | ||
return collect([ | ||
'reviewerSuggestionsHelp' => 'default.submission.step.reviewerSuggestions', | ||
]); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go to a v3_6_0
folder .
fed1e68
to
6c9d25b
Compare
for #4787