Skip to content

API : Rendre l'API data⋅inclusion compatible avec le schéma V1 - #7039

Merged
vperron merged 1 commit into
masterfrom
vperron/fix-di-api
Oct 24, 2025
Merged

vperron merged 1 commit into
masterfrom
vperron/fix-di-api

Conversation

@vperron

@vperron vperron commented Oct 23, 2025 •

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Pour Nexus on a besoin de MAJ les structures que DI reçoit des Emplois (et accessoiremen, pour la V1)

On va donc MAJ l'API historique que l'on utilise pour être au plus près de nos besoins; les deux endpoints seront utilisés, nous n'utiliserons pas l'API SIAE finalement.

🍰 Comment ?

Je retire les champs inutiles, clarifie ce qui peut l'être, etc.

🏝️ Comment tester ?

EN faisant une requête à l'API (authentification obligatoire, mais etre connecté à l'admin suffit)

Catégories changelog

API

@vperron vperron self-assigned this Oct 23, 2025
@vperron vperron added modifié Modifié dans le changelog. tech and removed modifié Modifié dans le changelog. labels Oct 23, 2025
@vperron
vperron force-pushed the vperron/fix-di-api branch 2 times, most recently from 7ebcefc to 67bb038 Compare October 23, 2025 13:31
@vperron
vperron marked this pull request as ready for review October 23, 2025 13:32
@vperron
vperron force-pushed the vperron/fix-di-api branch from 67bb038 to fecdcf8 Compare October 23, 2025 14:39
Comment thread CHANGELOG.md Outdated
Comment thread itou/api/data_inclusion_api/views.py Outdated
@vperron vperron changed the title api: make data⋅inclusion API match the v1 more closely api: Rendre l'API data⋅inclusion compatible avec le schéma V1 Oct 24, 2025
@vperron
vperron force-pushed the vperron/fix-di-api branch from fecdcf8 to 3e2ce17 Compare October 24, 2025 11:15
@vperron
vperron requested a review from xavfernandez October 24, 2025 11:19

@xavfernandez xavfernandez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

La N+1 de get_siret me chagrine toujours mais bon si on reste une récupération par jour on n'est pas à 500 requêtes près 🙈

@vperron

vperron commented Oct 24, 2025

Copy link
Copy Markdown
Contributor Author

En effet. On a un plan pour le faire côté DI plutôt (en publiant le SIRET non modifié dans l'API + l'ID de convention directement dans cette API) et ce serait même probablement le plan à terme mais comme on est ultra short sur le temps en ce moment et que ce code a le mérite:

  • d'exister
  • d'être totalement testé
    ... on a arbitré pour le laisser en place 😢

Merci pour les relectures !

@vperron
vperron force-pushed the vperron/fix-di-api branch from 3e2ce17 to 79ca9d7 Compare October 24, 2025 14:10
@vperron
vperron enabled auto-merge October 24, 2025 14:10
@vperron
vperron added this pull request to the merge queue Oct 24, 2025
Merged via the queue into master with commit 4a4f55d Oct 24, 2025
14 checks passed
@vperron
vperron deleted the vperron/fix-di-api branch October 24, 2025 14:29
@leo-naeka leo-naeka changed the title api: Rendre l'API data⋅inclusion compatible avec le schéma V1 API : Rendre l'API data⋅inclusion compatible avec le schéma V1 Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants