Skip to content

Auto-archive past events so they don't remain visible on the site #20

@Metrohan

Description

@Metrohan

What to build / Ne yapılacak

EN: Events whose start_date has passed continue to appear on the site indefinitely. Past events should be automatically archived (e.g. is_active = False) so the public-facing listing stays relevant. This can be done either as a periodic background job or as a filter applied at query time. The admin panel should still be able to view and manage archived events.

TR: start_date geçmiş olan etkinlikler sitede görünmeye devam ediyor. Geçmiş etkinlikler otomatik olarak arşivlenmeli (örn. is_active = False), böylece public liste güncel kalmalı. Bu, periyodik bir arka plan görevi ya da sorgu anında uygulanan bir filtre olarak yapılabilir. Yönetim paneli arşivlenmiş etkinlikleri görüntüleyebilmeli ve yönetebilmelidir.

Acceptance criteria

  • The public /api/events endpoint excludes events where start_date < today.
  • A background job (cron or startup hook) marks past events as inactive, or the query filter is applied consistently at the ORM/service layer.
  • The admin panel includes a toggle or tab to view archived/past events.
  • Existing past events are handled on first deployment (backfill or filter — both acceptable).
  • Unit/integration tests verify that a past event does not appear in the public listing.

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend / API layerdata-qualityData accuracy and consistency issuesenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions