-
Notifications
You must be signed in to change notification settings - Fork 444
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 data for submissions/{ID}/participants API #10280
Comments
@Vitaliy-1 Hi Vitaliy, can I ask you just sanity check that what I described in the issue is accurate? @ewhanson Hi Erik, any guidance how to add this additional context to the existing endpoint? In terms of the naming/structure. After these feedbacks, this I think could be labeled as "Try me" as it should be relatively friendly issue to work on. |
I can pick this up once @Vitaliy-1 and @ewhanson provide their feedback |
Just did small update to also include stageAssignmentId |
@jardakotesovec, would this be a good candidate for the |
@ewhanson In this case I would suggest that it should include both user (participant) and stage assignment data by default as these are somewhat essential to get full picture what kind of participant it is (stageAssignmentGroupId) and also stageAssignmentId is also essential for example to remove that participant. |
Thanks @jardakotesovec. That make sense. I think the best approach without breaking changes would be to include this information in the summary data that's generated as a result of pkp-lib/classes/user/maps/Schema.php Lines 49 to 57 in d95ecb1
mapProperties() here: pkp-lib/classes/user/maps/Schema.php Lines 98 to 103 in d95ecb1
That should be enough to include it when calling the participants endpoint. This approach would additionally include the new information in a few different places (anywhere reviewer data is fetched). So the Does that fit with the needs you have? |
@ewhanson I will look more detail tomorrow. But surprised that this would be handled via summarizeReviewer. I am interested in participants (editors, author,...), not reviewers for this endpoint. |
@jardakotesovec
|
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
Ready for review @ewhanson PRs
|
Thanks @taslangraham! Looks good, just a few small comments in the PR. |
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
…missions/{id}/participants endpoint
@ewhanson thanks for the review. I've responded to your comments and made a few minor cleanup |
@taslangraham Hi Taslan, Thank you! |
@jardakotesovec Sure thing, I'll update shortly |
…missions/{id}/participants endpoint
@jardakotesovec I've updated the pkp-lib pr to include the additional fields. Changes can be viewed here |
Thanks @taslangraham and @jardakotesovec. I'll have a final look at it now. |
@taslangraham, looks good to me! The app submodule commits need to be updated again, but feel free to merge once that's done. |
…missions/{id}/participants endpoint
All merged @ewhanson @jardakotesovec |
Describe the issue
I would like to use the /submissions/{id}/participants API to replace the "Participants" grid with vue.js component. This issues describe the data requirements to be able to do it.
Behaviour of legacy participant grid
This is the grid we know from workflow page.
My understanding how the list of participants for legacy grid gets created
stage_assignments
table. That gives it list of User groups to present in the UI (StageParticipantGridHandler.php -> loadData)stage_assignments
table (StageParticipantGridHandler.php -> loadCategoryData)Missing context in the /participants API
What I am missing to mimic this behaviour is getting the stage assignment user group - ideally not just id, but either whole object or at least the name to be able to present it in the UI.
In current endpoint I get list of participating users, along with the user groups that user is currently in. Which I can use to check the "Role ended" scenario. But I don't know via which user group the user was assigned to in
stage_assignments
table.Also
stageAssignmentId
is needed for some operations.Additionally it might be good to include the context about the
stageId
, which also comes fromstage_assignments
table. I might not use it at this point, as I can filter bystageId
using query param. But its also important participant context that might be useful at some point.Without breaking changes it could be added like this for example:
What application are you using?
OJS, OMP or OPS version 3.5
The text was updated successfully, but these errors were encountered: