You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change_password_service tüm oturumları DB'de iptal edip Redis sid flag'lerini set ediyor, ancak kardeş iki iptal yolunun (session_service.py:77-80 ve :107-110) aksine publish_safe(account_topic(...), SESSIONS_REVOKED) yayınını yapmıyor. Sonuç: diğer cihazlardaki açık sekmeler anında login'e düşmez, yalnızca bir sonraki API çağrısında kopar — README'nin "password change ... broadcasts sessions_revoked so open tabs drop to login live" vaadiyle çelişir.
Öneri:flag_sessions_revoked çağrısından sonra await publish_safe(account_topic(current_user.id), AccountEvent(type=AccountEventType.SESSIONS_REVOKED)) ekle ve ilgili import'ları (app.core.realtime, app.schemas.account) dahil et.
2. Yeni session env değişkenleri .env.example'a eklenmemiş
SESSION_REVOKED_RETENTION_DAYS, SESSION_PURGE_CRON_HOUR ve SESSION_PURGE_CRON_MINUTESettings sınıfına eklendi ancak .env.example güncellenmedi (dosyada hiç SESSION değişkeni yok). Varsayılanları olsa da operatörlerin görmesi gereken yapılandırma parametreleri; konvansiyon yeni Settings alanlarının .env.example'a yansıtılmasını gerektiriyor.
SESSION_REVOKED_RETENTION_DAYS: int = 30
SESSION_PURGE_CRON_HOUR: int = 4
SESSION_PURGE_CRON_MINUTE: int = 0
Öneri:.env.example'a kısa birer yorumla SESSION_REVOKED_RETENTION_DAYS=30, SESSION_PURGE_CRON_HOUR=4, SESSION_PURGE_CRON_MINUTE=0 satırlarını ekle.
Önceki review'da işaret edilen iki bulgu b0ec39b ile giderildi:
Şifre değişiminde sessions_revoked canlı yayını eklendi (change_password_service), session-service iptal yollarıyla aynı desende.
SESSION_* ayarları .env.example'a eklendi (operatöre görünürlük amaçlı — not: bu repo varsayılanlı job ayarlarını dosyaya koymadığından bu zorunlu bir konvansiyon değil, isteğe bağlı bir iyileştirmedir).
Güncel head'de REVIEW.md kurallarına aykırı veya tespit edilebilir bir bug bulunamadı. test_sessions.py 13/13 geçiyor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.