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

Suppression de la question sur le handicap (et de la donnée dans la BDD) #936

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

emilschn
Copy link
Collaborator

Ticket

#917

Description

Suppression de la question sur le handicap dans le formulaire front, dans les imports, dans l'affichage back.

Tests

  • make load-migrations
  • Vérifier si la donnée n'apparait plus sur les anciens signalements
  • Vérifier dans le formulaire front qu'on ne pose plus la question et que le formulaire se valide quand même

@@ -62,7 +62,6 @@ private function loadSignalements(ObjectManager $manager, array $row)
->setSuperficie($row['superficie'])
->setLoyer($row['loyer'])
->setDetails($row['details'])
->setIsSituationHandicap(false)
->setIsProprioAverti($row['is_proprio_averti'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

est-ce qu'il ne faudrait pas supprimer l'information des fixtures également pour avoir des fixtures "propres" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cette info n'est pas remplie dans les fixtures (sauf erreur de ma part)

@@ -62,7 +62,6 @@ public function getMapping(): array
'code insee occupant' => 'inseeOccupant',
'date visite' => 'dateVisite',
'Occupant présent lors de la visite ?' => 'isOccupantPresentVisite',
'Occupant en situation handicap' => 'isSituationHandicap',
'etage occupant' => 'etageOccupant',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Il faudra penser à modifier le template modèle qu'on fournit aux territoires pour les imports (qui a la main là-dessus ?)

Copy link
Collaborator

Choose a reason for hiding this comment

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

c'est fait
image

<span class="fr-badge fr-badge--info fr-m-1v {{ visible ?? '' }}">TOUS</span>
</div>
</div>#}
<div class="fr-grid-row fr-grid-row--gutters">
Copy link
Collaborator

Choose a reason for hiding this comment

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

ce code commenté correspond à du code non-commenté dans le SearchFilterService (je ne sais pas pourquoi), à mon avis, soit on supprime tout, soit on laisse

Copy link
Collaborator

Choose a reason for hiding this comment

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

Attendons encore un peu avant le supprimer dans le service, on n'a pas encore de test sur ce service, ok pour la suppression du twig (c'est commenté depuis la création du projet sur github)

@hmeneuvrier
Copy link
Collaborator

Test ok

@@ -62,7 +62,6 @@ public function getMapping(): array
'code insee occupant' => 'inseeOccupant',
'date visite' => 'dateVisite',
'Occupant présent lors de la visite ?' => 'isOccupantPresentVisite',
'Occupant en situation handicap' => 'isSituationHandicap',
'etage occupant' => 'etageOccupant',
Copy link
Collaborator

Choose a reason for hiding this comment

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

c'est fait
image

@@ -218,6 +216,6 @@ public function testCreateSignalementIsValid()
$this->assertEmpty($signalement->getModifiedBy());
$this->assertEmpty($signalement->getAffectationStatusByPartner());

$this->assertCount(84, $data, 'Array $data should have 84 keys');
$this->assertCount(83, $data, 'Array $data should have 83 keys');
Copy link
Collaborator

Choose a reason for hiding this comment

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

signalement c'est tellement touchy que t'ai obligé d'avoir ce genre de test :-D

<span class="fr-badge fr-badge--info fr-m-1v {{ visible ?? '' }}">TOUS</span>
</div>
</div>#}
<div class="fr-grid-row fr-grid-row--gutters">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Attendons encore un peu avant le supprimer dans le service, on n'a pas encore de test sur ce service, ok pour la suppression du twig (c'est commenté depuis la création du projet sur github)

@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@emilschn
Copy link
Collaborator Author

J'ai repassé vos retours. Pour moi, c'est ok. Je vous laisse voir pour le merge :)

@sfinx13 sfinx13 merged commit cde7336 into develop Feb 22, 2023
@emilschn emilschn deleted the feature/917-remove-question-handicap branch February 27, 2023 13:48
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

3 participants