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

Submissions schema filters out declined&cancelled review assignments #10076

Closed
jardakotesovec opened this issue Jun 18, 2024 · 12 comments
Closed
Assignees
Labels
Enhancement:1:Minor A new feature or improvement that can be implemented in less than 3 days.
Milestone

Comments

@jardakotesovec
Copy link
Contributor

Describe the issue
On new submission listing we would like to indicate for editors also review assignments that has been declined or cancelled. Currently Submissions Schema filters them out - https://github.com/pkp/pkp-lib/blob/main/classes/submission/maps/Schema.php#L422

The new submission listing is using the api/_submissions endpoint .

What application are you using?
OJS, OMP or OPS version 3.5

@jardakotesovec jardakotesovec added the Enhancement:1:Minor A new feature or improvement that can be implemented in less than 3 days. label Jun 18, 2024
@jardakotesovec jardakotesovec added this to the 3.5.0 LTS milestone Jun 18, 2024
@Vitaliy-1
Copy link
Collaborator

Editors, Authors and Reviewers have access to the new dashboard. It might have sense to separate mapping of the submissions for editors from other roles, as it includes more data, for which authors and reviewers shouldn't have access to. Declined and cancelled reviews are such an example.

My proposal is to create a separate mapping for editor's list, e.g. Schema::mapToEditorsList()

@ewhanson
Copy link
Collaborator

I'm wondering if rather than a separate mapping, it would be possible to do this via some sort of permissions, e.g. an editor would have the extra review assignments included because they have permission to access them. That way we won't be maintaining multiple mappings that re similar but not exactly the same. I'll do some thinking on what that could look like and if that makes sense with the existing model we have in place.

@Vitaliy-1
Copy link
Collaborator

Vitaliy-1 commented Aug 26, 2024

it would be possible to do this via some sort of permissions

I'm currently working on adopting laravel permissions library but that's a long road

@Vitaliy-1
Copy link
Collaborator

@Hafsa-Naeem, I believe that the best approach here would be to create a separate submission mapping for authors (or editors). It could be together with a new endpoint or using the same endpoint (_submissions/assigned) with different output depending on a role and/or additional query. I'd say that a new endpoint sounds better, @jardakotesovec, what do you think? Is it inline with your idea regarding distinguishing between author's and editor's dashboard?

@jardakotesovec
Copy link
Contributor Author

jardakotesovec commented Oct 11, 2024

@Vitaliy-1 I don't know whats better fit how to achieve it with current architecture. But just from API point of view if there is field or information that certain role should not have access to - my suggestion would be - just don't include it. For example in graphql where you could ask for lots of different data - common practice there would be to return null if you don't have permissions to access something.

@Vitaliy-1
Copy link
Collaborator

In the submission schema we have the method that defines mapping mapManyToSubmissionsList() and mapToSubmissionsList(). The latter has the line

return $this->mapByProperties($this->getSubmissionsListProps(), $item, $anonymizeReviews);

On the top of my head, we can do the separate mapping for authors: mapManyToSubmissionsAuthorList() and mapToSubmissionsAuthorList(). The latter will include simplified version of submission list properties. Or bypass this step and pass additional argument, the same approach as for anonymisation of reviews. The data should exclude:

In contrast, the schema and endpoint for editors should include info regarding declined and cancelled review assignments

@Hafsa-Naeem
Copy link
Contributor

@Vitaliy-1 Ready for review
pkp/pkp-lib: Show declined/cancelled reviews to editors #10847

Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Jan 27, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Jan 27, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Jan 27, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 20, 2025
@Hafsa-Naeem
Copy link
Contributor

@Vitaliy-1
Copy link
Collaborator

Thanks, added a review

Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
…ilter roles only from relevant (review) stages
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 20, 2025
…ilter roles only from relevant (review) stages
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 20, 2025
@Hafsa-Naeem
Copy link
Contributor

Hafsa-Naeem commented Feb 20, 2025

@Vitaliy-1
Copy link
Collaborator

Thanks! I left a comment for a change to ensure that we are a given full information to a user about reviews in a stage, to which the person is assigned to. This might be relevant for OMP.

Hafsa-Naeem added a commit that referenced this issue Feb 21, 2025
…er roles only from relevant (review) stages
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 21, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 21, 2025
Hafsa-Naeem added a commit that referenced this issue Feb 24, 2025
…er roles only from relevant (review) stages
Hafsa-Naeem added a commit that referenced this issue Feb 24, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/pkp-lib that referenced this issue Feb 24, 2025
Hafsa-Naeem added a commit to Hafsa-Naeem/ojs that referenced this issue Feb 24, 2025
Vitaliy-1 added a commit that referenced this issue Feb 24, 2025
…review_assignments

#10076 show declined/cancelled reviews to editors
Vitaliy-1 added a commit to pkp/ojs that referenced this issue Feb 24, 2025
…eview_assignments

pkp/pkp-lib#10076 Show declined/cancelled reviews to editors & update submodule reference
Vitaliy-1 added a commit to pkp/omp that referenced this issue Feb 24, 2025
…eview_assignments

pkp/pkp-lib#10076 Added getReviewStages method to Application class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement:1:Minor A new feature or improvement that can be implemented in less than 3 days.
Projects
None yet
Development

No branches or pull requests

4 participants