Hello colleagues, I've also solved the problem with storing reports in local filesystem, but for student data security reason I've implemented another report store which uses nginx X-Accel-Redirect header for granting access to reports only to course staff members. Maybe it would be interesting for you, even though the code is fairly old and may need some refactoring/tests.
Report store implementation: https://github.com/Lektorium-LLC/edx-platform/blob/lektorium_test/lms/djangoapps/instructor_task/models.py#L414 View that serves the report: https://github.com/Lektorium-LLC/edx-platform/blob/lektorium_test/lms/djangoapps/instructor/views/storage.py Helper for adding header to response: https://github.com/Lektorium-LLC/edx-platform/blob/lektorium_test/openedx/core/lib/protected_static.py Also additional line in lms nginx configuration is required, see https://github.com/Lektorium-LLC/configuration/blob/lektorium_ubuntu14/playbooks/roles/nginx/templates/edx/app/nginx/sites-available/lms.j2#L121. Hope this would be helpful, Liubov среда, 6 июля 2016 г., 20:50:19 UTC+3 пользователь Adolfo Brandes написал: > > I took Dmitry's suggestion (thanks!) and ran with it. I generalized it a > little bit, making it useful for a couple more use cases: > > https://github.com/edx/edx-platform/pull/12947 > > Hope it's useful. > > > On Monday, July 4, 2016 at 2:26:44 AM UTC-3, Rajesh wrote: >> >> Thank you for the reply Dmitry >> >> If we modify the source code, do we need to recompile everything? If so, >> how do we do it? I am not so familiar with that part. >> >> Thanks >> Rajesh >> >> On Wednesday, June 29, 2016 at 4:32:44 PM UTC+5:30, Dmitry Ivanyushin >> wrote: >>> >>> The only way to download without code modification is to use Amazon S3 >>> storage. >>> >>> Otherwise you need to modify source code in a way like this: >>> >>> https://github.com/miptliot/edx-platform/commit/7e08ffc52f16a47c9e187a5af20a9e900bac897a >>> >>> среда, 29 июня 2016 г., 10:54:02 UTC+3 пользователь Rajesh написал: >>>> >>>> Dear Friends, >>>> >>>> How do I download the reports in Instructor dashboard. >>>> There are few reports corresponding to the task on Generate problem >>>> grade report. However, all those csv file links are pointing to /tmp >>>> filesystem. Is there a way to view it from dashboard instead of going >>>> directly at the backend server and checking it. >>>> >>>> Thanks >>>> Rajesh >>>> >>> -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/02edd1cb-0ae8-45bf-ad7b-990d15af1b43%40googlegroups.com.
