opendatadiscovery / odd-platform

First open-source data discovery and observability platform. We make a life for data practitioners easy so you can focus on your business.
https://opendatadiscovery.org
Apache License 2.0
1.16k stars 96 forks source link

Filter on Activities doesn't work properly for Users #1657

Open RamanDamayeu opened 3 months ago

RamanDamayeu commented 3 months ago

On the Activity tab (from the main page or on each Data Entity) there is a possibility to filter out Activities made by users. User name is recorded to the underlying audit table. There is a filter to find records by user name by for now it looks for Owners and filters out records changed by the associated Owners. It leads to some issues:

  1. If user does not have an association with Owner we could not filter out records by the user.
  2. If Owner - User association is changed during the time filter mistakenly filters records for wrong users.

Proposed solution: use valued from the audit table for Users directly.

The list of all tracked activity types: odd-platform-api/src/main/java/org/opendatadiscovery/oddplatform/dto/activity/ActivityEventTypeDto.java

RamanDamayeu commented 1 month ago

Draft PR: https://github.com/opendatadiscovery/odd-platform/pull/1658