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

Add user group ids to classifications #1660

Merged

Conversation

marten
Copy link
Contributor

@marten marten commented Feb 9, 2016

This is so we can associate classifications with user groups (in post-processing done by education api)

@@ -118,6 +119,10 @@ def add_project_live_state
update_classification_metadata(:live_project, project.live)
end

def add_user_groups
update_classification_metadata(:user_group_ids, user.non_identity_user_group_ids)
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought the client would supply this info to capture the correct context of the classification. I.e. i was classifying subject X from assignment Y in user_group P..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Assignments aren't coming until later this year. But because Amy is (going to be) working on a PFE interface for creating / joining groups, I imagine we'll have groups of friends becoming groups, so having the groups for all projects might give neat insights with respect to clusters of users? Doing it in the backend also means we get it for custom frontends for free.

@marten marten force-pushed the add-user-group-ids-to-classifications branch from c74091c to 81c8454 Compare February 10, 2016 11:21
@camallen
Copy link
Contributor

LGTM - just need a spec change to match_array.

@marten marten force-pushed the add-user-group-ids-to-classifications branch from 81c8454 to f4b9d86 Compare February 10, 2016 11:59
marten added a commit that referenced this pull request Feb 10, 2016
…tions

Add user group ids to classifications
@marten marten merged commit f52f77a into zooniverse:master Feb 10, 2016
@marten marten deleted the add-user-group-ids-to-classifications branch February 10, 2016 12:18
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