Skip to content

Public Profile Updates - #264

Open
gregv wants to merge 6 commits into
mainfrom
develop
Open

Public Profile Updates#264
gregv wants to merge 6 commits into
mainfrom
develop

Conversation

@gregv

@gregv gregv commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

gregv and others added 2 commits August 8, 2026 21:04
…cutover

Introduces the canonical /api/users/* profile stack (registry-driven
PROFILE_FIELD_SPECS, privacy-filtered public portfolio, vanity slug
claim/rename, bio video upload) backing the new /u/<slug> and
/profile/<userid> public portfolio pages, and retires the legacy
/api/messages/profile* handlers to thin delegates pending deletion.

Also fixes review findings from the profile API cutover:
- get_profile_by_db_id() dropped `github` entirely when trimmed to
  safe_public_fields; restored it via a new internal_lookup_fields list
  (safe_public_fields + github) so team rosters, peer feedback, and the
  admin giveaway selector keep showing GitHub usernames, without
  reopening github on the fully public/privacy-gated portfolio path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Public portfolio profile stack + profile API cutover
Comment thread api/users/users_views.py
return {"error": "Unauthorized"}, 401
data = request.get_json() or {}
payload, status = user_slug_service.claim_profile_slug(auth_user.user_id, data.get("slug"))
return payload, status
Comment thread api/users/users_views.py
def check_profile_slug(slug):
if not (auth_user and auth_user.user_id):
return {"error": "Unauthorized"}, 401
return user_slug_service.check_slug_availability(slug)
Comment thread api/users/users_views.py
return {"error": "Unauthorized"}, 401
data = request.get_json() or {}
payload, status = users_service.set_profile_visibility(auth_user.user_id, data.get("visibility"))
return payload, status
Comment thread api/users/users_views.py
data = request.get_json() or {}
payload, status = users_service.create_bio_video_upload_url(
auth_user.user_id, data.get("content_type"), data.get("content_length"))
return payload, status
Comment thread api/users/users_views.py
return {"error": "Unauthorized"}, 401
data = request.get_json() or {}
payload, status = users_service.set_bio_video_url(auth_user.user_id, data.get("url"))
return payload, status
gregv and others added 4 commits August 9, 2026 11:35
New per-event HH:MM constraints driving the judging-window copy on the
judge application (frontend falls back to 3:00/5:30 PM when unset).
Generalizes the judge_venue_arrival_time validation into a shared
JUDGE_TIME_CONSTRAINT_KEYS loop in both validate_hackathon_data and
validate_hackathon_data_partial.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…indow

Accept judge_judging_{start,end}_time hackathon constraints
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.

2 participants