-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Doc] Update Soft Delete documentation #10986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
items: [ | ||
enterpriseEntry('addSoftDeleteBasedOnResource'), | ||
enterpriseEntry('addSoftDeleteInPlace'), | ||
enterpriseEntry('useSoftDelete'), | ||
enterpriseEntry('useSoftDeleteMany'), | ||
enterpriseEntry('useGetListDeleted'), | ||
enterpriseEntry('useGetOneDeleted'), | ||
enterpriseEntry('useRestoreOne'), | ||
enterpriseEntry('useRestoreMany'), | ||
enterpriseEntry('useHardDelete'), | ||
enterpriseEntry('useHardDeleteMany'), | ||
enterpriseEntry('useDeletedRecordsListController'), | ||
enterpriseEntry('DeletedRecordsListBase'), | ||
enterpriseEntry('ShowDeletedBase'), | ||
enterpriseEntry('DeletedRecordRepresentation'), | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the OSS docs, the components are listed before the hooks.

Besides, we may need an introduction page to better explain the soft-delete feature in general, and introducing the dataProvider builders there, similar to what was done here: https://marmelab.com/react-admin/SoftDeleteDataProvider.html
However I realize this was not done for realtime hooks and components, so we have to take an arbitration here. @fzaninotto Should we take the extra time needed to add an introduction page? Should we also do it for realtime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes and yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the navigation and added intro
|
||
You'll need to pass an object with all your resources as key so that `getListDeleted` knows where to look for deleted records. | ||
|
||
> **Note on performances:** Avoid calling `getListDeleted` without a `resource` filter, as it uses a naive implementation combining multiple `getList` calls, which can lead to bad performances. It is recommended to use one list per resource in this case (see [`resource` property](./getListDeleted.md#resource)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found a dead link
Problem
@react-admin/ra-soft-delete
has been updated and we also extracted all headless components and hooks to@react-admin/ra-core-ee
. The OSS documentation is out of date though.Solution
Update the OSS documentation, both standard and headless.
How To Test
make docker-doc
for standard documentationmake doc-headless
for headlessAdditional Checks
master
for a bugfix or a documentation fix, ornext
for a featureAlso, please make sure to read the contributing guidelines.