Hi, i was working on 8base and reading the documentation I saw that there is something called “Soft delete” and “Destroy”, when deleting my data gets an update and the field “DeleteAt” gets a value and when destroying my data is completely deleted
There are a couple of things I think are not working well
1- In the documentation I see a section that says " Deleted records will still affect validations when creating and updating records that have mandatory and unique fields." but when I delete a record in my table which has a unique field and I put a new record with the same unique value, it is successfully created, is this a bug?, I think if a field has unique values and some data is “soft deleted” then I must not be able to create a new record with the same value, until this data is “destroyed”
2-In my admin panel: Where can I see the “soft deleted” data?, can’t find any option in my admin panel, I think it is necessary to have a option where I only can see the deleted data.
3- The way that “deletedAt” shows it’s value, is this a DateTime data type?, or what type of data does it has to show?, I can’t understand that format.
Hello Jefferson!
I’ll give a response soon. Sorry about the long wait.
Lada Kokotova | Technical Support Engineer
I was trying to get a deleted record back from my orders table, that has the same orderCode as a record that is not deleted and it shows me this message :
Hope you can fix this bug soon.
Just to make sure I get you right. Did you follow these steps?
- Create unique field ‘fieldName’
- Create record with name “name”
- Delete this record
- Create new record with name “name”
- Try to restore deleted record => get an error “Can’t update data. Field ‘fieldName’ has unique values”
In this case, the actual result is expected.
Lada Kokotova | Technical Support Engineer
Yes, those are the steps that I did, the problem is that I must not be able to create a record that has the same value as a deleted record , in 8base documentation says " Deleted records will still affect validations when creating and updating records that have mandatory and unique fields. “”
I must not be able to create a record with the same value as a deleted record with a field with unique values.
OK, I got you. Thanks for the update.
We’ll definitely let you know about any updates.
Lada Kokotova | Technical Support Engineer