Skip to content

1307 5 Historise toutes les modifications d'événement#1875

Draft
rik wants to merge 1 commit into1307_4_admin_eventfrom
1307_5_django_history
Draft

1307 5 Historise toutes les modifications d'événement#1875
rik wants to merge 1 commit into1307_4_admin_eventfrom
1307_5_django_history

Conversation

@rik
Copy link
Copy Markdown
Member

@rik rik commented Feb 24, 2026

Via la librairie django-pghistory qui utilise des triggers.

  • Active la modification d'événements dans Django Admin.
  • Affiche les Snapshots successifs dans l'admin.
  • Crée les snapshots originels via la 0014_backfill_eventssnapshot.

ref #1307

Note de Céline : cf gip-inclusion/les-emplois#6620

@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik closed this Feb 24, 2026
@rik rik removed the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik reopened this Feb 24, 2026
@rik rik force-pushed the 1307_4_admin_event branch from 77b6e2c to 216c577 Compare February 24, 2026 21:27
@rik rik force-pushed the 1307_5_django_history branch from 94b4f4b to 37e6250 Compare February 24, 2026 21:27
@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik closed this Feb 24, 2026
@rik rik removed the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik reopened this Feb 24, 2026
@rik rik force-pushed the 1307_5_django_history branch from 37e6250 to e4c0905 Compare February 24, 2026 21:41
@rik rik force-pushed the 1307_4_admin_event branch from 216c577 to e9836e3 Compare February 24, 2026 21:41
@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
@github-actions
Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !
Lien vers Nuxt3 pour modifier le déclencheur : https://docurba-nuxt3-pr1875.osc-fr1.scalingo.io.
Attention, les données ne sont pas encore importées. Revenez quand l'action GitHub sera terminée.

@rik rik force-pushed the 1307_5_django_history branch from e4c0905 to ac2ba83 Compare February 24, 2026 22:28
@rik rik force-pushed the 1307_4_admin_event branch from e9836e3 to ad4b379 Compare February 24, 2026 22:28
@rik rik requested a review from celine-m-s February 24, 2026 22:39
@rik rik changed the title Historise toutes les modifications d'événement 1307 5 Historise toutes les modifications d'événement Feb 24, 2026
@rik rik closed this Feb 24, 2026
@rik rik removed the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik reopened this Feb 24, 2026
@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik closed this Feb 24, 2026
@rik rik removed the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik reopened this Feb 24, 2026
@rik rik force-pushed the 1307_5_django_history branch from ac2ba83 to f92c175 Compare February 24, 2026 23:04
@rik rik force-pushed the 1307_4_admin_event branch from ad4b379 to b585e41 Compare February 24, 2026 23:04
@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
Via la librairie django-pghistory qui utilise des triggers.

- Active la modification d'événements dans Django Admin.
- Affiche les Snapshots successifs dans l'admin.
- Crée les snapshots originels via la 0014_backfill_eventssnapshot.

ref #1307
@rik rik closed this Feb 24, 2026
@rik rik removed the recette-jetable Crée une recette jetable label Feb 24, 2026
@rik rik reopened this Feb 24, 2026
@rik rik force-pushed the 1307_5_django_history branch from f92c175 to caa8d5d Compare February 24, 2026 23:39
@rik rik force-pushed the 1307_4_admin_event branch from b585e41 to 128461f Compare February 24, 2026 23:40
@rik rik added the recette-jetable Crée une recette jetable label Feb 24, 2026
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !
Lien vers Nuxt3 pour modifier le déclencheur : https://docurba-nuxt3-pr1875.osc-fr1.scalingo.io.
Attention, les données ne sont pas encore importées. Revenez quand l'action GitHub sera terminée.

operations = [
migrations.RunSQL(
"""
ALTER TABLE doc_frise_events
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Non documentés dans Django pour le moment.

"""
ALTER TABLE doc_frise_events
DISABLE TRIGGER handle_updated_at,
DISABLE TRIGGER trigger_event_procedure_status_handler;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Utilise une fonction qui appelle Nuxt3.

@celine-m-s celine-m-s closed this Mar 30, 2026
@celine-m-s celine-m-s reopened this Mar 30, 2026
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recette-jetable Crée une recette jetable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modifier un event impactant de proc. PRINCIPALE - from Sudocuh depuis Django admin

2 participants