Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve information related to files shared across multiple courses #2

Open
danmarsden opened this issue Sep 22, 2014 · 3 comments
Open

Comments

@danmarsden
Copy link
Member

If the same file is used within multiple courses it will be counted in each course. It would be good if we could add information to each course about files that may be shared across other courses. For example a 150MB course could have 30MB shared with other courses so it would be nice for the disk usage column for the course to reflect this - maybe like:
150MB (30MB Shared)

@danmarsden
Copy link
Member Author

I've just added a patch to add a new Shared usage column to the report - I've tried to make it cross-db compatible by using the helper functions and have tested this on Postgres and it works ok - there might be a more efficient way to do it though so if anyone has a look at the query (and can understand it) feel free to make any suggestions to improve it!

@danmarsden
Copy link
Member Author

hmm - looks like the test I wrote for it is failing - must be something wrong with the query still - I'll look closer.

@danmarsden
Copy link
Member Author

It's still not quite right - I need a way to backtrack the context path and find the course context path related to this individual file so that we can exclude duplicates from the course itself. I have a few ideas on this but for another day....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant