From 6f2337ba4114d21b85387dcc4185190c4d21bb8f Mon Sep 17 00:00:00 2001 From: Orion C Date: Wed, 3 Apr 2024 12:32:51 +0200 Subject: [PATCH 1/5] Fix headers after 3.11 release --- src/indexation/indexInsee.helpers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/indexation/indexInsee.helpers.ts b/src/indexation/indexInsee.helpers.ts index beaee8a..f9583b6 100644 --- a/src/indexation/indexInsee.helpers.ts +++ b/src/indexation/indexInsee.helpers.ts @@ -250,6 +250,8 @@ export const siretIndexConfig: IndexProcessConfig = { "complementAdresseEtablissement", "numeroVoieEtablissement", "indiceRepetitionEtablissement", + "dernierNumeroVoieEtablissement", + "indiceRepetitionDernierNumeroVoieEtablissement", "typeVoieEtablissement", "libelleVoieEtablissement", "codePostalEtablissement", @@ -261,6 +263,9 @@ export const siretIndexConfig: IndexProcessConfig = { "libelleCedexEtablissement", "codePaysEtrangerEtablissement", "libellePaysEtrangerEtablissement", + "identifiantAdresseEtablissement", + "coordonneeLambertAbscisseEtablissement", + "coordonneeLambertOrdonneeEtablissement", "complementAdresse2Etablissement", "numeroVoie2Etablissement", "indiceRepetition2Etablissement", From e852b2950ac7b3c3e286947e19ec74669af91779 Mon Sep 17 00:00:00 2001 From: Orion C Date: Wed, 3 Apr 2024 12:49:01 +0200 Subject: [PATCH 2/5] Prefix inte --- src/commands/__tests__/index.integration.ts | 8 ++++---- .../StockEtablissement_utf8_sample.zip | Bin 10954 -> 10853 bytes 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/__tests__/index.integration.ts b/src/commands/__tests__/index.integration.ts index 3195652..48f3c71 100644 --- a/src/commands/__tests__/index.integration.ts +++ b/src/commands/__tests__/index.integration.ts @@ -110,11 +110,11 @@ describe("Perform indexation", () => { expect.arrayContaining([ expect.objectContaining({ _source: { - siren: "005410345", - nic: "00010", - siret: "00541034500010", + siren: "000325175", + nic: "00016", + siret: "00032517500016", statutDiffusionEtablissement: "O", - dateCreationEtablissement: "", + dateCreationEtablissement: "2000-09-26", trancheEffectifsEtablissement: "", anneeEffectifsEtablissement: "", activitePrincipaleRegistreMetiersEtablissement: "", diff --git a/tests/fixtures/StockEtablissement_utf8_sample.zip b/tests/fixtures/StockEtablissement_utf8_sample.zip index 18627928998111d66425262486c7e546b9fbe383..1d8eb7e99675748603575d73ec6219e6c4d735b4 100644 GIT binary patch literal 10853 zcmaKSb95cf^Y*>5ZKH8+%*JZdpkaf?wr$(?jg!W=lOn^khOF|d$u)YG>#b8s-SGO~8m zadI@~VKQ)V?$?ra*yV}uxUAZ;VornrbRB;CQ9Z65uB=p$f0i*;c=Ag;X-%$z-h-zXr0n^sm@Aj3O1F_32I8MXUC|e} zV^dXCL+{u3cQ@xtuY<)Y**>3WpE6w?B->iIyN5bLF;&bi%*7k8#fLViCfF^lc6mV=^x6GoyNUJZ(LlKMD19xj%RSwPq@fhAn6)M{5J!UcxXhe#d|y>RMabyTikvP7L~az9l>W+ zw3ba$pLSxcsiZ2c--bK(4F8l5h)_pdT`%dYsq>b z1iR2}TrJ_@)+jnkqCbtT^>$1;{Yb_Agm833_Hd)gO)90Y!@VvJ+8GztmTeEaFA=?M z4M;mDWG`#26mV>jNApAJwB&1bvCtNetyD}V!K%DMJg4EsPAWLC?UOOdc5LpHB<$8u z{k3Hg4BWkoMhX|T0TI$L)$1AbpammmTW2#RqvMy)onS$2{A@gKDE;O41Nh{iQ%rOx zu?!d)h9T_HtokMU6n8^p1qz}Q^z5h&v^OZNSkt@U%1zYnlMU2RqsNGKhGZNB zr7{8(ZFw&{E~5s9OLUIw>nzBrn@qmWX7q1wGlak~f(PX$(`;l2K;oTlE9R&#Zt({yFca}re8zsUTXnmAa^?$h)1rJ zqabQCUeprXph1WA>f*7=?%?_46stn*KeKV7tBxsVA}J2|mEw?bR}b@sq+(+#TeSYZ z=Brl(#>S#2K?vt6;?Vjk)P5m1b@YKrm%NSq=SDL)M=!~39@-{QPL3OO!*p`3}|bc_a;guhzh9tR@_?<2Um5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`n$+maNG?6ayNB4dx@ekx@Nq+m&WG$!8(|qm z^)Wsk87#9sLGDMOe$HtJq34)Oa`5_|pvj~8wm4;N#kZ|j2Pfn+o4}2qubbrQsWV1M zT(Rpi&ae7jZ234WkFJve@TNQ4aXGTu=wOeF{2V}Hj)8wV1okdjf6NTp>UDBzHcjeL z`H1=w9D^VBwnZ*HJ`P~TpJQ){sHqVdSUIH-nx~M8_c?WF%z)_qCA`aGQ%WFkiC(Y!umwDSN;BpwFM5YR& zr#}l8i|@tOt>!;eINxehHhII0fu0pAWDpA*xhfmCCuVAtY$@QlaM83uLDnxlbKH;O zD6MurXMyElkv)ap+j_}H)vG7?|KW}YaTq(M=)4Hz-OV`MJccv>Ak{F)Lj4IT}Rj~`t z?wrFAzve-F9d8)b#=}zQrB2lCat)Kr2Kyo5Zok&_4~sZ Date: Wed, 3 Apr 2024 12:51:26 +0200 Subject: [PATCH 3/5] Debug --- src/commands/__tests__/index.integration.ts | 22 ++++++++++++++------- src/indexation/elasticSearch.helpers.ts | 3 +-- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/commands/__tests__/index.integration.ts b/src/commands/__tests__/index.integration.ts index 48f3c71..7a5c5c4 100644 --- a/src/commands/__tests__/index.integration.ts +++ b/src/commands/__tests__/index.integration.ts @@ -105,25 +105,30 @@ describe("Perform indexation", () => { throw new Error(`${r.warnings}`); } expect(r.body.hits.hits).toBeInstanceOf(Array); - expect(r.body.hits.total.value).toEqual(297); + expect(r.body.hits.total.value).toEqual(299); + console.log( + r.body.hits.hits.filter(hit => hit._source.siren === "005410345") + ); expect(r.body.hits.hits).toEqual( expect.arrayContaining([ expect.objectContaining({ _source: { - siren: "000325175", - nic: "00016", - siret: "00032517500016", + siren: "005410345", + nic: "00010", + siret: "00541034500010", statutDiffusionEtablissement: "O", - dateCreationEtablissement: "2000-09-26", + dateCreationEtablissement: "1900-01-01", trancheEffectifsEtablissement: "", anneeEffectifsEtablissement: "", activitePrincipaleRegistreMetiersEtablissement: "", - dateDernierTraitementEtablissement: "", + dateDernierTraitementEtablissement: "2024-03-22T15:40:57", etablissementSiege: "true", - nombrePeriodesEtablissement: "1", + nombrePeriodesEtablissement: "2", complementAdresseEtablissement: "", numeroVoieEtablissement: "", indiceRepetitionEtablissement: "", + dernierNumeroVoieEtablissement: "", + indiceRepetitionDernierNumeroVoieEtablissement: "", typeVoieEtablissement: "RTE", libelleVoieEtablissement: "DE DOULLENS", codePostalEtablissement: "80100", @@ -135,6 +140,9 @@ describe("Perform indexation", () => { libelleCedexEtablissement: "", codePaysEtrangerEtablissement: "", libellePaysEtrangerEtablissement: "", + identifiantAdresseEtablissement: "", + coordonneeLambertAbscisseEtablissement: "", + coordonneeLambertOrdonneeEtablissement: "", complementAdresse2Etablissement: "", numeroVoie2Etablissement: "", indiceRepetition2Etablissement: "", diff --git a/src/indexation/elasticSearch.helpers.ts b/src/indexation/elasticSearch.helpers.ts index 9bb9650..b5c8161 100644 --- a/src/indexation/elasticSearch.helpers.ts +++ b/src/indexation/elasticSearch.helpers.ts @@ -379,13 +379,12 @@ export const streamReadAndIndex = async ( indexConfig: IndexProcessConfig, isReleaseIndexation = true ): Promise => { - const headers = indexConfig.headers; // stop parsing CSV after MAX_ROWS const maxRows = parseInt(process.env.MAX_ROWS as string, 10); const readableStream = fs.createReadStream(csvPath); const parseCsvStream = parse({ - headers, + headers: true, ignoreEmpty: true, discardUnmappedColumns: true, ...(maxRows && { maxRows }) From f44a8dda58e342530d295bd8a676d5326049913d Mon Sep 17 00:00:00 2001 From: Orion C Date: Wed, 3 Apr 2024 13:18:30 +0200 Subject: [PATCH 4/5] Remove console log --- src/commands/__tests__/index.integration.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/commands/__tests__/index.integration.ts b/src/commands/__tests__/index.integration.ts index 7a5c5c4..fa5b061 100644 --- a/src/commands/__tests__/index.integration.ts +++ b/src/commands/__tests__/index.integration.ts @@ -106,9 +106,6 @@ describe("Perform indexation", () => { } expect(r.body.hits.hits).toBeInstanceOf(Array); expect(r.body.hits.total.value).toEqual(299); - console.log( - r.body.hits.hits.filter(hit => hit._source.siren === "005410345") - ); expect(r.body.hits.hits).toEqual( expect.arrayContaining([ expect.objectContaining({ From 4e590dd2162ded489d6e04e03ad0f50362a833c9 Mon Sep 17 00:00:00 2001 From: Orion C Date: Wed, 3 Apr 2024 13:42:39 +0200 Subject: [PATCH 5/5] Removed unused option --- src/indexation/elasticSearch.helpers.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/indexation/elasticSearch.helpers.ts b/src/indexation/elasticSearch.helpers.ts index b5c8161..4fddafb 100644 --- a/src/indexation/elasticSearch.helpers.ts +++ b/src/indexation/elasticSearch.helpers.ts @@ -386,7 +386,6 @@ export const streamReadAndIndex = async ( const parseCsvStream = parse({ headers: true, ignoreEmpty: true, - discardUnmappedColumns: true, ...(maxRows && { maxRows }) }) .transform((data, callback) => {