-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DoctrineMigrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
final class Version20230221141300 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return 'Drop is_situation_handicap column from signalement'; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE signalement DROP is_situation_handicap'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
$this->addSql('ALTER TABLE signalement ADD is_situation_handicap TINYINT(1) DEFAULT NULL'); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
'escalier occupant' => 'escalierOccupant', | ||
'numéro appartement occupant' => 'numAppartOccupant', | ||
|
@@ -161,7 +160,6 @@ public function map(array $columns, array $data): array | |
case 'isLogementCollectif': | ||
case 'isConsentementTiers': | ||
case 'isOccupantPresentVisite': | ||
case 'isSituationHandicap': | ||
case 'isLogementSocial': | ||
case 'isPreavisDepart': | ||
case 'isRelogement': | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -342,61 +342,12 @@ | |
<span class="fr-badge fr-badge--info fr-m-1v {{ visible ?? '' }}">TOUS</span> | ||
</div> | ||
</div> | ||
<div class="fr-col-6"> | ||
<label class="fr-label" for="bo-filters-handicaps"><strong>Situation handicap</strong></label> | ||
<select id="bo-filters-handicaps" class="fr-select" onchange="setBadge(this)"> | ||
<option value="">TOUS</option> | ||
<option value="0" class="{% if 0 in filters.handicaps %}fr-hidden{% endif %}">NON</option> | ||
<option value="1" class="{% if 1 in filters.handicaps %}fr-hidden{% endif %}">OUI</option> | ||
</select> | ||
<div class="selected__value"> | ||
<div class="fr-pb-1v fr-border--bottom--orange"></div> | ||
{% set visible = 'fr-hidden' %} | ||
{% for handicap in filters.handicaps %} | ||
<input type="hidden" name="bo-filters-handicaps[]" value="{{ handicap }}"> | ||
<span class="fr-badge fr-badge--success fr-m-1v" | ||
data-value="{{ handicap }}" data-removable="true" | ||
data-value="{{ handicap }}">{{ handicap ? 'OUI':'NON' }}</span> | ||
{% else %} | ||
{% set visible = 0 %} | ||
{% endfor %} | ||
<span class="fr-badge fr-badge--info fr-m-1v {{ visible ?? '' }}">TOUS</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="fr-col-12 fr-col-md-6"> | ||
<div class="fr-grid-row fr-grid-row--gutters">{# | ||
<div class="fr-col-6"> | ||
<label class="fr-label" for="bo-filters-affectations"><strong>Affectations</strong></label> | ||
<select id="bo-filters-affectations" class="fr-select" onchange="setBadge(this)"> | ||
<option value="">TOUS</option> | ||
<option value="1" class="{% if 0 in filters.affectations %}fr-hidden{% endif %}">EN | ||
ATTENTE | ||
</option> | ||
<option value="1" class="{% if 1 in filters.affectations %}fr-hidden{% endif %}">ACCEPTEE | ||
</option> | ||
<option value="2" class="{% if 1 in filters.affectations %}fr-hidden{% endif %}">REFUSEE | ||
</option> | ||
<option value="3" class="{% if 1 in filters.affectations %}fr-hidden{% endif %}">CLOTUREE | ||
</option> | ||
</select> | ||
<div class="selected__value"> | ||
<div class="fr-pb-1v fr-border--bottom--orange"></div> | ||
{% set visible = 'fr-hidden' %} | ||
{% for affectation in filters.affectations %} | ||
<input type="hidden" name="bo-filters-affectations[]" value="{{ affectation }}"> | ||
<span class="fr-badge fr-badge--success fr-m-1v" | ||
data-value="{{ affectation }}" data-removable="true" | ||
data-value="{{ affectation }}">{{ statuts_affectation[affectation] }}</span> | ||
{% else %} | ||
{% set visible = 0 %} | ||
{% endfor %} | ||
<span class="fr-badge fr-badge--info fr-m-1v {{ visible ?? '' }}">TOUS</span> | ||
</div> | ||
</div>#} | ||
<div class="fr-grid-row fr-grid-row--gutters"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) |
||
<div class="fr-col-6"> | ||
<label class="fr-label" for="bo-filters-delays"><strong>Dernier suivi </strong> | ||
<small>(jours)</small></label> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,6 @@ public function testCreateSignalementIsValid() | |
'inseeOccupant' => $faker->postcode(), | ||
'dateVisite' => new \DateTimeImmutable(), | ||
'isOccupantPresentVisite' => true, | ||
'isSituationHandicap' => false, | ||
'etageOccupant' => $faker->randomDigit(), | ||
'escalierOccupant' => $faker->randomDigit(), | ||
'numAppartOccupant' => $faker->randomDigit(), | ||
|
@@ -161,7 +160,6 @@ public function testCreateSignalementIsValid() | |
$this->assertEquals($data['numAllocataire'], $signalement->getNumAllocataire()); | ||
$this->assertEquals($data['montantAllocation'], $signalement->getMontantAllocation()); | ||
|
||
$this->assertEquals($data['isSituationHandicap'], $signalement->getIsSituationHandicap()); | ||
$this->assertEquals($data['isLogementSocial'], $signalement->getIsLogementSocial()); | ||
$this->assertEquals($data['isRelogement'], $signalement->getIsRelogement()); | ||
|
||
|
@@ -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'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
} | ||
} |
There was a problem hiding this comment.
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" ?
There was a problem hiding this comment.
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)