-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make common(CAPA) problems publicly accessible and intractable #263
Make common(CAPA) problems publicly accessible and intractable #263
Conversation
6d3a4f6
to
3c563b2
Compare
3c563b2
to
b91ad30
Compare
self.track_function_unmask('save_problem_fail', event_info) | ||
next_url = urlquote_plus(reverse('jump_to', kwargs={'course_id':self.location.course_key, 'location':self.location})) | ||
|
||
regiteration_link = u'{lms_root}/register?next={next_url}'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use reverse('register_user') here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
def test_public_view(self): | ||
""" | ||
Test that public view for capa problems returns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test that public view for capa problems returns | |
Tests that public view for capa problems returns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentionally an imperative sentence.
83ce7e0
to
ccaced1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I wish someone can test this by checking our locally.
ccaced1
to
8c1da29
Compare
@danialmalik @tasawernawaz Tested this PR locally. Everything is working fine you can merge the changes. |
if not self.runtime.user_id: | ||
attempts_allowed = 0 | ||
else: | ||
attempts_allowed = self.max_attempts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not self.runtime.user_id: | |
attempts_allowed = 0 | |
else: | |
attempts_allowed = self.max_attempts | |
attempts_allowed = self.max_attempts if self.runtime.user_id else 0 |
a210b79
to
42c23c0
Compare
42c23c0
to
102ef22
Compare
Description
By default, edX allows public access to non-problem xBlocks. This PR adds the public access for Capa problems (Common Problems) provided by Open edX.
Message on course outline page for public courses is also updated
How to test
How to run unit tests