Skip to content
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

Safe Delete #65

Open
devcitopia-zz opened this issue Nov 27, 2018 · 4 comments
Open

Safe Delete #65

devcitopia-zz opened this issue Nov 27, 2018 · 4 comments

Comments

@devcitopia-zz
Copy link

When we delete a service, the field DeleteAt is filled, but in the API, the result always appears

@marioprudhomme
Copy link
Member

As a staff member or admin, you are still able to see soft-deleted items. This allows backoffice users to restore soft-deleted items.
Soft-deleted items are only filtered out for outside users (such as individuals, organizations and anonymous users)

@devcitopia-zz
Copy link
Author

In our use case, we plan to disable displaying deleted elements by default and enable them by an option. In case a staff is connected and option is not enable, he want only to see not deleted elements. When we get the list from the micro services, we get a list with all items (deleted and not deleted) so the counting is the total of those elements. If we display only not deleted elements, counting get from api is not correct.
Is there a way to ask to the api to get only not deleted elements ?

@marioprudhomme
Copy link
Member

?deleted=true -> returns deleted items only
?deleted=false ->returns non-deleted items only

@devcitopia-zz
Copy link
Author

In the CMS, and in the Tenant MS the parameter deleted doesn't work. it always returns all items. in the other Ms, i didn't tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants