Skip to content

Commit

Permalink
feat: use anciens sieges from recherche entreprise (#1190)
Browse files Browse the repository at this point in the history
* feat: use anciens sieges from recherche entreprise

* feat: use ancien siege in insee

* refactor: etablissement fetching logic

* fix: typo and eslint config

* chore: update snapshots

* fix: test bad siret

* fix: test e2e

* fix: test e2e
  • Loading branch information
XavierJp authored Aug 14, 2024
1 parent b5351e6 commit f79973e
Show file tree
Hide file tree
Showing 39 changed files with 1,498 additions and 482 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
],
"import/order": [
"error",
"warn",
{
"pathGroupsExcludedImportTypes": ["builtin"],
"pathGroups": [
Expand Down
5 changes: 1 addition & 4 deletions app/(header-default)/entreprise/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ export default async function UniteLegalePage(props: AppRouterProps) {
session={session}
/>
)}
<EtablissementListeSection
uniteLegale={uniteLegale}
session={session}
/>
<EtablissementListeSection uniteLegale={uniteLegale} />
</>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,89 +4,45 @@
"page": 1
},
"result": {
"etablissements": {
"all": [
{
"siren": "883010316",
"siret": "88301031600015",
"oldSiret": "88301031600015",
"etatAdministratif": "fermé",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00015",
"dateCreation": "2018-05-06",
"dateDerniereMiseAJour": "2024-08-13T14:42:14.574Z",
"dateMiseAJourInsee": "2024-03-30T08:06:53.621",
"dateDebutActivite": "",
"dateFermeture": "2020-09-01",
"adresse": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"adressePostale": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"codePostal": "93220",
"commune": "GAGNY",
"activitePrincipale": "70.22Z",
"libelleActivitePrincipale": "Conseil pour les affaires et autres conseils de gestion",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"open": [],
"unknown": [],
"closed": [
{
"siren": "883010316",
"siret": "88301031600015",
"oldSiret": "88301031600015",
"etatAdministratif": "fermé",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00015",
"dateCreation": "2018-05-06",
"dateDerniereMiseAJour": "2024-08-13T14:42:14.574Z",
"dateMiseAJourInsee": "2024-03-30T08:06:53.621",
"dateDebutActivite": "",
"dateFermeture": "2020-09-01",
"adresse": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"adressePostale": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"codePostal": "93220",
"commune": "GAGNY",
"activitePrincipale": "70.22Z",
"libelleActivitePrincipale": "Conseil pour les affaires et autres conseils de gestion",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"nombreEtablissementsOuverts": 0,
"nombreEtablissements": 1,
"usePagination": false,
"currentEtablissementPage": 1
}
"list": [
{
"siren": "883010316",
"siret": "88301031600015",
"oldSiret": "88301031600015",
"etatAdministratif": "fermé",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00015",
"dateCreation": "2018-05-06",
"dateDerniereMiseAJour": "2024-08-14T13:22:31.517Z",
"dateMiseAJourInsee": "2024-03-30T08:06:53.621",
"dateDebutActivite": "",
"dateFermeture": "2020-09-01",
"adresse": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"adressePostale": "RED NEEDLES, 17 RUE DE FRANCEVILLE, 93220 GAGNY",
"codePostal": "93220",
"commune": "GAGNY",
"activitePrincipale": "70.22Z",
"libelleActivitePrincipale": "Conseil pour les affaires et autres conseils de gestion",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"page": 1,
"count": 1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,89 +4,45 @@
"page": 1
},
"result": {
"etablissements": {
"all": [
{
"siren": "908595879",
"siret": "90859587900010",
"oldSiret": "90859587900010",
"etatAdministratif": "en activité",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00010",
"dateCreation": "2022-01-01",
"dateDerniereMiseAJour": "2024-08-13T14:42:14.541Z",
"dateMiseAJourInsee": "2024-03-29T23:18:52.426",
"dateDebutActivite": "",
"dateFermeture": null,
"adresse": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"adressePostale": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"codePostal": "75008",
"commune": "PARIS",
"activitePrincipale": "70.21Z",
"libelleActivitePrincipale": "Conseil en relations publiques et communication",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"open": [
{
"siren": "908595879",
"siret": "90859587900010",
"oldSiret": "90859587900010",
"etatAdministratif": "en activité",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00010",
"dateCreation": "2022-01-01",
"dateDerniereMiseAJour": "2024-08-13T14:42:14.541Z",
"dateMiseAJourInsee": "2024-03-29T23:18:52.426",
"dateDebutActivite": "",
"dateFermeture": null,
"adresse": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"adressePostale": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"codePostal": "75008",
"commune": "PARIS",
"activitePrincipale": "70.21Z",
"libelleActivitePrincipale": "Conseil en relations publiques et communication",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"unknown": [],
"closed": [],
"nombreEtablissementsOuverts": 1,
"nombreEtablissements": 1,
"usePagination": false,
"currentEtablissementPage": 1
}
"list": [
{
"siren": "908595879",
"siret": "90859587900010",
"oldSiret": "90859587900010",
"etatAdministratif": "en activité",
"statutDiffusion": "diffusible",
"estSiege": true,
"enseigne": "",
"denomination": "",
"nic": "00010",
"dateCreation": "2022-01-01",
"dateDerniereMiseAJour": "2024-08-14T13:22:31.485Z",
"dateMiseAJourInsee": "2024-03-29T23:18:52.426",
"dateDebutActivite": "",
"dateFermeture": null,
"adresse": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"adressePostale": "10 RUE DE PENTHIEVRE, 75008 PARIS",
"codePostal": "75008",
"commune": "PARIS",
"activitePrincipale": "70.21Z",
"libelleActivitePrincipale": "Conseil en relations publiques et communication",
"trancheEffectif": null,
"libelleTrancheEffectif": "",
"latitude": "",
"longitude": "",
"complements": {
"estEntrepreneurIndividuel": false,
"idFiness": [],
"idBio": [],
"idcc": [],
"idOrganismeFormation": [],
"idRge": [],
"idUai": []
},
"anneeTrancheEffectif": null
}
],
"page": 1,
"count": 1
}
}
Loading

0 comments on commit f79973e

Please sign in to comment.