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

Change behavior of cohort addition interface #3228

Merged
merged 1 commit into from
Apr 7, 2014
Merged

Conversation

gwprice
Copy link

@gwprice gwprice commented Apr 4, 2014

Instead of noting users that are already in a cohort and not changing
such users, clobber the previous cohort and display a message indicating
the previous cohort membership.

JIRA: FOR-452

@jimabramson

[(user, self.cohort2.name) for user in self.cohort2_users] +
[(user, self.cohort3.name) for user in self.cohort3_users]
)
)

Choose a reason for hiding this comment

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

Unless this is already enforced by a db constraint, I think it would be good to have an assertion, somewhere, that users were actually removed from their previous cohorts when changed to a new cohort.

@jimabramson
Copy link

apart from test coverage request, 👍

@gwprice
Copy link
Author

gwprice commented Apr 7, 2014

Updated; I will squash before merging

@jimabramson
Copy link

👍

Instead of noting users that are already in a cohort and not changing
such users, clobber the previous cohort and display a message indicating
the previous cohort membership.

JIRA: FOR-452
gwprice pushed a commit that referenced this pull request Apr 7, 2014
Change behavior of cohort addition interface
@gwprice gwprice merged commit a779686 into master Apr 7, 2014
@gwprice gwprice deleted the gprice/FOR-542 branch April 7, 2014 16:54
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