-
Notifications
You must be signed in to change notification settings - Fork 451
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
Additional fields in Submission schema in API for 3.5 #10480
Comments
PRs |
@jardakotesovec Can you take a look at the data added to the Schema? Do we need anything else there? |
In short, changes in the schema affect 3 submission-related endpoints, to related to submissions list {
"stages": [
{
"id": 1,
"label": "Submission",
"isActiveStage": true,
"editorAssigned": true,
"isDecidingEditorAssigned": true,
"isCurrentUserDecidingEditor": true,
"currentUserAssignedRoles": [
16
]
},
{
"id": 3,
"label": "Review",
"isActiveStage": false,
"editorAssigned": true,
"isDecidingEditorAssigned": true,
"isCurrentUserDecidingEditor": true,
"currentUserAssignedRoles": [
16
]
},
{
"id": 4,
"label": "Copyediting",
"isActiveStage": false,
"editorAssigned": true,
"isDecidingEditorAssigned": true,
"isCurrentUserDecidingEditor": true,
"currentUserAssignedRoles": [
16
]
},
{
"id": 5,
"label": "Production",
"isActiveStage": false,
"editorAssigned": true,
"isDecidingEditorAssigned": true,
"isCurrentUserDecidingEditor": true,
"currentUserAssignedRoles": [
16
]
}
]
} The trickiest part is with |
…ectly under submission
On the meeting we agreed to include following fields to the submission schema. These are computed fields from stage assignments.
We agreed that keeping business logic on server side is better to not spread business logic too much between server side and client side. All these fields also are very business specific information, not really UI specific. Client side makes its own decision how to present things based on these flags.
Opened to different names, but these should be quite self-explanatory.
Submission listing /_submissions
Workflow side modal /submissions/{submissionId}
Description for each field
isCurrentUserRecommendOnly (per stage)
isCurrentUserDecidingEditor
isDecidingEditorAssigned
canCurrentUserChangeMetadata (not per stage)
currentUserAccessRoles (per stage)
currentUserRecommendation - if I am recommend only editor (only in review stages)
recommendations - if I am deciding editor (only in review stages)
The text was updated successfully, but these errors were encountered: