Role displaying "no results" in admin panel
I found a github issue for this from 2017, as well as a devdojo question about this from 2019 (both linked below), and it seems that this issue is still persisting. I cloned the Wave repo for this install maybe a year ago so I am not sure if this has been fixed since then, but if not, does anyone know if a fix has been found?
The links mentioned describe specific scenarios that users see this issue, but for me it's 100% of users no matter if I create them or if they are created through the sign up page, I've never been able to see any user's role here.
Not a super huge deal but it would be a nice thing to fix so I can sort users by role.
thank you!
https://devdojo.com/question/roles-not-saving-when-creating-new-user
Hey!
Is this only when browsing all users or do you also not see the roles when you try to edit a specific user?
I've tried this on my end but it seems to be working. I will try to look into this further.
Best,
Bobby
@bobbyiliev So sorry! I didn't notice anyone replied and I honestly forgot that I posted this haha
Yes when I go to edit specific users I can see the roles properly, only when browsing all users does this happen.
I have 2 separate websites with wave installs and this happens to them both, although they are both configured similarly. But I do not recall modifying anything other than a bit of basic css for the backend. It's possible that I broke it myself, but I don't recall it ever working.
I should say that I'm on laravel 10 and I think I remember reading from you that Voyager is not compatible, but if there has been a fix for this in the wave github then I definitely do not have the updated files.
thank you!
Update: I updated voyager to 1.7 and everything else in my composer file was updated as well, and it still appears to be happening :/
Hey Alex!
No worries at all!
Do you actually have any additional roles added to your users?
I just tested this and it seems to be working as expected on a fresh new install:
Keep in mind that those roles displayed there are for the additional user roles.
The primary role, is displayed as the role_id
in the table.
- Bobby
Yeah I definitely have created new roles, but all of them still have role_id's in my db, so It seemed weird that it wasn't displaying properly.
It's definitely not a big deal or something that is worth spending any time on, but I figured it was worth checking if you notice any obvious errors on my part that could cause this.
This is how a few users appear in the db
And this is how my roles are set up. Do you see any obvious mistakes?
thank you!
Hey Alex!
This all looks good, now if you were to edit a user and update its additional roles they should show in the user BREAD as normal:
Let me know if this works!
- Bobby