Grant applied to book via Collection apply to all book toggle not written in JSON file
cc @douglassue
Expected behaviour
Any grant applied to a book, regardless of supported methods, should be written in the JSON file according to specifications and packaged for book ingest to PMC.
Current behaviour
A grant applied to a book via Collection apply to all book toggle is not written into the JSON file packaged for book ingest to PMC.
Steps to reproduce
- added grant to collection (HHSN263201800029I) - toggled on to apply to each whole book (https://ncbi.cloud68.co/organizations/dbdf7c10-9f78-44dd-bef2-31c85cf9b8e0/collectionmanager/a636fd52-d1c0-4b25-a74f-149bd2f97be7/)
- created new book belonging to that collection (https://ncbi.cloud68.co/organizations/dbdf7c10-9f78-44dd-bef2-31c85cf9b8e0/bookmanager/5359f50c-7d7a-4a6a-b05b-95bb873a1a0e/0639a09f-ffd7-47e7-8c9f-dc41764d70c2)
- checked the book level metadata UI and could see the grant was populated from the collection
- Uploaded files and submitted book for conversion
- Checked the JSON file sent to PMC ingest
- No grant information is present in json file when using grant HHSN263201800029I
{
"package_id": "d67ad4",
"user_name": "coko",
"package": "bcms3267.d67ad4.2022_01_21-07_59_18.zip",
"domain": "bcms3267",
"recipients": {
"failure": [
"jkopanas@gmail.com",
"ncbi@dionementis.com"
],
"success": [
"jkopanas@gmail.com",
"ncbi@dionementis.com"
]
},
"release": false,
"target_database": "prod",
"thumb": null,
"main_xml": "26438_mod.bxml",
"grants": [],
"notification_recipients": {
"failure": [
"jkopanas@gmail.com",
"ncbi@dionementis.com"
],
"success": [
"jkopanas@gmail.com",
"ncbi@dionementis.com"
]
}
}
- For an existing book that was in a collection with the grant added and toggled on to apply to all whole books in the collection (https://ncbi.cloud68.co/organizations/dbdf7c10-9f78-44dd-bef2-31c85cf9b8e0/bookmanager/30edb91e-fada-48c5-a7cd-8d761be801bd/98722874-7267-48b0-85ca-054e749da2c5)
- check the grant was present in the book level metadata UI - (HHSN263201800029I)
- Clicked reload preview
- Checked the JSON file sent to PMC ingest
- No grant present in json file
Priority
Y, for deployment