inveniosoftware / invenio

Invenio digital library framework
https://invenio.readthedocs.io
MIT License
625 stars 292 forks source link

verbose should be sticky on invenio #679

Closed invenio-developers closed 8 years ago

invenio-developers commented 10 years ago

Originally by valkyrie (@valkyriesavage) on 2011-06-15

When I am testing on my invenio site, I want to test multiple queries through the web interface and receive the verbose output for each without having to type &verbose=9 into the bar after each search.

I suppose this should be possible to put into the request object, but I am not sure how to do it. Sam, I don't know if you know how to do this either, but I think you probably know who does know. If you could pass this off to whomever you think appropriate, that would be great.

kaplun commented 10 years ago

Originally on 2011-06-15

Your request makes lot of sense.

Indeed I worked a lot on the parts involved by your request. This can be implemented by sticking the verbose argument in the session of the user.

Although I am a bit overloaded in these last days, I will address this ASAP :-)

tiborsimko commented 10 years ago

Originally on 2011-06-16

As an alternative to playing with req object, we can make this a (privileged) user session preference, quite like the number-of-hits-per-page etc. Would be cleaner that way.

invenio-developers commented 10 years ago

Originally by adeiana (@Osso) on 2013-11-18

I agree with sticking the verbose in the user session. I think Tibor is saying the same thing too but he seems but what do you mean exactly by a priviled user session?

kaplun commented 10 years ago

Originally on 2013-11-18

Well right now, verbose is washed away for non super-admins as per c11ccd29586b66d05a44d93f5369fa0323ca4ec6.

invenio-developers commented 10 years ago

Originally by adeiana (@Osso) on 2013-11-18

I think it should stay washed. This is a superadmin feature only.

jirikuncar commented 8 years ago

Flask-DebugToolbar can be enabled on Invenio 2+ instances. It provides nice support for profiling requests.