/refvalupgrade is not idempotent
Steps to Reproduce:
- Send an /refvalupgrade request without the acl and legal tags in the request
- Storage record is transformed and stored but Acitvityrecord creation fails
- Fix the request by adding acl and legal tags for the same record. Transformation fails
You need to delete the record created in step 2, and then repeat the process, which then works. Some validation and error handling is required here.