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 rest call to archive course versions #10

Merged
merged 3 commits into from
Nov 7, 2016
Merged

Conversation

HugoArts
Copy link
Contributor

@HugoArts HugoArts commented Nov 3, 2016

need I say more?

Copy link
Contributor

@dporru dporru left a comment

Choose a reason for hiding this comment

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

I was thinking, it may actually make more sense to implement an archive_student_course_version, instead of asking the user for an action.

@@ -206,6 +206,10 @@ def set_course(self, course):
def delete_course(self, course_id):
return self._request('DELETE', 'course/{}/'.format(course_id))

def set_student_courseversion(self, action, course_id, student_id):
Copy link
Contributor

Choose a reason for hiding this comment

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

We use the spelling course_version throughout Pluvo.

@HugoArts
Copy link
Contributor Author

HugoArts commented Nov 7, 2016

I think right now, with archive as our only action it's definitely more intuitive from a user perspective to put the archive part in the name of the function; it signals the purpose of the call a lot better than set_student_course_version, which kind of implies I'm able to modify the course version directly.

We might have to rethink this if we start adding a bunch more actions. I'm hesitant to have to make a different function for ~10 different actions. I'll rename it for now

@dporru dporru merged commit 87483f0 into master Nov 7, 2016
@dporru dporru deleted the set_student_courseversion branch November 7, 2016 10:45
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.

None yet

3 participants