Skip to content

Journey — Profile & avatar ​

Version: 1.1
Date: 2026-11-26
Status: Working baseline (profile fields PROPOSED)

  • display_name: sau khi user sửa, Core là SoT; ensure không đè (PROPOSED).
  • account_preferences: locale, timezone, theme, email_notifications_enabled (PROPOSED).
  • Avatar:
    • Upload / promote qua File Service → Core gán avatar_file_id soft-ref.
    • Đồng thời ghi avatar_file_meta (JSONB: display_name, content_type, size_bytes, source_updated_at — không lặp file_id) — snapshot lúc gán/đổi/clear; stale nếu source_updated_at ≠ FS updated_at.
    • SoT bytes + metadata = File Service; avatar_file_meta chỉ cache hiển thị — ví dụ của pattern D-005 DECIDED (Owner 2026-11-26; bắt buộc cho file refs domain).
    • Client dùng meta để placeholder UI; variant/original vẫn qua FS (GET /v1/files/{file_id}/{size}, GET /v1/files/{file_id}).
  • Clear avatar: null cả avatar_file_id và avatar_file_meta; lifecycle file cũ theo File SoT.
  • Password change: chỉ Keycloak.

platform-core/docs = SoT chi tiết Platform Core · hub platform-docs giữ overview + stub/ref