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

[Esabora] Pouvoir pousser en ligne de commande un dossier peu importe l'état de synchronisation #2502

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

sfinx13
Copy link
Collaborator

@sfinx13 sfinx13 commented Apr 23, 2024

Ticket

#2426

Description

Dans la commande app:push-esabora-dossier qui permet de pousser un dossier sans passer par la fiche signalement

Lorsque qu'on pousse un dossier unique via l'uuid du signalement et que la synchronisation a un statut à 0 cad colonne is_synchronized de la table Affectation, le dossier ne peut être pas poussé.

php bin/console app:push-esabora-dossier schs --uuid=e81e633a-a5ca-469d-a6f6-a3c460314efd

Pour plus de souplesse, on devait pouvoir pousser ou repousser un dossier en ligne de commande peu importe son statut de synchronisation (la gestion des doublons est géré coté esabora)

Changements apportés

  • Passer le paramètre status à null afin de lever le filtre sur le statut

Pré-requis

make worker-start
make mock-start

Tests

  • Exécuter 2 fois make console app="push-esabora schs --uuid=00000000-0000-0000-2023-000000000012" et vérifier que l'appel est toujours executé
  • Mettre à jour à 0 is_synchronized en executant la requête UPDATE `affectation` SET `is_synchronized` = '0' WHERE `affectation`.`id` = 18;
  • Exécuter 1 fois make console app="push-esabora schs --uuid=00000000-0000-0000-2023-000000000012" et vérifier que l'appel est toujours exécuté
  • is_synchronized est toujours mis à jour à 1 après l'envoi du dossier

Copy link

sonarcloud bot commented Apr 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@sfinx13 sfinx13 changed the title [Esabora] Pouvoir pousser un dossier peu importe l'état de synchronisation [Esabora] Pouvoir pousser en ligne de commande un dossier peu importe l'état de synchronisation Apr 23, 2024
Copy link
Collaborator

@hmeneuvrier hmeneuvrier left a comment

Choose a reason for hiding this comment

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

Relecture OK et tests OK

@hmeneuvrier hmeneuvrier merged commit a2285b0 into develop Apr 24, 2024
3 checks passed
@hmeneuvrier hmeneuvrier deleted the bugfix/2426-push-dossier-whatever-status branch April 26, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants