refactor: rename Wizamart to Orion across entire codebase

Replace all ~1,086 occurrences of Wizamart/wizamart/WIZAMART/WizaMart
with Orion/orion/ORION across 184 files. This includes database
identifiers, email addresses, domain references, R2 bucket names,
DNS prefixes, encryption salt, Celery app name, config defaults,
Docker configs, CI configs, documentation, seed data, and templates.

Renames homepage-wizamart.html template to homepage-orion.html.
Fixes duplicate file_pattern key in api.yaml architecture rule.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 16:46:56 +01:00
parent 34ee7bb7ad
commit e9253fbd84
184 changed files with 1227 additions and 1228 deletions

View File

@@ -1863,7 +1863,7 @@ class ArchitectureValidator:
The architecture uses:
- Dependencies (deps.py) for authentication/authorization validation
- Services for business logic validation
- Global exception handler that catches WizamartException subclasses
- Global exception handler that catches OrionException subclasses
Endpoints should be a thin orchestration layer that trusts dependencies
and services to handle all validation. They should NOT raise exceptions.
@@ -2660,7 +2660,7 @@ class ArchitectureValidator:
)
def _check_exception_inheritance(self, file_path: Path, content: str):
"""EXC-004: Check that custom exceptions inherit from WizamartException"""
"""EXC-004: Check that custom exceptions inherit from OrionException"""
# Look for class definitions that look like exceptions
exception_pattern = re.compile(r"class\s+(\w+Exception|\w+Error)\s*\(([^)]+)\)")
@@ -2671,7 +2671,7 @@ class ArchitectureValidator:
# Check if it inherits from appropriate base
valid_bases = [
"WizamartException",
"OrionException",
"ResourceNotFoundException",
"ValidationException",
"AuthenticationException",
@@ -2688,13 +2688,13 @@ class ArchitectureValidator:
if not has_valid_base:
self._add_violation(
rule_id="EXC-004",
rule_name="Domain exceptions must inherit from WizamartException",
rule_name="Domain exceptions must inherit from OrionException",
severity=Severity.WARNING,
file_path=file_path,
line_number=line_num,
message=f"Exception {class_name} should inherit from WizamartException hierarchy",
message=f"Exception {class_name} should inherit from OrionException hierarchy",
context=f"class {class_name}({base_classes})",
suggestion="Inherit from WizamartException or one of its subclasses",
suggestion="Inherit from OrionException or one of its subclasses",
)
def _validate_naming_conventions(self, target_path: Path):