/api/staging_files/ does not report any files staged, but they show up in the UI.
Fresh direct install of Mayan 3.3.8:
I'm eager to use the API to build a "staging view" to make it easier to import documents, as Mayan doesn't quite do what I need it to do (have a single view of all the staging documents and add them starting there, instead of starting with "add document").
Should be pretty easy to do given the API at /staging_files/
. However, I don't get any files from it.
There's definitely a document in staging:
However the API reports that there are no files:
I, [2020-01-25T23:33:21.629733 #30009] INFO -- request: GET http://10.10.220.119:8000/api/staging_folders/
D, [2020-01-25T23:33:21.629778 #30009] DEBUG -- request: accept: "application/json"
Authorization: "Token BLERP"
User-Agent: "Faraday v0.17.3"
I, [2020-01-25T23:33:21.654555 #30009] INFO -- response: Status 200
D, [2020-01-25T23:33:21.654630 #30009] DEBUG -- response: server: "gunicorn/19.9.0"
date: "Sun, 26 Jan 2020 05:33:21 GMT"
connection: "close"
content-type: "application/json"
vary: "Accept, Accept-Language, Origin, Cookie"
allow: "GET, HEAD, OPTIONS"
content-language: "en"
x-frame-options: "SAMEORIGIN"
content-length: "64"
D, [2020-01-25T23:33:21.654805 #30009] DEBUG -- response: {"count"=>1, "next"=>nil, "previous"=>nil, "results"=>[{"files"=>[]}]}
I think this is a bug? I haven't found any information elsewhere about it, searched for /staging_files/ Thanks!