peppermint icon indicating copy to clipboard operation
peppermint copied to clipboard

Deletion of users/clients

Open ChaseCares opened this issue 3 years ago • 3 comments

I think it would be nice to be able to completely remove these entities when/if they are no longer needed.

Thanks!

ChaseCares avatar Jul 04 '22 16:07 ChaseCares

I've thought about this also, in this case, would a client's tickets remain? or would they all be deleted too? I may just add an active field and hide the ones that are set to false

potts99 avatar Jul 05 '22 18:07 potts99

I believe that clients tickets should remain, although there could be some nuance here that I haven't fully thought through. The reason this came up is because I was testing functionality and created fictitious users and clients and now I can't get rid of them. It's not a huge issue, but something that I came across while testing, thank you!

ChaseCares avatar Jul 20 '22 20:07 ChaseCares

Due to clients being linked by relational to a ticket unless it is isn't issued, i think the active field is the right play.

when set to false then the client wont show up in create a ticket etc

potts99 avatar Jul 20 '22 21:07 potts99

Added an ACTIVE Boolean to client Model in prisma schema, toggle able in admin settings, added to SQL queries to only search for clients that are ACTIVE === true

potts99 avatar Oct 14 '22 00:10 potts99

coming next update

potts99 avatar Oct 14 '22 00:10 potts99