eReuse / workbench

The eReuse.org Workbench is a toolset to assist with the diagnostic, benchmarking, inventory and installation of computers.
https://www.ereuse.org
GNU Affero General Public License v3.0
13 stars 7 forks source link

Avoid duplicate JSON #57

Closed bustawin closed 7 years ago

bustawin commented 7 years ago

There should be a way to add a fingerprint to a JSON, so DeviceHub can know if it was uploaded before and it is a duplicate.

For example, the fingerprint could be achieved if DeviceInventory adds a date to the computer (even if the date is wrong).

ivilata commented 7 years ago

I guess that adding a UUID is the way to go and avoid reinventing the wheel.

ivilata commented 7 years ago

Reopening this and assigning since the solution is lacking the server side.

The previous commit adds a random UUID as the string field _uuid. Assigning to @bustawin for validation and server side.

bustawin commented 7 years ago

Just make a pre-release and next week I will change it to full-release once I do it server-side.

ivilata commented 7 years ago

Watch out for 8.0a1 in a few minutes!