Commit Graph

9165 Commits

Author SHA1 Message Date
Robert Raposa
e265a754aa fix update assets
An xmodule file that is loaded during update_assets
without settings was referring to the FEATURES setting
without checking if it existed.
2020-10-28 09:38:51 -04:00
Ahtisham Shahid
b36af3930d Fixed Alert issue in lbirary editor (#25433) 2020-10-28 11:20:41 +05:00
Carla Duarte
ca7434ce3b AA-405: UI fixes for courseware 2020-10-23 09:20:46 -04:00
David Ormsbee
0c61b0d4e2 Re-enable refreshing from library only on initial insertion of lib (#25347)
If the library content block is already in the course, then don't
refresh the children when we re-import it. This lets us address
TNL-7507 (Randomized Content Block Settings Lost in Course Import)
while still avoiding AA-310, where the IDs of the children for an
existing library_content block might be altered, losing student
user state.

When importing, we only copy the default values from content
in a library the first time that library_content block is created.
Future imports ignore what's in the library so as not to disrupt
course state. You can still update to the library via the Studio
UI for updating to the latest version of a library for this block.
2020-10-21 10:49:32 -04:00
Matthew Piatetsky
651a020fcc Merge pull request #25151 from edx/REV-1510
[REV-1510] Gate sequence if it is a timed exam and contains content type gated problems
2020-10-14 16:54:39 -04:00
Matthew Piatetsky
dcecae4f5c address comments 2020-10-14 15:52:41 -04:00
Sid Verma
09c24be35e Add UI for "library sourced block" letting users browse and select xblocks (#24816) 2020-10-14 13:29:52 -04:00
Matthew Piatetsky
2153057142 Add XBlock service for content type gating
This is used in this commit to check if a timed exam contains any problems that have been gated by content type gating
REV-1510
2020-10-14 08:02:51 -04:00
David Ormsbee
8b2b9b5c74 Merge pull request #23174 from open-craft/agrendalath/add_course_id_to_html_block
[BB-2088] Add %%COURSE_ID%% to html block
2020-10-07 12:36:36 -04:00
Andytr1
b4f144ef62 EDUCATOR-5304 - update help text (#25264)
* EDUCATOR-5304 - update help text

* EDUCATOR-5304 - update help text - escape underscore

* EDUCATOR-5304 - update help text - escape underscore 2
2020-10-06 16:30:02 -04:00
Matthew Piatetsky
be2d534488 Gate sequence if it is a timed exam and contains content type gated problems
The previous attempt to implement this was bugged because it was not respecting manual exceptions to content type gating. This is fixed by checking has_access for each child problem of the sequence.
REV-1510
2020-10-05 09:51:56 -04:00
Matthew Piatetsky
7620600220 Revert "Revert "[REV-774] Show content type gating upsell when a limited access learner tries to access a timed exam"" 2020-10-02 09:14:45 -04:00
Agrendalath
87997d0975 [BB-2120] Add %%COURSE_ID%% keyword to HTML block
Until now only `%%USER_ID%%` was supported. This adds a new keyword that can be used inside an HTML block.
2020-10-02 00:05:22 +02:00
Matthew Piatetsky
95811992ca [REV-1508] Add functionality to limit timed exam access behind waffle flag (#25054)
Re-applied bugfix #24214, but behind a waffle flag. The change gates timed exams for audit learners. We would like to limit access to timed exams to verified learners. However, some of the instructors would like to make their content free for all users, including graded content/timed exams (hence the Feature-Based Enrollment "FBE" exemption). As a result, we will be rolling the gated timed exams functionality out behind a waffle flag now, add the FBE exemption when we figure out how, and gradually turn the waffle flag on for everyone.
2020-10-01 09:33:12 -04:00
Kyle McCormick
ddae9e02ab Use fully-qualified edxnotes app name when checking if installed 2020-09-25 14:13:30 -04:00
Calen Pennington
88d16a8186 Improve the logging of tests that fail because of a changed number of mongodb calls 2020-09-23 10:05:37 -04:00
Calen Pennington
0aa2edbc37 Clean up some radically dirty global state pollition to fix a flaky test 2020-09-23 10:05:37 -04:00
Shadi Naif
1502a9c16c (Problem Input) should always be LTR (#24208) 2020-09-23 07:01:30 -04:00
Usman Khalid
8546fa6b6f Convert LibraryContentModule to LibraryContentBlock. (#24611) 2020-09-15 08:41:29 -04:00
Bill Currie
6edd28c73c Remove course bypass_home setting and references 2020-09-02 19:26:03 +02:00
Dillon Dumesnil
315b974b82 Merge pull request #24868 from edx/ddumesnil/courseware-due-date-fixes
AA-314/AA-330: Updates to courseware due date.
2020-08-31 09:49:22 -07:00
Dillon Dumesnil
1341068d20 AA-314/AA-330: Updates to courseware due date.
This will fix a bug about if assignment type is None, we will only
show the due date.
This will also fix a bug where we would show the assignment type and
due date on non-scored units within a subsection. Now it will only
show on scored units.
This also fixes the pill that displays from stretching out if the due
date text is multi-lined.
2020-08-31 10:50:42 -04:00
Ali Akbar
9068b43ea6 Merge pull request #24871 from edx/aj/check-capa-logs
Adding debug logs for CR-2618
2020-08-31 18:36:53 +05:00
Awais Jibran
a113dd2f90 Adding debug logs for CR-2618 2020-08-31 16:50:22 +05:00
stvn
3da9362ac8 Log and skip empty children when rendering library_content
instead of throwing an exception on None-access.
2020-08-24 10:04:25 -07:00
Matjaz Gregoric
68eddcee38 Fix issues with video transcript panel
This fixes a bug where the video transcripts panel would be open on
page load even when no transcripts were present. It also cleans up the
code a bit to remove unused cookies and tries to reduce flickering of
the transcript panel.
2020-08-22 09:56:24 +02:00
Felipe Montoya
7813850bc6 Merge pull request #24779 from msegado/master
Fix double-wrapped exception in capa/inputtypes.py
2020-08-20 14:48:23 -05:00
Dillon Dumesnil
d75fbde9e7 Merge pull request #24813 from edx/ddumesnil/xml-import-lcm-disable
Disable updating Library Content children during import
2020-08-20 09:10:42 -07:00
Dillon Dumesnil
79e96af197 Disable updating Library Content children during import 2020-08-20 07:26:27 -07:00
Martin Segado
b2a32bbb69 Fix double-wrapped exception in capa/inputtypes.py
(accidentally introduced in 07df64eb8c last year)
2020-08-13 16:01:11 -04:00
Manjinder Singh
c76ed6ae45 Extracting plugin app from edx-platform (#24678)
* Moving plugins infrastructure to edx-django-utils
This PR extracts the code that enables plugins in edx-platform and puts it in edx-django-utils. This is done to allow other IDAS to add plugin functionality.
2020-08-12 07:48:53 -04:00
Guruprasad Lakshmi Narayanan
149ebfec58 Fix the order randomization behaviour of Randomized Content Block
The Randomized Content Block XBlock only randomizes the selection of
the children blocks and has unpredictable randomization of
the order of the selected child blocks due to the usage of sets, which
are unordered, for storing the selected blocks. This becomes apparent
when all the available child blocks in a library are chosen for a
Randomized Content Block, to randomize just the order of the child
blocks and not just the selection of the blocks. The order of the
selected blocks ends up being similar for multiple learners.

This change modifies the XBlock to store the selected child blocks in
a list, instead of a set, after randomly shuffling them.

A new block structure transformer, ContentLibraryOrderTransformer has
been added to transform the order of the selected children XBlocks to
match the order of the selections made in the
ContentLibraryTransformer. This ensures that same correct randomized order
of blocks is also returned by the course blocks API.
2020-08-11 11:46:49 -04:00
Dave St.Germain
8795bb8c82 Merge pull request #24680 from open-craft/ahmed/fix-capa-dropdown-indexing
[TNL-6993] [BD-29]: Handle edge case where dropdown values are not being indexed
2020-08-11 11:35:29 -04:00
Dillon Dumesnil
a6ab7141ca Adding format to metadata for use in Learning MFE 2020-08-10 10:14:35 -07:00
Ahmad Bilal Khalid
30274b00e3 fixed nit 2020-08-07 01:03:42 +05:00
Ahmad Bilal Khalid
971bb1bebd fixed issues pointed by kshitij 2020-08-07 00:26:07 +05:00
Calen Pennington
f9619d6cad Add a pluggable CallToAction service for XBlocks
This also has an initial use case for Personalized Learner Schedules
to add CTAs to capa and vertical blocks to allow users to shift their
course deadlines.
2020-08-06 14:38:26 -04:00
Ahmad Bilal Khalid
7a03d064ba Make WordCloud indexable 2020-08-05 22:42:18 +05:00
Ahmad Bilal Khalid
3fab3ad47f issue fixed, use regex to replace 2020-08-05 16:26:12 +05:00
Ahmad Bilal Khalid
eb89988944 fixed issue 2020-08-04 22:11:16 +05:00
Ahmad Bilal Khalid
dfedde57b0 Handle edge case where dropdown values are not being indexed, fixed tests 2020-08-04 20:26:15 +05:00
Dillon Dumesnil
75f6937003 AA-261: Overridding Show Answer functionality for PLS courses
We noticed that since users can choose to reset their due dates,
they would have the ability to let due dates pass and then for any
assessment that allows viewing the answer after the due date would be
visible. The user could thus view all answers and then reset their
due dates to receive a perfect score.

This PR works to fix that issue by changing all show answer values
to not take into account being past the due date when inside a PLS
course.
2020-08-04 07:44:59 -07:00
David Ormsbee
7561fe751c Merge pull request #24385 from open-craft/mavidser/source-from-library-xblock
[BD-14]"Source from Library" XBlock
2020-07-29 12:14:48 -04:00
Alex Wang
16a3d7fce3 Change the default value of allow_proctoring_opt_out (#24626)
MST-333
2020-07-29 07:51:21 -07:00
morenol
5949c17dda [BD-10] Remove uses bootstrap method (#24535) 2020-07-28 08:57:42 -04:00
Sankar Raj
d00633e942 [BD-10] remove edx-pattern-library from JS bundles (#24165)
Co-authored-by: Sankar Raj <sankar.raj@crystaldelta.com>
2020-07-27 12:19:15 -04:00
Sid Verma
99220e0967 Add "Source from library" XBlock
This lets the user import a block from a blockstore-based content library into a (modulestore based) course, by copying the block into the course.
2020-07-24 13:32:37 +05:30
Alex Wang
9b74414893 Deprecate relevant course fields after the new exam setting is enabled (#24500)
mst-292
2020-07-21 09:18:51 -07:00
Awais Jibran
de49eb7059 Merge pull request #24549 from edx/update-logs
Updating ProblemClose Log.
2020-07-21 11:23:24 +05:00
Awais Jibran
0b9087346b Updating ProblemClose Log. 2020-07-20 23:27:09 +05:00