Skip to content

Vie privée : ajout de contrôle de cohérence sur le déclarant d'une prolongation ou d'une demande de prolongation#6221

Merged
vincentporte merged 1 commit into
masterfrom
vp/GEN-2501_admin_integrity_check
Jun 5, 2025
Merged

Vie privée : ajout de contrôle de cohérence sur le déclarant d'une prolongation ou d'une demande de prolongation#6221
vincentporte merged 1 commit into
masterfrom
vp/GEN-2501_admin_integrity_check

Conversation

@vincentporte

@vincentporte vincentporte commented May 28, 2025

Copy link
Copy Markdown

🤔 Pourquoi ?

Eviter les Prolongation ou ProlongationRequest dont le declared_by est un job_seeker

correction des cas existants par #6228

🍰 Comment ?

cohérence des données necessaire au traitement d'archivage des utilisateurs

🚨 À vérifier

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

💻 Captures d'écran

image

@vincentporte vincentporte requested a review from xavfernandez May 28, 2025 15:29
@vincentporte vincentporte self-assigned this May 28, 2025
@vincentporte vincentporte added the ajouté Ajouté dans le changelog. label May 28, 2025
@notion-workspace

Copy link
Copy Markdown

Comment thread itou/approvals/models.py Outdated
raise ValidationError("L'adresse email et le numéro de téléphone ne peuvent être saisis pour ce motif")

# declared_by and declared_by_siae coherence
if not self.declared_by_siae.members.filter(pk=self.declared_by.pk).exists():

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.

nit: cela peut être embêtant pour le formulaire de modification dans l'admin si un CompanyMembership a été supprimé entre temps. Depuis quelques mois on ne supprime normalement plus les memberships pour juste les désactiver mais il faut avoir cela en tête :)

@vincentporte vincentporte force-pushed the vp/GEN-2501_admin_integrity_check branch from 0f5616a to 33ac974 Compare June 2, 2025 09:07
@vincentporte vincentporte marked this pull request as ready for review June 5, 2025 08:51
@vincentporte vincentporte marked this pull request as draft June 5, 2025 08:51
@vincentporte vincentporte force-pushed the vp/GEN-2501_admin_integrity_check branch from 33ac974 to 87eb472 Compare June 5, 2025 09:21
@vincentporte vincentporte marked this pull request as ready for review June 5, 2025 09:22
@vincentporte vincentporte force-pushed the vp/GEN-2501_admin_integrity_check branch from 87eb472 to b463353 Compare June 5, 2025 09:26
@vincentporte vincentporte enabled auto-merge June 5, 2025 09:32
@vincentporte vincentporte force-pushed the vp/GEN-2501_admin_integrity_check branch from b463353 to 4b94fc4 Compare June 5, 2025 11:22
Add a test on saving, to check if declared_by user is member of declared_by_siae and prevent CommonProlongation
declared_by job_seeker
TESTS IN PROGRESS
@vincentporte vincentporte force-pushed the vp/GEN-2501_admin_integrity_check branch from 4b94fc4 to b07242c Compare June 5, 2025 11:41
@vincentporte vincentporte added this pull request to the merge queue Jun 5, 2025
Merged via the queue into master with commit 4a2e66c Jun 5, 2025
14 checks passed
@vincentporte vincentporte deleted the vp/GEN-2501_admin_integrity_check branch June 5, 2025 11:59
@francoisfreitag francoisfreitag changed the title Vie privée : ajout de contrôle de cohence sur le déclarant d'une prolongation ou d'une demande de prolongation Vie privée : ajout de contrôle de cohérence sur le déclarant d'une prolongation ou d'une demande de prolongation Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants