[ASTPPCOM-391] Deleting accounts in GUI does not delete them in the database Created: 10/Apr/18  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature
Reporter: powerpbx Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

To reproduce on v3.5 or v3.6

Create an account via GUI. Verify it is in accounts table in DB.

Delete account in GUI. The account is still in the DB.



 Comments   
Comment by powerpbx [ 10/Apr/18 ]

I see another issue that mentions this. So is this by design? If so what is the purpose?

https://github.com/iNextrix/ASTPP/issues/378

Comment by Samir Doshi [ 12/Apr/18 ]

We do not do hard delete for accounts. When you delete the account, we simply change the field value from 0 to 1 in database and keep it in database.

Comment by powerpbx [ 15/Apr/18 ]

What is the reasoning behind this?

I am finding that this creates problems. For example, if there are SIP devices and IP settings still associated with an account before it is deleted, they also appear to remain in the DB after the account is deleted. When I try add a new SIP device or IP with the same number it fails validation because it already exists in the DB.

It appears that the only way those settings are cleared out of the DB is if they are delete before deleting the account. That seems like a bug to me.

Generated at Sat Feb 10 07:16:41 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.