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

Updated query according to model update #41

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Conversation

AhtishamShahid
Copy link
Contributor

@AhtishamShahid AhtishamShahid commented Mar 17, 2020

JIRA: PROD-1352

Issue :
unable to download staff graded reports because there was recent change https://github.com/edx/edx-platform/blame/7f53a9ab9b4abfc550d3dc16e54cf63502330346/lms/djangoapps/program_enrollments/models.py#L110 so updated query and test accordingly to fix this issue.

Merge checklist:

  • All reviewers approved
  • CI build is green
  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Commits are squashed

Post merge:

  • Create a tag
  • Check new version is pushed to PyPI after tag-triggered build is
    finished.
  • Delete working branch (if not needed anymore)

@AhtishamShahid AhtishamShahid force-pushed the ahtisham/PROD-1352 branch 5 times, most recently from 28d090e to 69ff5b3 Compare March 19, 2020 13:30
Copy link
Contributor

@matthugs matthugs left a comment

Choose a reason for hiding this comment

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

Comment on lines +63 to +67
program_course_enrollment = enrollment.programcourseenrollment_set.all()
if program_course_enrollment.exists():
program_course_enrollment = program_course_enrollment.first().program_enrollment
enrollment_dict['student_uid'] = program_course_enrollment.external_user_key
else:

Choose a reason for hiding this comment

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

Will the program_enrollment object be the same for all the PCE? Just confirming this to avoid any incomplete/incorrect data export.

@DawoudSheraz
Copy link

@AhtishamShahid Please rebase your branch as there has been new changes in master.

mock_apps/student/models.py Show resolved Hide resolved
bulk_grades/api.py Show resolved Hide resolved
updated mocker and data

Refector

added pip version for tox test

added pip version for tox test

added pip version for tox test

added pip version for tox test

updated version

updated get to first

updated get to first

updated version
@AhtishamShahid AhtishamShahid merged commit 82b0546 into master Mar 20, 2020
@nsprenkle nsprenkle deleted the ahtisham/PROD-1352 branch March 15, 2021 15:26
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.

4 participants