Switch to unified AP activity bus
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m5s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m5s
emit_event → emit_activity for login event. Update shared submodule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ from shared.services.widget_registry import widgets
|
|||||||
from sqlalchemy.orm import selectinload
|
from sqlalchemy.orm import selectinload
|
||||||
from shared.browser.app.redis_cacher import clear_cache
|
from shared.browser.app.redis_cacher import clear_cache
|
||||||
from shared.infrastructure.cart_identity import current_cart_identity
|
from shared.infrastructure.cart_identity import current_cart_identity
|
||||||
from shared.events import emit_event
|
from shared.events import emit_activity
|
||||||
from .services import pop_login_redirect_target, store_login_redirect_target
|
from .services import pop_login_redirect_target, store_login_redirect_target
|
||||||
from .services.auth_operations import (
|
from .services.auth_operations import (
|
||||||
get_app_host,
|
get_app_host,
|
||||||
@@ -287,12 +287,12 @@ def register(url_prefix="/auth"):
|
|||||||
u2.last_login_at = now
|
u2.last_login_at = now
|
||||||
# Emit adoption event inside this transaction
|
# Emit adoption event inside this transaction
|
||||||
if anon_session_id:
|
if anon_session_id:
|
||||||
await emit_event(
|
await emit_activity(
|
||||||
s,
|
s,
|
||||||
"user.logged_in",
|
activity_type="rose:Login",
|
||||||
"user",
|
actor_uri="internal:system",
|
||||||
user_id,
|
object_type="Person",
|
||||||
{
|
object_data={
|
||||||
"user_id": user_id,
|
"user_id": user_id,
|
||||||
"session_id": anon_session_id,
|
"session_id": anon_session_id,
|
||||||
},
|
},
|
||||||
|
|||||||
2
shared
2
shared
Submodule shared updated: d697709f60...2e9db11925
Reference in New Issue
Block a user