Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

UpdateResource handler Steps #190

Closed
15 of 17 tasks
cmharlow opened this issue Feb 7, 2018 · 3 comments
Closed
15 of 17 tasks

UpdateResource handler Steps #190

cmharlow opened this issue Feb 7, 2018 · 3 comments
Assignees

Comments

@cmharlow
Copy link
Contributor

cmharlow commented Feb 7, 2018

  • Well formed JSON? (syntactic only)
  • Permissions check? (call to Permissions service, to be stubbed out)
  • Check ("validate") that required fields for processing present:
    • validate @context
    • validate @type is URI for type we can handle
    • @id
    • label (string)
    • access (string): [‘world’, ‘stanford’, ‘location-based’, ‘citation-only’, ‘dark’]
    • preserve (boolean)
    • publish (boolean)
    • Check structural metadata.
    • Deduplication of resources: Validate sourceid is unique within TACO if provided
  • Retrieve the existing resource metadata from DynamoDB.
  • Merge that existing metadata with provided new metadata from DynamoDB (including overwrites).
  • Persist the updated resource metadata with that DRUID.
  • Return the DRUID to the Client / User who made the request.
  • Message to TACO Processing for asynchronous resource processing:
@cmharlow cmharlow added the next label Feb 7, 2018
@cmharlow
Copy link
Contributor Author

cmharlow commented Feb 7, 2018

@aaron-collier does this help with checking off what is required of updateResource handler code in TACO?

@cmharlow cmharlow changed the title UpdateHandler Steps UpdateResource handler Steps Feb 7, 2018
@cmharlow cmharlow added this to the TACO API & Code milestone Feb 7, 2018
@aaron-collier
Copy link
Contributor

Yup, thanks!

@cmharlow
Copy link
Contributor Author

cmharlow commented May 3, 2018

Things not complete have individual tickets. Closing this.

@cmharlow cmharlow closed this as completed May 3, 2018
@cmharlow cmharlow removed the backlog label May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants