Skip to content

Conversation

@ichuang
Copy link
Contributor

@ichuang ichuang commented Aug 12, 2013

This PR provides an integrated dashboard for a sysadmin to be able to:

  • get a summary of how many users are on the system
  • get summary information about all courses loaded into the modulestore
  • get a list of enrollment (and number of staff) in each course for all courses
  • load courses from git / github
  • delete courses
  • view the transcript of errors produced when importing a course (git logs)

Included is a script which can be used to load course XML content from github. Note that the git import logging and log viewing requires mongoengine (http://mongoengine.org/).

This functionality is enabled by the new FEATURES["ENABLE_SYSADMIN_DASHBOARD"] flag.

This code is in use in the production residential MITx systems at MIT.

deleting and loading courses, for seeing log of git imports of courseware.
Includes script for importing course XML from github site.
@singingwolfboy
Copy link
Contributor

What's the status of this pull request? Is anyone looking into it?

…uang/sysadmin-dashboard-mongook

Conflicts:
	lms/envs/dev.py
@ichuang
Copy link
Contributor Author

ichuang commented Oct 8, 2013

MIT would like this feature added to edX platform.

@ichuang ichuang reopened this Oct 8, 2013
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're trying to make all code internationalizable from here out. Ping me if you need a pointer on how to do this...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Don't need two lines for this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment doesn't make sense anymore.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, in python 2.7, you can use {c.id: c for c in courses} to create a dictionary.

carsongee and others added 6 commits December 4, 2013 14:36
…rsongee/edx-platform into feature/cg/sysadmin-dashboard-mongook

Conflicts:
	lms/djangoapps/dashboard/sysadmin.py
	lms/djangoapps/dashboard/tests/test_sysadmin.py
…-mongook

Feature/cg/sysadmin dashboard mongook
…uang/sysadmin-dashboard-mongook

Conflicts:
	lms/envs/dev.py
…-mongook

MITX_ and mitxmako removal from master refactor
@carsongee
Copy link
Contributor

I've made the requested changes, Ike merged onto the current master, and I handled the refactor of the feature flag and mako names.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could just be course_id = kwargs.get('course_id')

@cpennington
Copy link
Contributor

My one major ask at this point is to clean up the commit history. We've been trying to reduce the number of commits in master that are essentially cleanup on previous commits. However, I'd wait to do that. We'd like to get another set of eyes from over here at edX to look this over before we merge, and it'll probably be easier to squash everything at the end.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd probably be better off using GitPython rather than using subprocess to call the git binary. We already have GitPython in our requirements files, so it should already be installed.

carsongee and others added 3 commits December 11, 2013 11:39
Corrected exceptions to use exception logging
Corrected bad default value in aws.py for MONGODB_LOG
Simplified mongouri format string
…-mongook

Bug fixes and refactors to sysadmin dashboard
@carsongee
Copy link
Contributor

I fixed up somethings based on @singingwolfboy comments. I'll have to take a look at moving to GitPython, it doesn't look like it should be too tricky, but I'm afraid I don't really have a lot of time right now to migrate it. Any chance we could leave that as future work, or do you want that in before merge?

With how big this branch is, and that it was merged several times instead of rebased I think I would prefer to just cherry pick the relevant commits here into a new branch, squash them, and reference that here,unless someone has some guidance on how to easily do an interactive rebase on several hundred commits that aren't related. If so, I'm all ears as it would be nice to keep this all contained in one PR.

@singingwolfboy
Copy link
Contributor

@carsongee I'm OK with leaving the move to GitPython for future work, rather than blocking this PR for it. And yes, I think that making a new branch with a clean history makes a lot of sense; referencing this pull request from that one should work just fine.

@carsongee
Copy link
Contributor

This is all cleaned up as a single commit in #1942

@carsongee carsongee closed this Dec 13, 2013
chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
…location-url

make the test ajax_url format consistent with real code
@benpatterson benpatterson deleted the feature/ichuang/sysadmin-dashboard-mongook branch January 21, 2015 13:12
itsjeyd referenced this pull request in open-craft/openedx-platform Mar 24, 2016
dfrojas pushed a commit to eduNEXT/edx-platform that referenced this pull request Aug 31, 2017
…net-id

Make the clean_affiliation sets into dictionaries
Sujeet1379 pushed a commit to chandrudev/edx-platform that referenced this pull request Nov 17, 2022
DanielVZ96 referenced this pull request in open-craft/openedx-platform Jan 31, 2024
The theme directory path for `/edx/app/edx-themes/` didn't include the `/edx-platform/` directory and was throwing an error that it couldn't find my theme. This path update should fix that.

Update for #654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants