LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-3465 [FIX] Wrap set_user_organization in transaction.atomic (#1954)
Chandrasekharan M8b29fea02e68
diff --git a/.claude/skills/worktree/SKILL.md b/.claude/skills/worktree/SKILL.mdindex 50f8fb5e5..a1339a29b 100644--- a/.claude/skills/worktree/SKILL.md+++ b/.claude/skills/worktree/SKILL.md@@ -26,7 +26,10 @@ Create isolated worktrees for parallel development. Ends by providing commands t```bashgit fetch origin mainmkdir -p "$(dirname "$WORKTREE_PATH")"- git worktree add -b "{branch}" "$WORKTREE_PATH" origin/main+ # --no-track: do NOT set the new branch's upstream to origin/main.+ # Without it, a later `git push -u origin {branch}` can be reported by+ # the server as also fast-forwarding main, landing commits on main.+ git worktree add --no-track -b "{branch}" "$WORKTREE_PATH" origin/main```4. **Copy config files**diff --git a/backend/account_v2/authentication_controller.py b/backend/account_v2/authentication_controller.pyindex 56982ed9b..d27bb5065 100644--- a/backend/account_v2/authentication_controller.py+++ b/backend/account_v2/authentication_controller.py@@ -3,6 +3,7 @@ from typing import Anyfrom django.conf import settingsfrom django.contrib.auth import logout as django_logout+from django.db import transactionfrom django.db.utils import IntegrityErrorfrom django.http import HttpRequestfrom django.middleware import csrf@@ -100,8 +101,8 @@ class AuthenticationController:return self.auth_service.handle_authorization_callback(request=request, backend=backend)- except Exception as ex:- logger.error(f"Error while handling authorization callback: {ex}")+ except Exception:+ logger.exception("Error while handling authorization callback")return redirect("/error")def user_organizations(self, request: Request) -> Any:@@ -163,6 +164,7 @@ class AuthenticationController:return response+ @transaction.atomicdef set_user_organization(self, request: Request, organization_id: str) -> Response:user: User = request.usernew_organization = False