Skip to content

Meet streak calculation #690

Description

@ShantKhatri

Summary

Calculate the weekly-based meet streak from connection events.

Contexts

Weekly, not daily, since DevCard usage is event-driven. Self-shares must be excluded.

Tasks

  • Weekly streak calculation logic (at least one new connection per week keeps it alive)
  • Exclude self-shares (sharer scanning their own card)
  • Handle streak freeze/reset when no events happen for weeks

Acceptance Criteria

  • Streak increments and resets correctly against test scenarios
  • Self-shares never count
  • Tests added

Area

backend

Difficulty

Intermediate

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendlevel:intermediateModerate difficulty contribution requiring some project understanding. (+35 pts)

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions