Skip to content

Integrate user_activity tracking into comments #15

@pmcfadin

Description

@pmcfadin

Epic: #12 — Implement user_activity Table Support
Size: S
Depends on: #13

Description

Add user activity tracking when comments are posted.

Files to modify

  • app/services/comment_service.py — call record_user_activity() after the two insert_one calls, pass comment_id (the uuid1()) as activity_id
  • tests/services/test_comment_service.py — verify record_user_activity called with correct args

Key design

  • activity_type="comment", activity_id=comment_id (links back to the comment)
  • Wrap in try/except — never fail the comment operation

Acceptance Criteria

  • add_comment_to_video() calls record_user_activity with activity_type="comment" and comment's uuid1
  • Existing comment tests still pass
  • New test verifies correct arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions