Skip to content

Add User Functionality#178

Merged
lbedner merged 1 commit intomainfrom
add-user-functionality
Sep 20, 2025
Merged

Add User Functionality#178
lbedner merged 1 commit intomainfrom
add-user-functionality

Conversation

@lbedner
Copy link
Copy Markdown
Owner

@lbedner lbedner commented Sep 20, 2025

Added a bunch of utilities for quick development with creating fake users, and more to the Makefile of the generated stack.

my-app auth create-test-users --count 12

🚀 Creating 12 test users with prefix 'test'...
============================================================
✅ Created: test@example.com (ID: 1)
✅ Created: test1@example.com (ID: 2)
✅ Created: test2@example.com (ID: 3)
✅ Created: test3@example.com (ID: 4)
✅ Created: test4@example.com (ID: 5)
✅ Created: test5@example.com (ID: 6)
✅ Created: test6@example.com (ID: 7)
✅ Created: test7@example.com (ID: 8)
✅ Created: test8@example.com (ID: 9)
✅ Created: test9@example.com (ID: 10)
✅ Created: test10@example.com (ID: 11)
✅ Created: test11@example.com (ID: 12)
============================================================
🎉 Successfully created 12 test users!
🔑 Shared password: VsSbyKWFU$uI
💡 Password was auto-generated. Save it for testing!
🚀 Ready to test auth endpoints at http://localhost:8000/docs

Copilot AI review requested due to automatic review settings September 20, 2025 19:27
@lbedner lbedner self-assigned this Sep 20, 2025
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 adds user management functionality to the Aegis Stack project template, enabling developers to quickly create test users during development. The changes introduce CLI commands for creating single or multiple test users with auto-generated emails and passwords, along with supporting utilities.

Key changes:

  • Added CLI commands for creating test users (create-test-user, create-test-users, list-users)
  • Extended UserService with methods for listing users and finding existing emails
  • Updated Makefile to use proper alembic configuration paths

Reviewed Changes

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

Show a summary per file
File Description
user_service.py Added list_users() and find_existing_emails_with_prefix() methods to support user management
database_init.py.j2 Reformatted log messages for better readability
auth.py Template placeholder file for conditional auth CLI inclusion
main.py.j2 Added conditional registration of auth CLI commands
auth.py.j2 Full CLI implementation with user creation, bulk creation, and listing commands
Makefile Updated alembic commands to use proper configuration file path
AGENTS.md Reformatted documentation guidelines for better clarity

@lbedner lbedner force-pushed the add-user-functionality branch from 567ce08 to ec99344 Compare September 20, 2025 19:30
@lbedner lbedner linked an issue Sep 20, 2025 that may be closed by this pull request
6 tasks
@lbedner lbedner merged commit 3e426a4 into main Sep 20, 2025
7 checks passed
@lbedner lbedner deleted the add-user-functionality branch September 20, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add default guest/guest user creation for auth service

2 participants