Uploaded image for project: 'Clowder'
  1. Clowder
  2. CATS-421

Storing initial file metadata in user md instead of extractor md

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • Old Issues
    • None
    • API

      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?

              mburnet2 Maxwell Burnette
              mburnet2 Maxwell Burnette
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified