Skip to content

Introduce EnrollmentTrackUserPartition. - #14682

Closed
cahrens wants to merge 5 commits into
masterfrom
chrisitna/enrollment-track-user-partition2
Closed

Introduce EnrollmentTrackUserPartition.#14682
cahrens wants to merge 5 commits into
masterfrom
chrisitna/enrollment-track-user-partition2

Conversation

@cahrens

@cahrens cahrens commented Mar 14, 2017

Copy link
Copy Markdown

See #14731 for the version of this PR being removed (with "hacky UX commit" removed).

@cahrens
cahrens force-pushed the chrisitna/enrollment-track-user-partition2 branch 7 times, most recently from 4fccf27 to b490e55 Compare March 16, 2017 15:23
@cahrens
cahrens force-pushed the chrisitna/enrollment-track-user-partition2 branch 5 times, most recently from 2168d09 to f26fae8 Compare March 17, 2017 15:43
}
]
self.assertEqual(self._get_partition_info(), expected)
self.assertEqual(self._get_partition_info(schemes=["cohort", "random"]), expected)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Note to reviewers: exclude the enrollment_track partition.

for user_partition in user_partitions:
for group in user_partition['groups']:
if str(group['id']) in xblock_display_name:
# Temporary hack until TNL-6731 is addressed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Note to reviewers: this issue will be fixed before this PR merges.

self.course.user_partitions = [
UserPartition(
id=0,
id=100,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Note to reviewers: Changing IDs so they more accurately represent what the code does (and avoid non-unique IDs).

'skipped': 2
}
with self.assertNumQueries(168):
with self.assertNumQueries(184):

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Note to reviewers: there are 8 different learners (increase of 2 queries per learner).

@cahrens
cahrens force-pushed the chrisitna/enrollment-track-user-partition2 branch from ce5b9db to 3a540af Compare March 20, 2017 14:44
@cahrens

cahrens commented Mar 20, 2017

Copy link
Copy Markdown
Author

jenkins run js

1 similar comment
@cahrens

cahrens commented Mar 20, 2017

Copy link
Copy Markdown
Author

jenkins run js

@cahrens
cahrens force-pushed the chrisitna/enrollment-track-user-partition2 branch from 1294db5 to 04bf534 Compare March 20, 2017 15:58
@cahrens
cahrens force-pushed the chrisitna/enrollment-track-user-partition2 branch from cddb320 to 68d6efc Compare March 21, 2017 16:41
cahrens added 2 commits March 21, 2017 12:41
Will need different change on review branch.
Change group to a method.
@cahrens cahrens closed this Mar 30, 2017
@nedbat
nedbat deleted the chrisitna/enrollment-track-user-partition2 branch July 6, 2018 18:00
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.

1 participant