Skip to content

Helping - #279

Merged
gregv merged 2 commits into
mainfrom
develop
Sep 8, 2026
Merged

gregv merged 2 commits into
mainfrom
develop

Conversation

@gregv

@gregv gregv commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What does the PR do?

A description of the changes proposed in the pull request.

Type of change

  • Breaking Change
  • Bug Fix
  • New Feature

Linked Issue

Related Issue: reference to a related issue

Make sure you have

  • Pulled from the default branch
  • Documented your changes
  • Linked the Issue
  • Appointed a reviewer (if any)

gregv and others added 2 commits September 7, 2026 11:34
…toggle

Backend half of frontend-ohack.dev#359.

- GET /api/problem-statements/<id>/helpers: one row per person from the
  append-only helping history (earliest timestamp -> since, latest type
  wins, junk dropped, oldest first), name/nickname/profile_image attached
  with a single get_all, counts {hacker, mentor, total}. Public-safe field
  set (same as team rosters). 60s TTL cache cleared on every toggle; 404
  for unknown ids.
- save_helping_status: a returning helper's entry is updated in place
  (role switch keeps their original since) and their legacy duplicates are
  collapsed, instead of appending another entry per click.
- Tests: api/problemstatements/tests/test_helpers.py.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…helpers

Problem statements: public who's-helping roster endpoint + dedupe on toggle
@gregv
gregv merged commit 71cd3c2 into main Sep 8, 2026
10 checks passed
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