Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TECH] Refactorer getPlacementProfileWithSnapshotting et generatePlacementProfile #11468

Conversation

alicegoarnisson
Copy link
Contributor

@alicegoarnisson alicegoarnisson commented Feb 20, 2025

🥞 Problème

On a deux méthodes, getPlacementProfileWithSnapshotting et getPlacementProfilesWithSnapshotting qui font sensiblement la même chose, avec des paramètres différents.

🥓 Proposition

On garde uniquement getPlacementProfilesWithSnapshotting et on requête la participation à partir de campaignParticipationId pour passer la participation entière au service.

🧃 Remarques

J'ai laissé tomber la refacto de _generatePlacementProfile qui était pas vraiment intéressante pour le coup (on aurait dû ajouter un if dans la méthode, ou alors créer une nouvelle méthode interne juste pour _createUserCompetencesV2 et la création d'un objet PlacementProfile, c'était pas vraiment utile).

😋 Pour tester

Aller sur une campagne de partage de profils -> onglet Résultats
Vérifier que les données du tableau sont cohérentes.

@alicegoarnisson alicegoarnisson self-assigned this Feb 20, 2025
@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@alicegoarnisson alicegoarnisson marked this pull request as ready for review February 21, 2025 12:53
@alicegoarnisson alicegoarnisson requested a review from a team as a code owner February 21, 2025 12:53
@alicegoarnisson alicegoarnisson force-pushed the pix-16658/refacto-getPlacementProfileWithSnapshotting branch 5 times, most recently from 24db189 to 0515c0b Compare February 21, 2025 16:11
@lionelB lionelB marked this pull request as draft February 25, 2025 09:46
@alicegoarnisson alicegoarnisson marked this pull request as ready for review March 4, 2025 09:54
@alicegoarnisson alicegoarnisson changed the title TECH(api) Refactorer getPlacementProfileWithSnapshotting et generatePlacementProfile [TECH] Refactorer getPlacementProfileWithSnapshotting et generatePlacementProfile Mar 4, 2025
@Alexandre-Monney
Copy link
Contributor

Coté tech ça me parait ok, sachant qu'en plus les tests passent toujours. Mais aucune idée de comment tester fonctionnellement 🤔

@Alexandre-Monney Alexandre-Monney force-pushed the pix-16658/refacto-getPlacementProfileWithSnapshotting branch from 0515c0b to 1c481da Compare March 6, 2025 15:57
@frinyvonnick
Copy link
Member

Coté tech ça me parait ok, sachant qu'en plus les tests passent toujours. Mais aucune idée de comment tester fonctionnellement 🤔

C'est sur les résultats de campagnes de collecte de profils 😄

@Alexandre-Monney
Copy link
Contributor

Func ok en mob 👍

@Alexandre-Monney Alexandre-Monney added Tech Review OK Func Review OK PO validated functionally the PR 🚀 Ready to Merge and removed 👀 Tech Review Needed 👀 Func Review Needed Need PO validation for this functionally labels Mar 7, 2025
@pix-service-auto-merge pix-service-auto-merge force-pushed the pix-16658/refacto-getPlacementProfileWithSnapshotting branch from 1c481da to b17f351 Compare March 7, 2025 10:11
@pix-service-auto-merge pix-service-auto-merge merged commit 62a4cf4 into dev Mar 7, 2025
9 of 11 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the pix-16658/refacto-getPlacementProfileWithSnapshotting branch March 7, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants