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

New api route to force export from postgres to mongo #402

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented May 3, 2024

Context

In order to force an update from postgres to mongo, we need a new API route

Enhancement

This PR adds a new route :

  • POST export-to-exploitation-db/districts that takes a body with the list of district IDs in an array : {districtIDs:["","",...]}. This route adds a job in the "export-to-exploitation-db" queue for each district ID requested.

@antoineludeau antoineludeau marked this pull request as ready for review May 3, 2024 15:55
@antoineludeau antoineludeau force-pushed the antoineludeau/new-route-to-force-export-from-postgres-to-mongo branch from c2c7efc to d7f398f Compare September 25, 2024 14:07
@antoineludeau antoineludeau merged commit f705e7b into master Sep 25, 2024
1 check passed
@antoineludeau antoineludeau deleted the antoineludeau/new-route-to-force-export-from-postgres-to-mongo branch January 24, 2025 14:01
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.

2 participants