-
Improvement
-
Resolution: Fixed
-
Normal
-
None
My upload API code (CATS-312) will upload file metadata included in the request as if it were from an extractor:
val creator = ExtractorAgent(id = UUID.generate(), extractorId = Some(new URL("http://clowder.ncsa.illinois.edu/extractors/deprecatedapi")))
...
val metadata = models.Metadata(UUID.generate, attachedTo, contextID, contextURL, createdAt, creator, Json.parse(jsonObj), version)
//add metadata to mongo
metadataService.addMetadata(metadata)
As we will know the user who is uploading the file and thus the metadata, should this be stored in user metadata as well? Or should we define some way to flag the metadata not as user metadata but as some kind of "user uploaded" extractor?