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

DeleteResource - Query action #324

Open
15 tasks
aaron-collier opened this issue Mar 14, 2018 · 0 comments
Open
15 tasks

DeleteResource - Query action #324

aaron-collier opened this issue Mar 14, 2018 · 0 comments
Assignees
Labels

Comments

@aaron-collier
Copy link
Contributor

aaron-collier commented Mar 14, 2018

Query Resource (ID, Version) from Metadata Persistence Layer

  • If Version exists / was provided:
    • Query DynamoDB resources table for id == ID, version == Version
    • Save response map[string]*dynamoAttribute to GenericResource map (i.e. map[string]interface{})
    • if no records are returned from Dynamo:
      • return a Resource Not Found error to client
    • if a record is found from Dynamo:
      • Save response map[string]*dynamoAttribute to GenericResource map (i.e. map[string]interface{})
      • Return GenericResource to Resource
  • If Version is null / was not provided:
    • Query DynamoDB resources table for id == ID && currentVersion == true
    • if no records are returned from Dynamo:
      • return a Resource Not Found error to client
    • if a record is found from Dynamo:
      • Save response map[string]*dynamoAttribute to GenericResource map (i.e. map[string]interface{})
  • Return GenericResource to Resource

Reference
https://github.com/sul-dlss-labs/taco/wiki/TACO-Internal-Processing-Steps#delete-resource

@aaron-collier aaron-collier added this to the TACO API & Code milestone Mar 15, 2018
@cmharlow cmharlow added next and removed backlog labels Apr 11, 2018
@jcoyne jcoyne self-assigned this Apr 13, 2018
@jcoyne jcoyne added in progress and removed next labels Apr 13, 2018
jcoyne added a commit that referenced this issue Apr 13, 2018
@jcoyne jcoyne added review and removed in progress labels Apr 13, 2018
jcoyne added a commit that referenced this issue Apr 13, 2018
jcoyne added a commit that referenced this issue Apr 13, 2018
jcoyne added a commit that referenced this issue Apr 25, 2018
jcoyne added a commit that referenced this issue Apr 27, 2018
jcoyne added a commit that referenced this issue Apr 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants