Skip to content

[Feature] - Ajoute le support de la base des lieux de naissance#31

Merged
Xusifob merged 10 commits intostagingfrom
feature/ins-birthplace
Apr 14, 2025
Merged

[Feature] - Ajoute le support de la base des lieux de naissance#31
Xusifob merged 10 commits intostagingfrom
feature/ins-birthplace

Conversation

@kaizokou
Copy link
Contributor

🎟️

https://www.notion.so/instamed/INS-Lieu-de-naissance-1b4503fffdf180fcb3d9c21d4a17a3aa

https://www.notion.so/instamed/Section-type-1-General-Information-16d503fffdf18028a95cdf2ed50dd187

📜

  1. Run migration or update DB
php bin/console doctrine:migrations:migrate 
php bin/console doctrine:schema:update --force --complete
  1. Run the command

php bin/console app:insee:import -vv

Purge option to re-run from fresh import ( delete the 5 table)
php bin/console app:insee:import --purge --force -vv

Option to import only one file
php bin/console app:insee:import -vv --target=commune1943

Values are : "commune","commune1943","event","pays","pays1943" or "all". default to "all"

@kaizokou kaizokou requested a review from Xusifob March 13, 2025 10:38
@Xusifob Xusifob changed the base branch from main to staging March 25, 2025 14:59
Copy link
Member

@Xusifob Xusifob left a comment

Choose a reason for hiding this comment

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

La recherche marche bien, j'ai pris ces 2 exemples :

Saint-Jean-le-Priche, Loché, et Sennecé-lès-Mâcon ont fusionné avec Mâcon le 1er juillet 1972. Ces communes sont devenues des communes associées de Mâcon, sans que leurs noms apparaissent dans le nom de la nouvelle entité 12.

Targé a fusionné avec Châtellerault le 1er juin 1972. Targé est devenue une commune associée de Châtellerault, et son nom n'apparaît pas dans le nom de la nouvelle commune 12.

Pas mal de retours sur la forme

Comment on lines +75 to +79
$communeFilePath = __DIR__ . '/../../data/insee/v_commune_2024.csv';
$commune1943FilePath = __DIR__ . '/../../data/insee/v_commune_depuis_1943.csv';
$communeEventFilePath = __DIR__ . '/../../data/insee/v_mvt_commune_2024.csv';
$paysFilePath = __DIR__ . '/../../data/insee/v_pays_territoire_2024.csv';
$pays1943FilePath = __DIR__ . '/../../data/insee/v_pays_et_territoire_depuis_1943.csv';
Copy link
Member

Choose a reason for hiding this comment

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

Pour le coup, ces fichiers vont évoluer, donc il faut aller les download directement sur le site de l'ANS, et pas les importer comme ça

@Xusifob Xusifob force-pushed the feature/ins-birthplace branch from 2155ebb to d1d85e8 Compare April 11, 2025 10:54
@Xusifob Xusifob force-pushed the feature/ins-birthplace branch from 0fd6a30 to af57af4 Compare April 14, 2025 09:43
@Xusifob Xusifob changed the title Feature/ins birthplace [Feature] - Ajoute le support de la base des lieux de naissance Apr 14, 2025
@Xusifob Xusifob merged commit 7be0415 into staging Apr 14, 2025
2 checks passed
@Xusifob Xusifob deleted the feature/ins-birthplace branch April 14, 2025 15:19
Xusifob pushed a commit that referenced this pull request May 14, 2025
* import INSEE

* make lint

* add birthplace api endpoint

* fix search

* PR fix

* fix

* fix

* fix

* fix

* update fixtures

---------

Co-authored-by: Bastien Malahieude <malahieude@gmail.com>
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.

2 participants

Comments