[CORE] Ground Zero: Registration, Email & RBAC Baseline #180

Open
opened 2026-03-31 21:09:02 +02:00 by kincses · 0 comments
Owner

🚨 GROUND ZERO PROTOCOL - Testing & Development Restart

Context

The user registration is failing with a 500 Error due to SMTP timeout. The database is full of garbage test data. We are restarting the testing and development protocol from "Ground Zero" (A kályhától).

4-Step Ground Zero Testing Protocol

1. Registration & Brevo Email

  • Fix SMTP timeout by replacing with Brevo API integration
  • Implement proper error handling (don't crash registration on email failure)
  • Add .env variables for Brevo configuration
  • Test registration endpoint returns 201 Created even if email fails

2. Org & Branch Setup

  • After successful registration, test organization creation
  • Verify RBAC permissions for organization owners
  • Test branch creation within organizations

3. Asset Registration to Specific Branch

  • Register test vehicles/assets to specific branches
  • Verify asset ownership and branch assignment
  • Test asset lifecycle management

4. Expense Tracking Based on Scoping

  • Create expense records for assets
  • Test expense categorization and tracking
  • Verify financial reporting integration

Technical Requirements

  • Clean database purge of all test users (tester_pro@profibot.hu, noreply@...)
  • Cascade delete all related Organizations, Branches, and Assets
  • Implement Brevo API integration (smtp-relay.brevo.com, port 587)
  • Create comprehensive test scripts for each step
  • Ensure RBAC baseline is functional

Success Criteria

  • Registration endpoint returns 201 (not 500)
  • Email failures are logged but don't crash registration
  • Database is clean of test data
  • All 4 protocol steps are testable and functional
## 🚨 GROUND ZERO PROTOCOL - Testing & Development Restart ### Context The user registration is failing with a 500 Error due to SMTP timeout. The database is full of garbage test data. We are restarting the testing and development protocol from "Ground Zero" (A kályhától). ### 4-Step Ground Zero Testing Protocol **1. Registration & Brevo Email** - Fix SMTP timeout by replacing with Brevo API integration - Implement proper error handling (don't crash registration on email failure) - Add .env variables for Brevo configuration - Test registration endpoint returns 201 Created even if email fails **2. Org & Branch Setup** - After successful registration, test organization creation - Verify RBAC permissions for organization owners - Test branch creation within organizations **3. Asset Registration to Specific Branch** - Register test vehicles/assets to specific branches - Verify asset ownership and branch assignment - Test asset lifecycle management **4. Expense Tracking Based on Scoping** - Create expense records for assets - Test expense categorization and tracking - Verify financial reporting integration ### Technical Requirements - Clean database purge of all test users (tester_pro@profibot.hu, noreply@...) - Cascade delete all related Organizations, Branches, and Assets - Implement Brevo API integration (smtp-relay.brevo.com, port 587) - Create comprehensive test scripts for each step - Ensure RBAC baseline is functional ### Success Criteria - Registration endpoint returns 201 (not 500) - Email failures are logged but don't crash registration - Database is clean of test data - All 4 protocol steps are testable and functional
kincses added this to the Phase 1: Core Functionality Fixes milestone 2026-03-31 21:09:02 +02:00
kincses added the Status: To DoScope: BackendType: BugType: Feature labels 2026-03-31 21:09:03 +02:00
Sign in to join this conversation.