Skip to content

Provide user activities #330

@gabor-boros

Description

@gabor-boros

Summary

Display recent activities on a user’s profile page based on their interactions with the system, ensuring only authorized data is shown.

  1. Data Collection
    • Track relevant user interactions (e.g., created, updated, commented, etc.).
    • Store these interactions in the relational database with enough metadata to identify the related resource.
  2. API Endpoint
    • Provide an endpoint to retrieve a list of recent activities for a specific user.
    • The endpoint should filter activities based on the access level of the requesting user.
  3. Permission Filtering
    • For each activity, check if the requesting user has at least read permission for the resource the activity relates to.
    • If the user has permission → include the activity.
    • If not → exclude the activity from the result.
  4. UI Display
    • On the user profile page, display the filtered list of recent activities.
    • Ensure the display is responsive and updates as new activities occur.

Security Note
By filtering activities based on resource access levels, we prevent exposure of private or restricted data.

Drawbacks

If permission based filtering is poorly implemented, we may expose private data through the activity feed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions