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

Added labels from bal lieudit_complement_nom on address schema #47

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

antoineludeau
Copy link
Member

This PR is related to the following PR and has to wait for its validation : BaseAdresseNationale/ban-plateforme#263

I. Context :

The field lieudit_complement_nom is currently not handled is the ID-Fix BAL processing.

II. Enhancements :

This PR aims to handle the lieudit_complement_nom by adding a labels field to the addresses, conform to the BAN-ID data schemas on addresses

III. How to test :

1- Download a BAL (csv) and make sure at least one of the address has a lieudit_complement_nom. If not, add it manually in the CSV and save it.
2- Use the initBALIntoBAN script on ID-Fix to push your BAL into the BAN.
3- Go in the PostgreSQL DB, on Addresses table and look for the address(es) that has(have) the lieudit_complement_nom.
4- Verify that the "labels" column is filled with the correct data.

III. Additional information

@antoineludeau antoineludeau linked an issue Sep 20, 2023 that may be closed by this pull request
@antoineludeau antoineludeau self-assigned this Sep 21, 2023
@@ -51,6 +53,7 @@ export type BanAddress = {
secondaryCommonToponymIDs?: BanCommonTopoID[]; // identifiant unique des toponymes secondaires
number: number; // numéro de l'adresse
suffix?: string;
labels?: Label[];
Copy link
Contributor

Choose a reason for hiding this comment

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

J'ai l'impression que labels devrait toujours être un tableau, même s'il est vide.
Tu en penses quoi ?

Copy link
Member Author

@antoineludeau antoineludeau Sep 27, 2023

Choose a reason for hiding this comment

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

À rediscuter et si besoin, à modifier dans une autre PR (à mettre en parallèle avec le champ "geometry" des toponymes communs qui est aussi optionnel)

@antoineludeau antoineludeau merged commit 54b07df into master Sep 27, 2023
@antoineludeau antoineludeau deleted the antoineludeau/add-lieudit-complement-nom branch September 27, 2023 08:12
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.

[ID-Fix] : Gestion du champ "lieudit_complement_nom"
2 participants