Skip to content

feat: Add stack_id validation to UserSignUp and ProfileUpdate models#136

Merged
TMCreme merged 3 commits intomainfrom
Ransford/backend-upgrade
Apr 9, 2026
Merged

feat: Add stack_id validation to UserSignUp and ProfileUpdate models#136
TMCreme merged 3 commits intomainfrom
Ransford/backend-upgrade

Conversation

@RansfordGenesis
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 9, 2026 18:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces input handling around stack_id on user-facing request models, and also changes access control on the stacks listing endpoint.

Changes:

  • Add stack_id field validators to UserSignUp and ProfileUpdate.
  • Remove the user_accepted dependency from GET /stacks/ (making stack listing unauthenticated).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
api/routes/stacks.py Removes authentication dependency from the stacks list endpoint.
api/api_models/user.py Adds stack_id validators to sign-up and profile update models.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…odels; add tests for invalid stack_id values
@TMCreme TMCreme merged commit 09245a2 into main Apr 9, 2026
1 check passed
@TMCreme TMCreme deleted the Ransford/backend-upgrade branch April 9, 2026 19:41
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.

3 participants