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

Optionally add max and actual score for assignments to get_student_grade_summary_data output. #10395

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

ShawnMilo
Copy link
Contributor

Background Currently, only a grade between 0 and 1 is sent to the remote gradebook. The remote gradebook should receive both the raw grade (the float between 0 and 1) and the maximum score per assignment. This change is in response to issue #95 on mitocw/edx-platform. mitocw#95

This patch allows this additional data to be optionally added to the bundle passed to the code which writes the CSV file sent to the remote gradebook. After this patch is merged, additional work will have to be done to consume this new data during the CSV creation.

The remote gradebook feature has been in edX for almost three years. We believe that MIT is its only consumer.

Studio Updates None.

LMS Updates From issue #95:
...Course staff want to use edX to weight and scale grades, as presented by the LMS Progress tab.

In a nutshell, we intend to identify a source of the grade data, use that source to modify get_student_grade_summary_data() in legacy.py which is called by return_csv() in the same file.

Testing This feature can be run from the Legacy Dashboard for courses that are configured to use the remote gradebook feature. (The remote gradebook configuration is described here edx-platform/docs/en_us/internal/remote_gradebook.md.)

unnamed

1 - The Gradebook Name is set as an advanced setting in Studio.
2 - The Export grades for assignment to remote gradebook executes the remote
gradebook feature.
3 - For testing, exporting the CSV file exercises the same code as we are
changing. It is an easy way to check the results.

Cover letter by @pwilkins

@openedx-webhooks
Copy link

Thanks for the pull request, @ShawnMilo! I've created OSPR-915 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams.

Feel free to add as much of the following information to the ticket:

  • supporting documentation
  • edx-code email threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here.
We can't start reviewing your pull request until you've added yourself to the AUTHORS file . Please see the CONTRIBUTING file for more information.

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U needs triage labels Oct 28, 2015
@sarina
Copy link
Contributor

sarina commented Oct 28, 2015

Hi @ShawnMilo Can you please add a description to your PR including what you're doing and why it is needed, and why you think it should be contributed upstream? See http://edx-developer-guide.readthedocs.org/en/latest/process/cover-letter.html for guidance.

@openedx-webhooks openedx-webhooks added waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc. and removed needs triage labels Oct 28, 2015
@ShawnMilo ShawnMilo force-pushed the feature/skm/add_max_score#95 branch from 2e276ee to 8659aa7 Compare October 29, 2015 18:03
@pdpinch
Copy link
Contributor

pdpinch commented Oct 30, 2015

@ShawnMilo this needs a rebase.

Also, the description could be more generic. Perhaps:

Currently, only a float between 0 and 1 is sent to the remote gradebook. The remote gradebook would like to have access to both the raw grade and the maximum score per assignment.

@ShawnMilo ShawnMilo force-pushed the feature/skm/add_max_score#95 branch from 8659aa7 to 4ac05c3 Compare October 30, 2015 17:46
@milocast
Copy link

milocast commented Nov 3, 2015

Hi @sarina. The tests have passed and we've updated the description. Please let me know if this needs anything else to be reviewed.

@sarina
Copy link
Contributor

sarina commented Nov 3, 2015

Has your team at MIT done a first round of review?

On Tue, Nov 3, 2015 at 10:13 AM, milocast notifications@github.com wrote:

Hi @sarina https://github.com/sarina. The tests have passed and we've
updated the description. Please let me know if this needs anything else to
be reviewed.


Reply to this email directly or view it on GitHub
https://github.com/edx/edx-platform/pull/10395#issuecomment-153384489.

@pwilkins
Copy link
Contributor

pwilkins commented Nov 4, 2015

LGTM @sarina @pdpinch

@pdpinch
Copy link
Contributor

pdpinch commented Nov 4, 2015

This has a thumbs up from me as well -- and not only because it doesn't have any user-facing effects.

@sarina let me know what additional review this needs.

@@ -69,7 +69,7 @@ def test_download_raw_grades_dump(self):

def get_expected_grade_data(
self, get_grades=True, get_raw_scores=False,
use_offline=False):
use_offline=False, get_score_max=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please extend docstring to explain what this new option means

@sarina
Copy link
Contributor

sarina commented Nov 4, 2015

Would love more code documentation. Plus, please add yourself to AUTHORS.

This will put the actual score and actual max score in scope for
the the return_csv function, so actual scores can be dumped.

The ultimate goal is to provide this data in the CSV dump that is
passed to Stellar via pylmod.

This is PR openedx#10395 on edX, and issue 95 on mitocw's edx fork.

https://github.com/edx/edx-platform/pull/10395

#95
@ShawnMilo ShawnMilo force-pushed the feature/skm/add_max_score#95 branch from 4ac05c3 to 5d88300 Compare November 6, 2015 17:51
@sarina
Copy link
Contributor

sarina commented Nov 9, 2015

@ShawnMilo FYI, reviewers don't get notified about new commits. So you need to write a comment on teh PR asking your reviewers to take another look.

@sarina
Copy link
Contributor

sarina commented Nov 9, 2015

👍

I will merge this, but ask that your team does validation when this goes to staging (est week after Thanksgiving).

sarina added a commit that referenced this pull request Nov 9, 2015
Optionally add max and actual score for assignments to get_student_grade_summary_data output.
@sarina sarina merged commit 2ae8ee2 into openedx:master Nov 9, 2015
@pdpinch
Copy link
Contributor

pdpinch commented Nov 12, 2015

Thanks @sarina! @pwilkins and/or I will do the validation when the time comes.

ziafazal pushed a commit that referenced this pull request Dec 23, 2015
This will put the actual score and actual max score in scope for
the the return_csv function, so actual scores can be dumped.

The ultimate goal is to provide this data in the CSV dump that is
passed to Stellar via pylmod.

This is PR #10395 on edX, and issue 95 on mitocw's edx fork.

https://github.com/edx/edx-platform/pull/10395

mitocw#95
amir-qayyum-khan pushed a commit to mitocw/edx-platform that referenced this pull request Feb 19, 2016
This will put the actual score and actual max score in scope for
the the return_csv function, so actual scores can be dumped.

The ultimate goal is to provide this data in the CSV dump that is
passed to Stellar via pylmod.

This is PR openedx#10395 on edX, and issue 95 on mitocw's edx fork.

https://github.com/edx/edx-platform/pull/10395

#95
amir-qayyum-khan pushed a commit to mitocw/edx-platform that referenced this pull request Mar 1, 2016
This will put the actual score and actual max score in scope for
the the return_csv function, so actual scores can be dumped.

The ultimate goal is to provide this data in the CSV dump that is
passed to Stellar via pylmod.

This is PR openedx#10395 on edX, and issue 95 on mitocw's edx fork.

https://github.com/edx/edx-platform/pull/10395

#95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U waiting on author PR author needs to resolve review requests, answer questions, fix tests, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants