Skip to content

Assignee property

Tamlyn Rhodes requested to merge assignees into master

Replace reviewers property of ManuscriptVersion with more general assignee property.

This still uses Teams under the hood but allows querying for any team type, e.g. seniorEditors, reviewingEditors...

It also allows the client to build up an object as they see fit:

query {
   manuscript(id: 123) {
     ...
     seniorEditors: assignees(teamType: "seniorEditors")
     reviewingEditors: assignees(teamType: "reviewingEditors")
     reviewers: assignees(teamType: "reviewers")
   }
}

This is maybe too far into GraphQL implementation rather than data modelling. But the reviewers property doesn't make much sense otherwise because of its weird type signature and the fact it doesn't allow selecting editors and other roles.

Merge request reports