Skip to content

✨(audit-domain) ajout du modele AuditLog#738

Open
vincentporte wants to merge 6 commits into
vp/base_dated_modelfrom
542-modele-audit-log
Open

✨(audit-domain) ajout du modele AuditLog#738
vincentporte wants to merge 6 commits into
vp/base_dated_modelfrom
542-modele-audit-log

Conversation

@vincentporte

Copy link
Copy Markdown
Collaborator

📝 Description

🎸 ajout de l'entité, de ses enums, de son modèles et des methodes du repository

🎃 pas d'instantiation dans des usecases pour le moment
🎃 pas de foreign key vers les ressources audit (possibilité d'implémenter des FK avec content_type)

🏷️ Type de changement

  • 🎢 Nouvelle fonctionnalité (changement non bloquant qui ajoute une fonctionnalité)

✅ Liste de contrôle

  • 💅 J’ai ajouté ou mis à jour les tests appropriés.
  • 📝 J’ai mis à jour ou ajouté la documentation nécessaire.
  • 🚀 J’ai pris en compte l’impact sur les performances, la sécurité et l’expérience utilisateur.
  • 👀 J’ai demandé une revue à une personne de l’équipe.

@vincentporte vincentporte self-assigned this Jun 11, 2026
@vincentporte vincentporte linked an issue Jun 11, 2026 that may be closed by this pull request
@vincentporte vincentporte added the added PR: backward compatible addition label Jun 11, 2026
@vincentporte vincentporte force-pushed the 542-modele-audit-log branch from 7acc979 to 0bb7a08 Compare June 11, 2026 11:36

@AntoineAugusti AntoineAugusti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK pour moi, quelques remarques ✅

Comment thread src/web/domain/audit/value_objects/ressource_kind.py
Comment thread src/web/infrastructure/django_apps/audit/migrations/0001_initial.py
Comment on lines +15 to +17
@pytest.fixture(name="repository")
def repository_fixture():
return PostgresAuditLogRepository()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il me semble qu'un repository doit être récupéré depuis le container dans les tests

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oui !
mais comme c'est implémenté dans aucun usecase, j'ai courageusement laissé cette tâche à la PR qui s'en chargera 🙊

Comment thread src/web/domain/audit/value_objects/action.py Outdated
@vincentporte vincentporte force-pushed the 542-modele-audit-log branch from 92a4382 to 275d062 Compare June 12, 2026 13:54
@vincentporte vincentporte changed the base branch from main to vp/base_dated_model June 12, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added PR: backward compatible addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

creation modele audit log

2 participants