anchor.diff:           validate_request/3]).
   
   %% Helpers for webmachine callbacks
  --export([add_notes/2,
  -         create_from_json/5,
  +-export([create_from_json/5,
            init/2,
            verify_request_signature/2,
            update_from_json/4]).
  
positive.code:     try
          Code = wrq:response_code(Req),
          PerfTuples = stats_hero:snapshot(ReqId, agg),
          Req0 = add_notes([{reqid, ReqId},
                              {perf_stats, PerfTuples}], Req),
          AnnotatedReq = maybe_annotate_org_specific(OrgName, Darklaunch, Req0),
          stats_hero:report_metrics(ReqId, Code),
          stats_hero:stop_worker(ReqId),
  
negative.code: maybe_annotate_org_specific(OrgName, Darklaunch, Req) ->
      %% Generate the darklaunch header in a form that won't break log parsing
      DLData = chef_wm_darklaunch:get_proplist(Darklaunch),
      oc_wm_request:add_notes([{org_name, OrgName},
                               {darklaunch, DLData}], Req).
  
  %% If request results in a rename, then set Location header and wm will return with a 201.
  %% Currently, only the clients endpoint supports rename
  