Skip to content

GPS : Ajout du motif de suivi#5688

Merged
tonial merged 3 commits into
masterfrom
alaurent/gps_motif
Feb 26, 2025
Merged

GPS : Ajout du motif de suivi#5688
tonial merged 3 commits into
masterfrom
alaurent/gps_motif

Conversation

@tonial

@tonial tonial commented Feb 25, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

https://www.notion.so/gip-inclusion/Ajouter-le-motif-d-accompagnement-1975f321b60480cf9093fedad586f5ad?pvs=4
https://www.figma.com/design/qgmw6ZTrDRARTNO5yRF1kW/%F0%9F%A7%AD-B%C3%A9n%C3%A9ficiaires?node-id=135-3732&t=zRdUIql5PFKf9vXC-0

🍰 Comment ?

Décrivez en quelques mots la solution retenue et mise en oeuvre, les difficultés ou problèmes rencontrés. Attirez l'attention sur les décisions d'architecture ou de conception importantes.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ Comment tester ?

Les instructions pour reproduire le problème, les profils de test, le parcours spécifique à utiliser, etc. Si vous disposez d'une recette jetable, mettre l'URL pour tester dans cette partie.

💻 Captures d'écran

@tonial tonial added the modifié Modifié dans le changelog. label Feb 25, 2025
@tonial tonial requested review from EwenKorr and leo-naeka February 25, 2025 10:43
@tonial tonial self-assigned this Feb 25, 2025

@leo-naeka leo-naeka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note : je n'ai relu que les 3 derniers commits

Comment thread itou/www/gps/forms.py Outdated
}
widgets = {
"reason": forms.Textarea(
attrs={"rows": 3, "placeholder": "Raison de l’accompagnement et / ou actions menées avec la personne."}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

C'est ainsi fait sur le figma, mais normalement on ne met pas d'espaces à et/ou 🤷‍♂️

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Je vais corriger, au diable figma

Comment thread tests/gps/test_views.py Outdated
Comment thread tests/gps/test_views.py Outdated
@tonial tonial force-pushed the alaurent/gps_new_skin_details branch 2 times, most recently from 01b3a3a to 2f0df58 Compare February 25, 2025 20:39

@EwenKorr EwenKorr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ça va rendre super bien !

Comment thread itou/templates/django_bootstrap5/widgets/radio_select.html Outdated
Comment thread itou/templates/django_bootstrap5/widgets/radio_select.html
Comment thread tests/gps/test_views.py Outdated
Comment thread itou/www/gps/forms.py
Comment on lines +87 to +93
elif cleaned_data["ended_at"] < cleaned_data["started_at"]:
self.add_error("ended_at", "Cette date ne peut pas être avant la date de début.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

add_error() n'a pas l'air de faire grand chose, la première date est enregistrée et la deuxième est juste ignorée.

recording.mp4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

C'est parce que tu as laissé "Accompagement en cours" coché.
Normalement le date picker en dessous devrait être grisé (en tout cas il l'est chez moi)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

En effet, c'est tout bon maintenant !

Comment thread itou/www/gps/urls.py
path("groups/old/list", views.group_list, name="old_group_list", kwargs={"current": False}),
path("groups/<int:group_id>/leave", views.leave_group, name="leave_group"),
path("groups/<int:group_id>/toggle_referent", views.toggle_referent, name="toggle_referent"),
path("groups/<int:group_id>/memberships", views.GroupMembershipsView.as_view(), name="group_memberships"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

int ou uuid (comme l'URL en-dessous qui disparaîtra) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

en dessous c'est un user.public_id qui est utilisé (un uuid) alors qu'ili c'est la PK de FollowUpGroup : un int

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah oui d'accord, je pensais que c'était un uuid du FollowUpGroup. C'est bon pour moi !

@tonial

tonial commented Feb 25, 2025

Copy link
Copy Markdown
Contributor Author

Désolé, j'ai oublié de pousser cette branche après avoir modifié l'autre PR, il n'y a en effet que les 3 commits à relire
merci !

@tonial tonial force-pushed the alaurent/gps_motif branch from 1d71305 to 894cec8 Compare February 25, 2025 20:42
@EwenKorr

Copy link
Copy Markdown
Contributor

Désolé, j'ai oublié de pousser cette branche après avoir modifié l'autre PR, il n'y a en effet que les 3 commits à relire merci !

Dans ce cas il y a peut-être quelques commentaires ici-bas qui seraient aussi bien dans l'autre PR 😅

@tonial tonial force-pushed the alaurent/gps_motif branch 2 times, most recently from 44f926f to ff0db11 Compare February 25, 2025 20:50
@tonial tonial force-pushed the alaurent/gps_new_skin_details branch from 103c9a7 to c9a5e66 Compare February 26, 2025 18:55
Base automatically changed from alaurent/gps_new_skin_details to master February 26, 2025 19:32
@tonial tonial force-pushed the alaurent/gps_motif branch from ff0db11 to f4d724f Compare February 26, 2025 19:34
@tonial tonial enabled auto-merge February 26, 2025 19:36
@tonial tonial added this pull request to the merge queue Feb 26, 2025
Merged via the queue into master with commit 6219929 Feb 26, 2025
@tonial tonial deleted the alaurent/gps_motif branch February 26, 2025 19:51
@francoisfreitag francoisfreitag changed the title GPS: Ajout du motif de suivi GPS : Ajout du motif de suivi Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants