Skip to content
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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

touhidurabir
Copy link
Member

for #4787


return AuthorizationPolicy::AUTHORIZATION_DENY;
}
}
Copy link
Member Author

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 ?

Comment on lines 68 to 73
public function messages(): array
{
return [
'familyName.required' => 'family name is required',
];
}
Copy link
Member Author

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 .

@touhidurabir touhidurabir force-pushed the i4787_main branch 3 times, most recently from 0276910 to 73c1147 Compare November 1, 2024 11:12
Comment on lines 1 to 50
<?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',
]);
}
}
Copy link
Member Author

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant