unitaryfund / metriq-app

Web app for Metriq
https://metriq.info
Apache License 2.0
27 stars 19 forks source link

Duplicate method #383

Closed nathanshammah closed 2 years ago

nathanshammah commented 2 years ago

Duplicate method for ibmq-tokyo. Besides removing the method with no attached data, it would be useful to understand how the duplicate came to be.

See for reference https://metriq.info/Methods/ (snapshot below) and https://metriq.info/Method/24, https://metriq.info/Method/25.

method-duplicate
vprusso commented 2 years ago

Related: https://github.com/unitaryfund/metriq-app/issues/382

WrathfulSpatula commented 2 years ago

The duplicate has been deleted. Looking at the database rows, these two were created within seconds of each other, so I suspect a cause like maybe a race condition on a hard page refresh with a POST call. I can make sure that the task names are unique in the database, and then this can only happen again if names just look the same, but differ in encoding or characters that are hard for the human eye to distinguish.