Commit Graph

835 Commits

Author SHA1 Message Date
Kristin Aoki
36439bb047 feat: add static full url to asset response 2022-08-24 09:02:04 -04:00
connorhaugh
c9dce91b9a feat: studio redirect to new editors (#30523) 2022-06-07 16:30:40 -04:00
connorhaugh
65d4435b0e fix: don't reroute xblock settings button. (#30203)
for: https://openedx.atlassian.net/browse/TNL-9831
2022-04-08 09:26:12 -04:00
muhammad-ammar
735607a752 feat: add an xblock renderer endpoint to serve videos as public having
public access set by course author in studio
2022-04-05 16:42:39 +05:00
Simon Chen
60cf4d7ded fix: allow exam_type change when exam do not have external_id specified (#30032)
Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-09 15:08:33 -05:00
Simon Chen
0940fc5e49 fix: Loosen the restriction on updating exam_type (#30022)
Currently, if a subsection was a special exam, we do not allow it to be changed back as a special exam. This PR would loosen that change to only disallow reintroducing the exam back to proctored exam. Timed exam can be updated however the user wants

Co-authored-by: Simon Chen <schen@edX-C02FW0GUML85.local>
2022-03-08 13:00:59 -05:00
connorhaugh
e5a9ddcd87 feat: encode uri on new editors (#29825)
In order to complete https://openedx.atlassian.net/browse/TNL-9320, we need to better encode the URI of the editor using the block id.
We also need to allow users to navigate out of the editors while it is a new page using the back button for a11y reasons.
2022-01-27 07:59:38 -05:00
Kshitij Sobti
8fa962b1c8 feat: Add Studio UI to edit discussions toggle [TNL-7349] (#29720)
Adds a UI in studio to toggle discussions for a units if a course is using a discussion provider that supports it and per-unit discussion control is enabled.

Co-authored-by: Kshitij Sobti <kshitij@opencraft.com

Co-authored-by: Agrendalath <piotr@surowiec.it>
2022-01-19 11:21:32 +05:00
connorhaugh
4d834b977f feat: add flags to studio for editors work (#29536)
Description
In order to support ongoing editor work we need to open blocks in the course_authoring MFE from studio. We are gating that rollout behind a flag. This work does that for each of the new blocks, as well as provides urls to do so.

Supporting information
List of flags:
new_core_editors.use_new_text_editor
new_core_editors.use_new_video_editor
new_core_editors.use_new_problem_editor

Documentation of those flags:
Planned Removal Work: https://openedx.atlassian.net/browse/TNL-9370
2021-12-21 10:55:23 -05:00
Ben Warzeski
2f4fedc237 feat: update min grade cutoff from 997 to 99 (#29475) 2021-12-01 10:29:29 -05:00
Bianca Severino
6f4811d7e7 fix: hide proctored exams after due by default 2021-11-01 13:18:40 -04:00
Agrendalath
e633cc9c24 feat: support adding custom editors to Studio
This:
1. Introduces a variable for the Course Outline view in Studio.
   A custom theme can override it to add new editors.
2. Exports a function for creating new editor modals.
   A custom theme can use it to create editors without adding boilerplate code.
3. Adds a pluggable override for XBlock fields that are passed to the Studio.
   Without this, custom editors in Studio cannot retrieve values of XBlock fields.
2021-10-27 13:35:19 -04:00
sofiayoon
1ad615ef59 Merge pull request #28329 from edx/syoon/AA-945
fix: wrong start date is displayed in susbection modal
2021-08-02 11:50:03 -04:00
Matt Tuchfarber
622d56026c Certificate Display Settings revamp (round 2) (#28286)
feat: reimagine certificate display settings

The course settings `certificate_available_date` (CAD) and
`certificates_display_behavior` (CDB) were previously
acting indedependantly of one another. They now work in
tandem. This change:
- limits CDB to a dropdown
- removes "early_with_info" and adds "end_with_date"
- only takes CAD into account if "end_with_date" is selected
- Moves CDB to the main course schedule settings page
- updates CourseOverview model and CourseDetails objects to
validate these fields and choose sane defaults if they aren't
expected values

This work was previously done in bd9e7dd (complete with bugs), so this
version is toggleable via the ENABLE_V2_CERT_DISPLAY_SETTINGS setting
2021-08-02 11:30:15 -04:00
Sofia Yoon
a272dd54cf fix: wrong start date is displayed in susbection modal with xblock's start date so use course context's start date (AA-945) 2021-08-02 10:05:50 -04:00
Sofia Yoon
9a555eb02c feat: log event for custom pacing when user submits relative date for self paced course (AA-921) 2021-07-29 09:51:25 -04:00
Sofia Yoon
898684287a feat: AA-885 show offsets in studio self paced course outline for a subsection
feat: AA-883 basic prototype for custom pacing pls in studio

refactor: merge with basic prototype for self paced courses from AA-844

feat: add due date estimate message in self paced courses studio modal

refactor: merge with main that has up to date self paced custom pls editor and tests

fix: only display projected date if start date exists

fix: tests to check grading date in outline

fix: only one warning message show at a time

fix: do not show projected date when it is before the start date
2021-07-26 16:26:22 -04:00
Sofia Yoon
e343c78227 feat: basic prototype for custom pacing pls in studio (AA-883) 2021-07-13 13:56:28 -04:00
Julia Eskew
b24e65903d Revert "feat: AA-883 Basic prototype for self paced due dates in Studio" 2021-07-09 17:38:18 -04:00
Sofia Yoon
09eb36e550 feat: AA-883 basic prototype for custom pacing pls in studio
fix: make new field in xblock json serializable and don't assign due dates to ORAs

feat: display warning message in Studio if the relative date input is more than 18 weeks for custom pacing in self paced course

fix: handle due dates for mix of ORA and non ORA problems under a subsection and other styling fixes

feat: add a minimum restriction for self paced courses due date editor input

fix: naming of warning id divs to be more specific and exclude children of ORA problems in setting due dates

test: extracting dates for a self paced course with custom pacing

test: frontend for self paced custom pacing modal in studio and clean up its backend tests

fix: remove an unused line when getting children of custom pacing subsection, reorganize testing for custom pacing

fix: more specific comments to testing for custom PLS and remove a test case course

fix: more cleanup for self paced custom pacing PLS backend tests
2021-07-08 16:05:38 -04:00
Sofia Yoon
4d96449134 feat: create feature flag for PLS custom pacing 2021-07-08 14:39:04 -04:00
Matt Tuchfarber
63cb6a97ff Revert "feat: Reimagine certificate_availability_date and certificates_display_behavior" 2021-07-07 16:53:05 -04:00
Matt Tuchfarber
2a7106acfb feat: reimagine certificate display settings
The course settings `certificate_available_date` (CAD) and
`certificates_display_behavior` (CDB) were previously acting indedependantly
of one another. They now work in tandem. This change:
- limits CDB to a dropdown
- removes "early_with_info" and adds "end_with_date"
- only takes CAD into account if "end_with_date" is selected
- Moves CDB to the main course schedule settings page
- updates CourseOverview to validate these fields and choose sane
defaults if they aren't expected values

Certificates will now show under the following circumstances:
"Immediately upon passing"
certificate_availability_date = null
certificates_display_behavior = "early_no_info"

"End date of course"
certificate_availability_date = null
certificates_display_behavior = "end"

"A date after the course end date"
certificate_availability_date = <date>
certificates_display_behavior = "end_with_date"
2021-07-06 16:45:23 -04:00
HamzaIbnFarooq
9e655a4c99 refactor: refactoring error messages for CAPA problem authoring 2021-06-17 16:18:55 +05:00
HamzaIbnFarooq
883d223d59 fix: add validation to capa problem markdown for missing option text
Before this commit, if a course author created a capa mcqs or similar problem without providing any answer text for an option the question would be created causing abnormal behavior for learners. This commit will validate answer text of all options and raise an error message to author to fix the issue on the go.
2021-06-17 15:59:24 +05:00
Ali-D-Akbar
a4437cb786 refactor: fix xss PROD-2301 2021-04-16 15:29:38 +05:00
Dillon Dumesnil
9e2eab506f AA-454 and AA-470: Update language and bug fix for highlights
Since Course Highlights aren't necessarily weekly (self-paced courses),
update the language to be more generic. And then includes a bug fix to
not send highlights to learners after they have unenrolled from a course.
2020-12-04 15:26:47 +00:00
Jansen Kantor
12082e6021 add json validation step to advanced settings save (#25085)
* add json validation step to save

* fixup! add json validation step to save

* fixup! fixup! add json validation step to save
2020-10-05 16:46:28 -04:00
Ali Akbar
e63770431f Merge pull request #196 from edx/sustaining/security-fixes-4
Sustaining/security fixes 4
2020-09-07 08:26:40 +05:00
Awais Jibran
60822404e5 Fix video handouts uploads. 2020-09-02 19:04:01 +05:00
Ahtisham Shahid
5d38314fc5 Fixed xss lint issues for prod-1465/66 2020-08-19 13:59:36 +05:00
Ahtisham Shahid
e14e944e86 Fixed xsslinter issue for PROD-1527/28 2020-08-19 13:59:36 +05:00
Ali-D-Akbar
6d8e7dc81e PROD-1575 2020-08-18 17:32:49 +05:00
Ali-D-Akbar
71593b140c PROD-1535 2020-08-18 17:32:49 +05:00
Ali-D-Akbar
c788bb3bf8 PROD-1531 2020-08-18 17:32:49 +05:00
SaadYousaf
0bda30a393 fix issue with transcript dropdown. 2020-08-18 02:15:42 +05:00
Ali Akbar
8df43bd201 Merge pull request #194 from edx/aakbar/PROD-1534
PROD-1534 security fixes
2020-08-12 12:30:25 +05:00
SaadYousaf
0631b4bc97 PROD-1529 2020-08-11 17:48:57 +05:00
SaadYousaf
00a4e1b8d7 PROD-1526 2020-08-11 17:48:57 +05:00
SaadYousaf
e1a5672411 PROD-1292 2020-08-11 17:48:57 +05:00
SaadYousaf
5f9d41b124 PROD-1290 2020-08-11 17:48:57 +05:00
Ali-D-Akbar
0c67645d7f PROD-1534 2020-07-30 02:12:40 +05:00
Ali-D-Akbar
ff2bf588eb PROD-1525 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
8f12875e4a PROD-1530 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
6905f64aa3 PROD-1289 2020-07-29 14:48:50 +05:00
SaadYousaf
a9cf0d84ac PROD-1619 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
8876e7bf25 PROD-1603 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
4d0c491259 PROD-1612 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
d73b41f578 PROD-1605 2020-07-29 14:48:50 +05:00
Ali-D-Akbar
ac548e1940 PROD-1534 2020-07-27 18:55:12 +05:00