User being deleted when deleting a thing

Hello everyone.

Every time I delete a thing, the user associated to the fieldCreated By of this thing is being delete.

It possible added “deleted as cascade” to objects associated to the object being deleted.

However, I would like to know how could I stop it, or know how to manage the way objects related to the objects can be deleted or not?

:smiley: :

Are you sure you are not deleting user within the same or following workflow?

There’s no ‘Cascade’ option for deleted objects in Bubble…

All objects must be deleted individually.

So I very much doubt what you think is happening is actually happening…

Can you describe what makes you think the User is being deleted? And also what process you’re using to delete the Thing?

Basically I am deleting a Current page product:
image

Yes, I agree but I just added a workflow deleting Current products. I did not understand. That is why I asked the terms deleting in cascade all items that is related to the thing being deleted.

So if your User data type has a field that is a list of Products data type and you delete a product - it will be deleted from the list of Products within the User. But the User will not be deleted until you have a corresponding WF action.
Have you checked you app DB to be sure that User was really deleted?

I’m not sure what you’re agreeing with?.. I was asking you a question…

Does that mean you’ve solved the issue? Or you realized that the User has not been deleted?

No, the user Data Type is used to make relation as Created By and to display user-name and role. And yes, I do not know why the user was deleted.

I agree with you told that bubble does not have the deleting in cascading. And the user was deleted with the workflow I provided.

Could you provide some screenshots of your DB and WF setup?

Sure, here is the product table:



There had a field called favorit_by as list of Users. That I deleted before these screen shot.

Just to clarify - have you tested your adding to favourites using logged in user?

No. This list was empty.

I’m still confused…

What exactly are you saying has been deleted?

What I mean is that if you are testing adding to favourites without logging user in - you are working with temporary user (which is active for 72 hours). So temporary user is added to the list favorit_by. In 3 days the temp user is deleted from Bubble (if I’m not mistaken, haven’t tested it for a long time). You could miss the moment when user has been auto deleted and while deleting a Product you’ve suddenly noticed that the User is not in the DB anymore.

I have fixed the problem, since I was trying to delete an item from a repeating group but I am do not know what happened.

I have a relationship of Product ---> Order-product, but the RG is Order-product in which I was displaying the order-product details as well as its product relationship fields in the same current cell.

And when I added to delete that current cell which is Current Page Product the user was deleted.

I did not get the idea why the user was deleted.

I still don’t think that’s what happened.

But at least you’ve fixed the issue now.

1 Like

I have tested creating new users as well and all of them (logged) are being deleted as well. I could not find what was the problem but I managed to fix the issue.

This topic was automatically closed after 70 days. New replies are no longer allowed.