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 bal schema to address, common toponym and district meta schemas #300

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented Oct 6, 2023

I. Context

In order to complete our new data schema with the BAL data, we need to store some extra information.

II. Enhancements

This PR aims to add in the new address, common toponym and district schemas the "bal" meta schema (optional field) that will store the following data :

  • idRevision <= data from "API de dépôt"
  • dateRevision <= data from "API de dépôt"
  • codeAncienneCommune <= field commune_deleguee_insee in BAL format,
  • nomAncienneCommune <= field commune_deleguee_nom in BAL format,
  • isLieuDit <= if number === 99999

III. How to test

1- Post an an address, a common toponym or a district with the following meta :

"meta": {
"bal":{
"idRevision":"ID_TEST",
"dateRevision":"DATE_TEST",
"codeAncienneCommune": "CODE_ANCIENNE_COMMUNE_TEST",
"nomAncienneCommune": "NOM_ANCIENNE_COMMUNE_TEST",
"isLieuDit": true
}

@antoineludeau antoineludeau self-assigned this Oct 6, 2023
@antoineludeau antoineludeau linked an issue Oct 6, 2023 that may be closed by this pull request
@antoineludeau antoineludeau merged commit 3ce5dc2 into master Oct 10, 2023
1 check passed
@antoineludeau antoineludeau deleted the antoineludeau/add-bal-schema-to-meta branch October 10, 2023 12:33
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.

[BAN-Plateforme] : Ajout de la meta "bal"
2 participants