Skip to content

Ajouter un endpoint pour enregistrer les évènements des passages (PIX-16954) #12036

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

Merged
merged 4 commits into from
Apr 14, 2025

Conversation

clemlatz
Copy link
Member

@clemlatz clemlatz commented Apr 11, 2025

Solution

On souhaite enregistrer des évènements lors d'action d'utilisateurs qui ne sont pas liés à des appels à l'API. Nous avons donc besoin d'une route dédiée que le front puisse appeler pour demander l'enregistrement de tels évènements.

🌳 Proposition

Ajouter ce endpoint.

🐝 Remarques

Bien qu'on l'enverra qu'un seul évènement à la fois dans un premier temps, nous souhaitons que le front ait la capacité d'envoyer un lot d'évènements en une seule requête pour des raisons de performance. L'API s'attend donc à recevoir non pas une ressource PassageEvent mais une ressource PassageEventCollection dont la propriété passageEvents contient un tableau de ressources PassageEvent.

🤧 Pour tester

On testera quand on aura le front…

@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@clemlatz clemlatz marked this pull request as ready for review April 11, 2025 15:32
@clemlatz clemlatz requested a review from a team as a code owner April 11, 2025 15:32
@clemlatz clemlatz force-pushed the PIX-16954-add-passage-events-endpoint branch 2 times, most recently from 570380d to be817bf Compare April 14, 2025 07:19
@er-lim er-lim force-pushed the PIX-16954-add-passage-events-endpoint branch from be817bf to 86730fe Compare April 14, 2025 09:15
Copy link
Member

@yannbertrand yannbertrand left a comment

Choose a reason for hiding this comment

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

alright 🚀

@yannbertrand yannbertrand force-pushed the PIX-16954-add-passage-events-endpoint branch 2 times, most recently from 7dca715 to c7e2170 Compare April 14, 2025 10:22
@pix-service-auto-merge pix-service-auto-merge force-pushed the PIX-16954-add-passage-events-endpoint branch from c7e2170 to 0565040 Compare April 14, 2025 12:30
@pix-service-auto-merge pix-service-auto-merge force-pushed the PIX-16954-add-passage-events-endpoint branch from 0565040 to 7c5f234 Compare April 14, 2025 12:55
@pix-service-auto-merge pix-service-auto-merge merged commit f495341 into dev Apr 14, 2025
10 of 11 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the PIX-16954-add-passage-events-endpoint branch April 14, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants