eluv-io / elv-fabric-browser

Eluvio Content Fabric Browser
MIT License
2 stars 1 forks source link

Update LRO status retrieval to work with metadata path `/lro_draft` #74

Closed eponymous301 closed 1 year ago

eponymous301 commented 1 year ago

Support metadata path /lro_draft (no offering key suffix) and give that path precedence.

/lro_draft_* paths still checked as fallback to maintain backwards compatibility.

For upcoming ingest API update I would like to switch to always using /lro_draft to store draft info, regardless of what the offering key is.

(For all current use cases, mezzanines only have one offering ingest active at any one time, and the offering key is stored within the reference) e.g.:

{
    "node": "http://localhost:8008",
    "offering": "default",
    "write_token": "tqw__HSWbfMeb18NzTMqXdbsweAv673uXt3vVhqn5p5PgQdaWtPR9pEKJzviLvEnnscsoNX5tVpNGA9QCCnqye4p"
  }

Tested locally for backwards compatibility with release version of elv-client-js. Continues to show progress / status for ingests that use the present lro_draft_OFFERING_KEY convention