nasa / gesdisc-meditor

MIT License
7 stars 2 forks source link

Allow creating documents under a different initial state #52

Closed joncarlson closed 7 months ago

joncarlson commented 7 months ago

Use case

To support our work with EDPub, we'd like "Collection Metadata" documents sent from EDPub to be temporarily quarantined in a state other than "Draft"; until a curator has a chance to review it.

This is accomplished by adding a new node to the workflow and a new query parameter to the createDocument endpoint: 'initialState'

The provided initialState must satisfy these conditions:

  1. has to be a state in the model's workflow
  2. has to be an INITIAL state (i.e. has an edge that connects to the "Init" node)

To Test

(This part you may need help with, was a chore to figure out authentication via Postman)