huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
225 stars 80 forks source link

Activity log / entity title in descriptions for DELETE actions #6905

Open salvalacruz opened 1 week ago

salvalacruz commented 1 week ago

Describe the bug The activity log does not include the entity title in the description, when the action is DELETE. This makes tracking entities deletions more difficult.

To Reproduce Steps to reproduce the behavior:

  1. Create an entity (anyone), then edit it and finally delete this entity.
  2. Go to Settings / Activity log
  3. See the CREATE action, including the entity title; see the UPDATE action, including the title.
  4. See error: the DELETE action includes de id, but not the title.

Expected behavior The DELETE action record should include in the description:

Deleted entity: [title] ([id]) of type [TEMPLATE]

Screenshots image

Additional context Related to https://github.com/huridocs/uwazi/issues/6713

aphilop commented 1 week ago

This is not a bug as it works as intended. The reason for not displaying the entity name is that this information is not part of the DELETE request.

The suggestion described here seems to be not a critical thing but just an inconvenience issue.

@salvalacruz Are there some concrete use cases (or feedback from users) that this information is very important to have?

salvalacruz commented 1 week ago

Hi @aphilop , in eny use case where admin needs to track what happened with a deleted entity, it's needed or very useful to search by the title of the deleted entity.

Particulary, we know that two partners in Latin America track activity log and need to see how/who/why entities are deleted: CDH Fray Matías (https://fraymatias.uwazi.io/) Colectivo de DDHH Nicaragua Nunca Más (https://cnnm.uwazi.io/)

aphilop commented 1 week ago

@salvalacruz Thanks for your feedback.

I understand this will improve the user experience when working with the activity log, especially searching for deleted entities. This was prioritized as low, at the moment, for the following reasons:

That being said, the priority can change anytime if and when we get new information about this, e.g. many users complaining about it. So, please add here any new information, if and when you get some, to reconsider. I hope this helps.

salvalacruz commented 1 week ago

Thank you @aphilop , just one last comment:

If an entity is created and later is deleted, but never has been edited, it is not possible to get its ID from he activity log, and therefore it's even harder to find de DELETE action record.

aphilop commented 1 week ago

OK, good to know. There seems to be more inconsistencies here 🙈 I will update my comment above about the workaround to make this transparent.