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

Fixed hash generation for common toponym id legacy #414

Conversation

antoineludeau
Copy link
Member

Context

When exporting data from postgresql (main database) to mongodb (exploitation database), we generate legacy ids for common toponym. In the case we cannot find a fantoir code or if the fantoir code is already used on another common toponym, we generate a pseudo code. If the pseudo code is also already used, we generate a hash base on the ban id.

Enhancement

This PR fix :

  • the generation of the hash that uses the createHmac method (from node:crypto) by adding a mandatory 'secret'.

@antoineludeau antoineludeau merged commit 2601c19 into master May 16, 2024
1 check passed
@antoineludeau antoineludeau deleted the antoineludeau/fix-hash-generator-for-common-toponym-id-legacy branch May 22, 2024 13:14
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