W
Wasp5mo ago
fred-123

Can't edit or delete users in admin panel

when loging in with an admin user and going to the default "users" pannel under menu there is an option to edit or delete each individual users. Anhow, these don't work for me yet. Is this expected or are they meant to work out of the box?
10 Replies
kapa.ai
kapa.ai5mo ago
Hi @fred-123. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about the functionality of an admin panel or the ability to edit or delete users from such a panel in Wasp. However, there is an open issue on Github about adding support for easy creation of CRUD (Create, Read, Update, Delete) UI based on Entities in Wasp, which might be related to your question (source (https://github.com/wasp-lang/wasp/issues/489)). For more detailed information, I would recommend checking the official Wasp documentation or their Github issues page. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @fred-123, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho5mo ago
Are you talking about open saas here?
fred-123
fred-123OP5mo ago
Yes i am using open saas. I am refering to the drop down in the screenshot that says edit and delete.
No description
miho
miho5mo ago
@martinsos or @Vinny (@Wasp) might know this
fred-123
fred-123OP5mo ago
@miho apreciate the help! Also on the other thread. I should have asked earlier. I spend quite some time trying to figure out what i might be doing wrong. One more questions that i have. When deploying with wasp deploy fly deploy it returns the db connection string with this paramater at the end ?sslmode=disable. Does this need to be set to disable for it to work or is this only to allow locally accesing the db through prisma? I have a feeling i should enable SSL in production to keep it safe but perhaps there is a good reason not to.
martinsos
martinsos5mo ago
@fred-123 I believe that is not impelmented yet and is left for you to implement -> but in the future versions of OpenSaas we will have that added!
fred-123
fred-123OP5mo ago
Makes sense. I was worried I broke something.
samim
samim2mo ago
I have the same question, any idea how to delete users? @Vinny (@Wasp) or @martinsos could you help me here?
Vinny (@Wasp)
Vinny (@Wasp)2mo ago
That functionality of the admin dashboard needs to be added on your own. You can also just run wasp db studio locally and you can delete and edit users that way
Vinny (@Wasp)
Vinny (@Wasp)2mo ago
Did that answer your questions @samim? If you need to connect to the production database with wasp db studio you can follow the instructions below: https://github.com/wasp-lang/learning-materials?tab=readme-ov-file#running-wasp-db-studio-on-production-db
GitHub
GitHub - wasp-lang/learning-materials: A place to collect some usef...
A place to collect some useful learning materials for Wasp - wasp-lang/learning-materials
Want results from more Discord servers?
Add your server