Skip to content

[Feature] Enhancement of the Activity feature #43

Description

@lcharette

Issue with the current setup :

  • Context is hardcoded (by the description)
  • Activities are tied to a user, an cannot be tied to another object (ex.: a role)
  • The description is not localized

Changes proposed :

  • user_id is tied to the one doing the action
  • Add a context_type, context_id for what the activity applies to
  • Add a subject_type, subject_id for the action done on the context (nullable)
  • Use the type for language translation
  • Add metadata to pass additional context to the translation

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions