Skip to content

LEARNER-1860: Refactored course enrollment filtering. - #15899

Closed
robrap wants to merge 0 commit into
andya/profile-certificatesfrom
robrap/profile-certificates
Closed

LEARNER-1860: Refactored course enrollment filtering.#15899
robrap wants to merge 0 commit into
andya/profile-certificatesfrom
robrap/profile-certificates

Conversation

@robrap

@robrap robrap commented Aug 25, 2017

Copy link
Copy Markdown
Contributor

LEARNER-1860

def get_site_course_enrollments(user):
"""
Returns information about a user's course certificates.
Returns a user's enrollments filtered by the orgs of the current site.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewers:

  1. I refactored this function to make it more clear.
  2. I had issues with my devstack, so I have not yet run this code.
  3. It is possible that this whitelist/blacklist code introduced a bug, but if we can get it right, it is a lot easier to understand.

@andy-armstrong andy-armstrong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@robrap this is a nice clean up, thanks! 👍 once you have the tests passing.

@robrap robrap changed the title Refactored course enrollment filtering. LEARNER-1860: Refactored course enrollment filtering. Aug 29, 2017
@robrap

robrap commented Aug 29, 2017

Copy link
Copy Markdown
Contributor Author

Once I get back to this, I will try to get it in to https://github.com/edx/edx-platform/pull/15868

@HarryRein
HarryRein force-pushed the andya/profile-certificates branch from 19516d0 to 323acfe Compare August 30, 2017 15:45
@andy-armstrong
andy-armstrong force-pushed the andya/profile-certificates branch 3 times, most recently from 55ef371 to 44f7e16 Compare August 31, 2017 20:58
@robrap

robrap commented Aug 31, 2017

Copy link
Copy Markdown
Contributor Author

We're not going to use this as-is, but we will use parts in https://openedx.atlassian.net/browse/LEARNER-2449. Closing this PR.

@robrap robrap closed this Aug 31, 2017
@robrap

robrap commented Oct 11, 2017

Copy link
Copy Markdown
Contributor Author

FYI: Some of the refactoring for org filtering for sites was merged in this PR:
https://github.com/edx/edx-platform/pull/16179

@robrap
robrap deleted the robrap/profile-certificates branch October 11, 2017 18:15
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.

2 participants