Skip to content

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Oct 10, 2025

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 documentation
  • make doc-headless for headless

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added the RFR Ready For Review label Oct 10, 2025
@slax57 slax57 self-requested a review October 13, 2025 08:00
Comment on lines 242 to 257
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'),
],
Copy link
Contributor

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.

image

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes and yes

Copy link
Collaborator Author

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)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

found a dead link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Development

Successfully merging this pull request may close these issues.

3 participants