Skip to content

Add video violation type - #270

Merged
hkdobrev merged 1 commit into
mainfrom
feature/video-violations
Apr 19, 2026
Merged

Add video violation type#270
hkdobrev merged 1 commit into
mainfrom
feature/video-violations

Conversation

@hkdobrev

Copy link
Copy Markdown
Member

Summary

  • Add ViolationType enum (standard, video) to the Violation entity with a new type column
  • Expose type in DTOs for read/create/feed groups with @IsEnum validation
  • Add optional type filter to ViolationsFilters for admin filtering
  • Add type filter to queryBuilderWithFilters() and countWithFilters() in the repository
  • Database migration: ALTER TABLE violations ADD type varchar DEFAULT 'standard'

Test plan

  • Run migration on staging database
  • Create a standard violation via API — verify type defaults to standard
  • Create a video violation via API with type: "video" — verify it's stored correctly
  • Filter violations by type in admin — verify correct results
  • Verify backward compatibility with existing violations

🤖 Generated with Claude Code

Add ViolationType enum (standard/video) to the Violation entity with a
database migration. Expose the type field in DTOs for read/create/feed
and add type-based filtering for the admin violations list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hkdobrev
hkdobrev merged commit c3050b5 into main Apr 19, 2026
1 check passed
@hkdobrev
hkdobrev deleted the feature/video-violations branch April 19, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant