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

Added deadline for upgrade to verified #659

Merged
merged 1 commit into from
Jul 5, 2016
Merged

Conversation

giocalitri
Copy link
Contributor

What are the relevant tickets?

closes #654

What's this PR do?

Introduces a new field in the Course run model to put a deadline to the upgrade to verified

Where should the reviewer start?

courses/models.py

How should this be manually tested?

Enroll in a course without upgrading. Verify that the enrolled-not-verified in the dashboard REST API appears with a upgrade_deadline only in the future or Null

Any background context you want to provide?

This will not work in the front-end until #655 is merged

@bdero bdero temporarily deployed to micromasters-ci-pr-659 June 29, 2016 15:36 Inactive
@giocalitri giocalitri changed the title Added deadline for upgrade Added deadline for upgrade to verified Jun 29, 2016
@noisecapella noisecapella self-assigned this Jun 30, 2016
@@ -252,15 +255,15 @@ def setUpTestData(cls):
cls.enrollments_json = json.loads(file_obj.read())

cls.enrollments = Enrollments(cls.enrollments_json)
cls.now = datetime.now(pytz.utc)

def test_status_for_run_not_enrolled(self):
"""test for get_status_for_courserun"""
Copy link
Contributor

Choose a reason for hiding this comment

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

I just noticed that all of these functions have the same docstring... it's outside the scope of this PR but would you mind updating them?

@noisecapella
Copy link
Contributor

Code looks good, testing functionality

@noisecapella
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Honor upgrade_deadline when display upgrade to verified button on dashboard
3 participants