Skip to content

Add logging and robustness to admin UserAccount lazy creation - #137

Merged
neoneye merged 2 commits into
mainfrom
multiple-api-keys-cleanup2
Mar 5, 2026
Merged

Add logging and robustness to admin UserAccount lazy creation#137
neoneye merged 2 commits into
mainfrom
multiple-api-keys-cleanup2

Conversation

@neoneye

Copy link
Copy Markdown
Member

Wrap the admin UserAccount commit in try/except with rollback and re-fetch to handle gunicorn worker races. Add warning logs when _get_current_user_account returns None so the root cause of the /account redirect-to-logout is visible in production logs.

neoneyeand others added 2 commits March 5, 2026 17:36
Wrap the admin UserAccount commit in try/except with rollback and
re-fetch to handle gunicorn worker races. Add warning logs when
_get_current_user_account returns None so the root cause of the
/account redirect-to-logout is visible in production logs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@neoneyeneoneye closed this Mar 5, 2026
@neoneyeneoneye reopened this Mar 5, 2026
@neoneye
neoneye merged commit 1f49109 into mainMar 5, 2026
3 checks passed
@neoneye
neoneye deleted the multiple-api-keys-cleanup2 branch March 5, 2026 18:58
huangyingting pushed a commit to repomesh/PlanExe that referenced this pull request Jun 26, 2026
Resolves Dependabot security alerts in worker_plan/pyproject.toml by bumping to the first stable patched release of each package:
- aiohttp 3.13.5 -> 3.14.1 (alerts PlanExeOrg#152,PlanExeOrg#153,PlanExeOrg#156-PlanExeOrg#164)
- tornado 6.5.4 -> 6.5.7 (alerts PlanExeOrg#113,PlanExeOrg#114,PlanExeOrg#136,PlanExeOrg#155,PlanExeOrg#165,PlanExeOrg#166,PlanExeOrg#171)
- python-multipart 0.0.22 -> 0.0.32 (alerts PlanExeOrg#142,PlanExeOrg#149,PlanExeOrg#167-PlanExeOrg#170)
- urllib3 2.6.3 -> 2.7.0 (alerts PlanExeOrg#150,PlanExeOrg#151)
- marshmallow 3.24.2 -> 3.26.2 (alert PlanExeOrg#81), staying on 3.x to avoid the breaking 4.x major
transformers alert PlanExeOrg#137 is excluded: its only fix is the 5.x major line and the vulnerable Trainer class is never imported by PlanExe (handled separately).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for freeto 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

@neoneye