Compare commits

...

4 Commits

9 changed files with 27 additions and 7 deletions

4
.changes/v3.2.1.md Normal file
View File

@@ -0,0 +1,4 @@
## v3.2.1 - 2024-10-31
### Fixed
* Add the possibility of unknown to the gender entity
* Fix the fusion of person doubles by excluding accompanyingPeriod work entities to be deleted. They are moved instead.

3
.changes/v3.2.2.md Normal file
View File

@@ -0,0 +1,3 @@
## v3.2.2 - 2024-10-31
### Fixed
* Fix gender translation for unknown

View File

@@ -6,6 +6,15 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie). and is generated by [Changie](https://github.com/miniscruff/changie).
## v3.2.2 - 2024-10-31
### Fixed
* Fix gender translation for unknown
## v3.2.1 - 2024-10-31
### Fixed
* Add the possibility of unknown to the gender entity
* Fix the fusion of person doubles by excluding accompanyingPeriod work entities to be deleted. They are moved instead.
## v3.2.0 - 2024-10-30 ## v3.2.0 - 2024-10-30
### Feature ### Feature
* Introduce a gender entity * Introduce a gender entity

View File

@@ -16,4 +16,5 @@ enum GenderEnum: string
case MALE = 'man'; case MALE = 'man';
case FEMALE = 'woman'; case FEMALE = 'woman';
case NEUTRAL = 'neutral'; case NEUTRAL = 'neutral';
case UNKNOWN = 'unknown';
} }

View File

@@ -18,4 +18,5 @@ enum GenderIconEnum: string
case NEUTRAL = 'bi bi-gender-neuter'; case NEUTRAL = 'bi bi-gender-neuter';
case AMBIGUOUS = 'bi bi-gender-ambiguous'; case AMBIGUOUS = 'bi bi-gender-ambiguous';
case TRANS = 'bi bi-gender-trans'; case TRANS = 'bi bi-gender-trans';
case UNKNOWN = 'bi bi-question';
} }

View File

@@ -39,7 +39,8 @@ const messages = {
birthday: { birthday: {
man: "Né le", man: "Né le",
woman: "Née le", woman: "Née le",
neutral: "Né·e le" neutral: "Né·e le",
unknown: "Né·e le",
}, },
deathdate: "Date de décès", deathdate: "Date de décès",
household_without_address: "Le ménage de l'usager est sans adresse", household_without_address: "Le ménage de l'usager est sans adresse",

View File

@@ -34,28 +34,28 @@ final class Version20240926093955 extends AbstractMigration
'{\"fr\": \"homme\", \"nl\": \"man\"}', '{\"fr\": \"homme\", \"nl\": \"man\"}',
true, true,
'man', 'man',
'', 'bi bi-gender-male',
1.0 1.0
), ),
(nextval('chill_main_gender_id_seq'), (nextval('chill_main_gender_id_seq'),
'{\"fr\": \"femme\", \"nl\": \"vrouw\"}', '{\"fr\": \"femme\", \"nl\": \"vrouw\"}',
true, true,
'woman', 'woman',
'', 'bi bi-gender-female',
1.1 1.1
), ),
(nextval('chill_main_gender_id_seq'), (nextval('chill_main_gender_id_seq'),
'{\"fr\": \"neutre\", \"nl\": \"neutraal\"}', '{\"fr\": \"neutre\", \"nl\": \"neutraal\"}',
true, true,
'neutral', 'neutral',
'', 'bi bi-gender-neuter',
1.1 1.1
), ),
(nextval('chill_main_gender_id_seq'), (nextval('chill_main_gender_id_seq'),
'{\"fr\": \"inconnu\", \"nl\": \"ongekend\"}', '{\"fr\": \"inconnu\", \"nl\": \"ongekend\"}',
true, true,
'unknown', 'unknown',
'', 'bi bi-question',
1.2 1.2
) )
"); ");

View File

@@ -714,5 +714,6 @@ news:
gender: gender:
genderTranslation: traduction grammaticale genderTranslation: traduction grammaticale
not defined: Non défini not defined: Non défini
pick gender: Choisir une genre

View File

@@ -201,7 +201,7 @@ class PersonMove
private function getDeleteEntities(): array private function getDeleteEntities(): array
{ {
return [ return [
AccompanyingPeriod\AccompanyingPeriodWork::class, // AccompanyingPeriod\AccompanyingPeriodWork::class,
Relationship::class, Relationship::class,
]; ];
} }
@@ -216,7 +216,7 @@ class PersonMove
} }
/** /**
* get the full table name with schema if it does exists. * get the full table name with schema if it exists.
*/ */
private function getTableName(ClassMetadata $metadata): string private function getTableName(ClassMetadata $metadata): string
{ {