Skip to content

feat: add include_tags and include_description to ContentOptions #91

@gregoryfoster

Description

@gregoryfoster

Summary

include_tags and include_description were designed in #88 but deferred because Watch does not yet have tags or description fields. Once those fields exist on Watch, add them to ContentOptions.

Blocked by

  • Watch model gaining tags (list of strings) and description (text) fields

Scope (once unblocked)

  • Add include_tags: bool = False and include_description: bool = False to ContentOptions in src/api/schemas/content_config.py
  • Enrich WatchEvent.metadata in _watch_base_metadata() (src/workers/tasks.py):
    • tags: watch.tags if set
    • description: watch.description if set
  • Add _build_tags_section() and _build_description_section() to src/core/notifications/content.py
  • Add checkboxes to notification_content_options.html
  • Tests for new sections in tests/core/notifications/test_content.py

Notes

Module docstring in src/api/schemas/content_config.py already notes this deferral.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions