deconst / content-service

An API for storing, indexing and retrieving documentation
MIT License
4 stars 9 forks source link

Staging mode #73

Closed smashwilson closed 8 years ago

smashwilson commented 8 years ago

When STAGING_MODE is set to "true", content ID requests that are retried upstream should have their first path segment (which, by convention, will be the revision ID of a staged revision) removed before the proxying happens.

Fixes #69.

smashwilson commented 8 years ago

Reminder to self: this is the first functionality that strongly enforces that content IDs are URLs rather than "arbitrary strings". The presenter's content ID base suffix pasting kind of assumes this already, but nothing actually checks it in the infrastructure. I should update the Deconst docs accordingly.