Arag / app /services /superadmin_service.py

Commit History

Fix analytics accuracy, tenant isolation, and event-loop blocking.
ff0847b

AuthorBot Cursor commited on

fix: 5 critical storage bugs + 3 SQLite/SSE bugs -- tracker.py: db.flush() after add() so chat messages/analytics are persisted -- chat.py: flush->commit for durable ChatSession row -- settings.py: fix session mismatch in all PUT routes (widget-config, profile, personality, notifications, password) - setattr on cross-session user was discarded; now uses UPDATE stmt on route db -- aggregator.py: replace PostgreSQL-only gen_random_uuid() with uuid4() param for SQLite -- ingest.py: fix SSE channel name mismatch subscriber vs publisher -- superadmin_service.py: fix naive/aware datetime TypeError in extend_subscription
784dc0e

AuthorBot commited on

Production hardening: JWT blacklist, TOTP, Pydantic schemas, Prometheus, SSRF fix, CSP, Redis auth, Celery backup — 35 items across P0-P5
131d826

AuthorBot commited on

Fix token display for unsubscribed authors and add SuperAdmin author removal.
cf196a9

AuthorBot Cursor commited on

Unify token tracking, smart links, and personality settings across admin and chat.
a825fee

AuthorBot Cursor commited on

Fix revoke subscription hang caused by blocking SMTP email send.
2e8c5a3

AuthorBot commited on

fix: naive vs aware datetime error in grants/extend/embed-token, grant button loading state + 15s timeout + token display modal
7e0e662

AuthorBot commited on

feat: Per-user auto embed token, full Token Management SA page, fix extend on expired subs, add /grants + /reset-tokens + /embed-token endpoints
8916c9a

AuthorBot commited on

Fix grant_access return: was returning raw SQLAlchemy model, now returns JSON-serializable dict matching AccessGrantResponse schema
0db8e87

AuthorBot commited on

Deep audit fix: add missing model columns (blocked, rating, tokens_used, out_of_scope_message, buy_url, preview_url), fix .get() calls, fix ingest doc creation, add track-click endpoint, add column migrations, fix email crash, fix audit log field names, enrich superadmin author list
868f634

AuthorBot commited on

Restructure project for HF Spaces deployment
772f852

AuthorBot commited on