Skip to content

Taskfile: drop make-admin step; unique factory emails (sc-1077) - #401

Merged
roble merged 1 commit into
mainfrom
renanroble/sc-1077/install-review
Oct 25, 2026
Merged

roble merged 1 commit into
mainfrom
renanroble/sc-1077/install-review

Conversation

@roble

@roble roble commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Part of sc-1077

  • Removes auth:make-admin from the Taskfile: the auth demo seeder now makes chef an admin (needs the auth PR).
  • UserFactory emails unique across requests, fixing E2E collisions.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • Resetting demo data now includes an admin account through the demo content.
    • Generated user accounts now use email addresses at example.com, with a username and randomized characters in the address. This changes the format of generated account emails while keeping them suitable for sample and test data.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bd04caa0-ae16-4d29-9b71-afa6facc06cf
Commits

Reviewing files that changed from the base of the PR and between d02534e and cf484c7.

Files selected for processing: 2
  • Taskfile.yml
  • database/factories/UserFactory.php

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The demo reset command no longer runs an explicit admin creation command. The user factory now generates email addresses using a fake username and a lowercased random suffix.

Changes: Test account setup

Layer / File(s) Summary
Demo reset command
Taskfile.yml
The db:reset:demo description changes. The command still runs migrate:fresh --seed and modules:seed --demo, but no longer runs auth:make-admin chef@saucebase.dev.
Factory email generation
database/factories/UserFactory.php
UserFactory::definition() now builds email addresses from a fake username and a lowercased random 8-character string at @example.com. A comment describes the uniqueness limitation and E2E test usage.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • saucebase-dev/saucebase#376: Both changes address E2E test-account setup and email collisions; this PR changes how the factory generates email suffixes.
Merge Risk: Minimal · up to cf484

No concrete blocker is established. The demo reset now relies on the separately installed auth module to create the admin account.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies both changes: removing the Taskfile make-admin step and changing factory email generation. It is concise and specific.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit 3a67fe2 into main Oct 25, 2026
13 checks 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