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

source UUID now available through API #146

Closed
dthonon opened this issue Apr 5, 2021 · 2 comments
Closed

source UUID now available through API #146

dthonon opened this issue Apr 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@dthonon
Copy link
Owner

dthonon commented Apr 5, 2021

In GitLab by @fred.lpo07 on Apr 6, 2021, 00:12

Data UUIDs are now available in the faune-france API, they should be used preferably if available.

path: item #>> '{observers,0,uuid}'

@dthonon
Copy link
Owner Author

dthonon commented Apr 9, 2021

In fact, created UUID are stored in import.uuid_xref table. I am not sure this has been really used to transmit observations.

The pseudo_id_sighting in observations table is an encoding of the sightings id: encode(hmac(NEW.id::text, '{{ cfg.db_secret_key }}', 'sha1'), 'hex').

I propose to :

  • Remove import.uuid_xref, if unused. To be confirmed.
  • Keep pseudo_id_sighting as the identifier that can be exported to other parties.
  • Add uuid from JSON

@dthonon
Copy link
Owner Author

dthonon commented Apr 10, 2021

mentioned in commit fd7f077

@dthonon dthonon closed this as completed May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant