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

Bszabo/tnl 10136 student course enrollment #31229

Closed
wants to merge 15 commits into from

Conversation

bszabo
Copy link
Contributor

@bszabo bszabo commented Oct 28, 2022

This is an incremental step towards teasing apart a course enrollment model out of the existing student model in edx-platform. These changes are intended to be non-breaking. Please fail the PR if that objective goes unmet.

Model code had previously all resided in a single student/models.py module. Now it resides in two modules, one for student modeling and one for course enrollment modeling.

Database tables remain as is.

Importing of student and course enrollment models remain as is.

@bszabo bszabo force-pushed the bszabo/TNL-10136-student-course-enrollment branch from e718de4 to eec0c6a Compare October 28, 2022 19:07
@bszabo bszabo requested review from ormsbee and connorhaugh October 28, 2022 19:08
from openedx.core.lib.api.test_utils import ApiTestCase
from openedx.features.enterprise_support.tests.factories import EnterpriseCustomerUserFactory
from common.djangoapps.student.models import LoginFailures
from common.djangoapps.util.password_policy_validators import DEFAULT_MAX_PASSWORD_LENGTH
from openedx_events.tests.utils import OpenEdxEventsTestMixin # lint-amnesty, pylint: disable=wrong-import-order
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want this imported at this line in particular?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used a PyCharm "Optimize Imports" tool action, which, among other things, arranges imports alphabetically. It would appear that the underscore in "openedx_events" places this import in lower alphabetic order relative to the dot in "openedex.features"

@connorhaugh
Copy link
Contributor

Great use of atomic commits here it makes reading the story of this revision much easier.

@bszabo bszabo requested a review from iloveagent57 November 14, 2022 12:39
@bszabo
Copy link
Contributor Author

bszabo commented Nov 16, 2022

In side channel slack conversation, Alexander confirmed that none of these changes broke the edx-enterprise build, and that the extraction of the course enrollment from the student model looks largely correct (suitable first approximation).

@bszabo bszabo force-pushed the bszabo/TNL-10136-student-course-enrollment branch from eec0c6a to b497a7d Compare November 16, 2022 20:22
@connorhaugh
Copy link
Contributor

@bszabo If you could hi light any changes required by the merge, I would be happy to give this a second thumb upon review of those changes.

@e0d
Copy link
Contributor

e0d commented Nov 20, 2023

Hi @bszabo should this PR be closed?

@feanil
Copy link
Contributor

feanil commented Apr 24, 2024

Closing since there hasn't been a response in a while.

@feanil feanil closed this Apr 24, 2024
@feanil feanil deleted the bszabo/TNL-10136-student-course-enrollment branch April 24, 2024 16:13
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