biocompute-objects / biocompute-objects/portal_userdb

Investigate how to automaticaly populate prefix under admin user permission panel

Open
#504 3 comments 0 reactions 1 assignee Claimed by @tiwa1154 View on GitHub
bug
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
![Image](https://github.com/user-attachments/assets/7126024e-4c27-4ab8-98d2-8a2ce3671982)
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

![Image](https://github.com/user-attachments/assets/dfb5bdf3-7f4b-4bcd-8695-887a84ba0c4f)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.