Conversation
…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
| 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 |
| 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) |
| 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 |
| 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 |
| 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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.