Step 1 of book creation: Collection dropdown also shows the list groups
Expected behavior
On the first step of book creation we have the option to add the book to a collection. In the dropdown we should be able to see all the collection from the organization we are in + all the collections from the organizations which are of type funder.
This same behavior is also applied on the book Settings, if we want to change or add the book latter at the collection.
Current behavior
On step one of book creation in the collection drop-down we have listed:
- all the collection from the Org where we are creating the book
- all the collections from Orgs of type Funder or Publisher Funder + the groups inside of collection if they are.
We should not be able to see the groups.
Note that if you go to settings modal (for chapter processed) or Settings modal (for wholebooks), the list of collections in dropdown is correct.
Steps to reproduce
[Provide a link to a live example or screenshots, and the steps to reproduce this bug]
- Create a Publisher type of org: Org 1
- Add a collection A which has custom groups Aa
- Create a Publisher Funder (or Funder) type of org: Org 2
- Add a collection B which has custom groups Bb
- GO to the Org 1, and open new book modal.
- In the collection dropdown list you will see: Collection A, COllection B and Group Bb. (The group should not appear there)
Example collection with groups: here
Go to another org,open new book modal, and search for those group names.
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
[Not required. Suggest a fix for the bug]
NCBI's priority feedback
[Select "Y" or "N" and provide an explanation]
- This bug is blocking NCBI's work on migration planning for deployment 1 (Y/N)
- This can be prioritised after deployment 1 (Y/N)
QA Steps
- Go to a Funder type of org
- Go to a collection which support custom groups or create a new collection
- Create a custom group in that collection (Or use this already created collection here
- Go to another Org of type publisher
- Open the new book modal
- On the collection dropdown search for the name of the custom group created at point (3). You should not be able to see it.