biocompute-objects / biocompute-objects/portal_userdb
Investigate how to automaticaly populate prefix under admin user permission panel
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
**Describe the bug**
Prefixes are showing under https://biocomputeobject.org/api/admin/prefix/prefix/, but some of the newer prefixs don't show up under Users/User Permissions.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'https://biocomputeobject.org/api/admin/prefix/prefix/', check all the available perfixes
2. For example, for prefix "BMK", it shows up in [Prefixs](https://biocomputeobject.org/api/admin/prefix/prefix/)
3. The go to [Users](https://biocomputeobject.org/api/admin/auth/user/), select a random user, but in this case, I am using bco_api_user as an example.
4. Scroll down to User Permissions

5. See error that BMK is does not exist
**Expected behavior**
Should show prefix permission options such as "prefix | prefix | Can add BCOs with prefix BMK", and all other prefix-related permissions

This doesn't only happen to BMK prefix but some other new registered prefixes.
**Desktop (please complete the following information):**
- Browser [fairfox]
**Additional context**
I think this issue could be related to portal_userdb
Contributor guide
Assessment
This issue has not been assessed yet.