Skip to content

User profile identity#205

Merged
PatrickCmd merged 22 commits intomainfrom
user_profile_identity
Apr 4, 2026
Merged

User profile identity#205
PatrickCmd merged 22 commits intomainfrom
user_profile_identity

Conversation

@PatrickCmd
Copy link
Copy Markdown
Contributor

This pull request adds support for user profile completion by introducing new profile fields (full_name, organization_type, and sector) to both the user model and endpoint logs. It also provides API endpoints for updating and checking the completeness of user profiles, and ensures these new fields are validated and logged throughout the authentication and monitoring flows.

Database and Model Changes:

  • Added full_name, organization_type, and sector fields to the users table and organization_type, sector to the endpoint_logs table; updated corresponding SQLAlchemy models and Alembic migration. [1] [2] [3]

API and Schema Enhancements:

  • Introduced new Pydantic schemas: ProfileUpdate for profile updates and ProfileCompletionStatus for profile completeness checks; updated existing schemas to include new fields and allowed organization types. [1] [2] [3] [4]

Profile Management Endpoints:

  • Added /profile PUT endpoint for updating user profile fields with validation, and /profile/status GET endpoint to check profile completeness and missing fields.

Authentication Flow Improvements:

  • Modified Google OAuth callback to redirect users to a profile completion page if any required profile field is missing.

Monitoring and Logging Updates:

  • Updated monitoring middleware and CRUD logic to handle and log the new profile fields in endpoint logs, ensuring these fields are propagated and stored throughout the request lifecycle. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

PatrickCmd and others added 22 commits April 4, 2026 00:24
Spec for adding full_name, organization_type, and sector fields
to the User model, profile update endpoints, profile completion
page, dashboard banner, and EndpointLog denormalization.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17-task plan covering backend model/schema/endpoint changes,
Alembic migration, monitoring middleware updates, and frontend
registration form, profile completion page, dashboard banner,
and account settings updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…user

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Includes tests for profile update, partial update, invalid org type
validation, profile completion status, and registration with new
profile fields plus backward compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ncomplete

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…middleware

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…th/profile

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
npm audit fix for react-router, axios, picomatch, and rollup.
Remaining 2 moderate (esbuild/vite) require breaking vite v8 upgrade.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dev server CORS vulnerability in esbuild <=0.24.2. Override forces
esbuild 0.25.0+ while staying on Vite 5. npm audit now reports 0
vulnerabilities.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers 3-phase migration (5→6→7→8), breaking changes per version,
risk assessment for our stack, and implementation steps.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PatrickCmd PatrickCmd merged commit 62a9c0c into main Apr 4, 2026
1 check 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