Commit Graph

14330 Commits

Author SHA1 Message Date
Pandi Ganesh
0bf88d225f feat: add course url to course team management GET API response (#37087)
* feat: add course_url to course team management GET API response

* fix: update docstring in api views

* feat: Implement CMS course URL generation with HTTPS scheme detection
2025-07-30 16:34:28 +05:30
Ali-Salman29
d29171c046 feat!: remove cs_comments_service support for forum's subscription APIs
- This will force the use of the new v2 forum's APIs for subscriptions.
2025-07-29 10:44:37 -04:00
Hunzlah Malik
cdf5083544 feat: upgrading students_update_enrollment api to DRF (#37074)
* feat: upgrading students_update_enrollment api to DRF
2025-07-29 10:36:52 -04:00
Eemaan Amir
4e1ba65183 fix: added captcha exception for limited staff (#37077) 2025-07-29 15:42:09 +05:00
Pandi Ganesh
b5bcb37c5a feat: API to manage course team roles across multiple courses (#36990)
* feat: API to fetch course-roles mapping by user and org

* fix: added docstring and resolve pylint issues

* feat: support bulk course team role updates via PUT API

* fix: refactor APIs based on user permissions

* chore: improve Swagger schema for course_team endpoints

* fix: refactor GET and PUT api code

* fix: apply pylint rules and optimize code

* fix: resolve test cases for supoort apis

* fix: change url path
2025-07-29 11:33:09 +05:30
Hunzlah Malik
96e5ce073f feat: override_problem_score to drf (#37006)
* feat: override_problem_score to drf
2025-07-28 11:03:04 -04:00
Eemaan Amir
24181468ec feat: showing captcha only for learners and not other roles (#37061)
* feat: showing captcha only for learners and not other roles

* test: added test cases

* fix: fixed pylint errors

* fix: fixed a bug with comment creation

* refactor: refactored code

* fix: fixed lint errors

* fix: fixed bug with utils

* test: added test case
2025-07-28 17:07:26 +05:00
Muhammad Adeel Tajamul
7af4b644d0 temp: added logs to debug issue in bulk delete count (#37073) 2025-07-28 14:33:48 +05:00
Muhammad Adeel Tajamul
4d76c5ded0 refactor: updated bulk delete api task (#37068) 2025-07-25 11:07:39 +05:00
Ahtisham Shahid
47d253a1fe chore: added logs to debug captcha issues (#37066) 2025-07-24 19:45:40 +00:00
andrey-canon
a7a7a5b6f0 fix: implement __repr__ method in order to avoid maximum recursion error 2025-07-23 13:49:29 -04:00
Muhammad Adeel Tajamul
082819cca2 chore: added tracker event for bulk delete posts api (#37060) 2025-07-23 12:21:43 +05:00
Muhammad Adeel Tajamul
01beca4ebb chore: added waffle for allowing only verified users to create post (#37051) 2025-07-22 14:59:54 +05:00
Muhammad Adeel Tajamul
ef6dbd9e03 chore: added email verified in course view api (#37046) 2025-07-21 16:32:28 +05:00
Muhammad Adeel Tajamul
989ecfe5a0 feat: added endpoint for priviledged roles to delete threads of a user (#37030)
* feat: added endpoint for priviledged roles to delete threads of a user

* chore: moved forum calls to django comment common app

* fix: fixed nits
2025-07-21 09:43:55 +05:00
Bryann Valderrama
a807d0e280 chore: add missing inline code annotations in events (#36473) 2025-07-18 17:55:54 +02:00
Bryann Valderrama
2a1d1debad chore: add missing inline code annotations in filters (#36474) 2025-07-18 17:53:51 +02:00
Muhammad Faraz Maqsood
5879a52b72 feat: add data report for enrolled & inactive user
Add new data report for learners who are enrolled in a course and have not activated their account
2025-07-18 12:09:36 +05:00
Ahtisham Shahid
25f9397683 fix: use data instead of request.data in comment view set (#37042) 2025-07-17 16:03:36 +00:00
Bryann Valderrama
addeae209f feat: add setting for config private fields in profile information report (#36688) 2025-07-17 17:00:25 +02:00
Awais Qureshi
8e94b2cba4 feat: Update forum role membership api to DRF ( 11th ) (#35343)
* feat: upgrading simple api to drf compatible.
2025-07-16 16:14:06 -04:00
Ahtisham Shahid
cf93ba2974 feat: added captcha validation in discussion thread/comment creation api (#37015) 2025-07-16 18:02:43 +05:00
Awais Qureshi
25dc9686a4 feat!: upgrading get_problem_responses api to DRF ( 34 ) (#35614)
* feat!: upgrading api to DRF.
2025-07-14 13:18:47 -04:00
Muhammad Adeel Tajamul
0a8ec0caab temp: added option to replace spam content with text (#37009) 2025-07-11 22:54:05 +05:00
KEVYN SUAREZ
7927213c26 fix: validation and error display for due date extensions in the API (#36187) 2025-07-11 15:25:30 +02:00
Muhammad Adeel Tajamul
f8c5cecefc feat: added feature to remove spam urls from discussion content (#37007) 2025-07-11 14:10:33 +05:00
Diana Olarte
5657e751bb feat: return the certificate available date if it is configured (#36790) 2025-07-10 17:16:26 +02:00
Awais Qureshi
8b7681ed4c feat: list_forum_members-to-drf api to drf ( 14th ) (#35366)
* feat: upgrading simple api list_forum_members to drf compatible.
2025-07-09 07:31:20 -04:00
Muhammad Farhan
7899ba9074 feat: migrate show_unit_extensions to DRF APIView. (#36987)
* feat: migrate show_unit_extensions to DRF APIView.
2025-07-08 11:09:56 -04:00
KEVYN SUAREZ
a0bb77a6d8 fix: commerce and enrollment error handling and ux (#36612)
Returns HTTP 400 for disallowed enrollments instead of HTTP 500.
Prevents infinite loading spinners on the enrollment page.
Displays clear error messages to users before redirection.
Ensures consistent and meaningful responses from enrollment API endpoints.

* fix: commerce and enrollment apis return 403 when enrollment not allowed

* fix: now both apis send the right message and http code when enrollment fails

* fix: InvalidEnrollmentAtribute as final exception to catch and HTTP 400 returned

* style: the message is displayed as a popup instead of creating a div at the end

* fix:  import not used removed for pylint checks

* style: popup now use utility classes

* refactor: use const instead of let for existing const

* refactor: textContent const structure changed due check failed

* refactor: SetTimeout settled as arrow function

* feat: button incorporated to bring users enough time to read the message

* refactor: ErrorStatuses defined at the top of the file to use it in conditionals

* style: typo fixed

Co-authored-by: Diana Olarte <dcoa@live.com>

* refactor: double validation of redirectUrl eliminated and better styling of the message

Co-authored-by: Diana Olarte <dcoa@live.com>

* refactor: redirectUrl param eliminated in showmessage function, close button redirects to dashboard always

* docs: remove unused redirectUrl param from JSDoc and explain hardcoded URL

* style: endline added

* feat: enrollmentNotAllowed exception added in views and the js

* docs: comment added to especify exception

* style: endline added

* refactor: error statuses velidation changed to one single validation instead of two

* refactor: function added to handle enrollment errors

* feat: enrollmentNotAllowed exception added for API coherence and consistency

* style: empty line added

* style: pylint check line too long disabled

---------

Co-authored-by: Diana Olarte <dcoa@live.com>
2025-07-03 12:36:14 +02:00
Talha Rizwan
7b739ea2f5 feat: rescore entrance exam to drf (#36574)
* feat: rescore entrance exam to drf.
2025-07-01 12:09:54 -04:00
Talha Rizwan
97b91bdfc8 feat: export ora2 submission files to DRF (#36557)
* feat: export ora2 submission files to DRF
2025-06-30 09:32:32 -04:00
Hassan Raza
a60b8f8d2c chore: Track 'notify all learners' option in event data (#36962)
* chore: Track 'notify all learners' option in event data

* fix: unit test
2025-06-30 14:54:11 +05:00
Hassan Raza
8fac3bc060 feat: Add notify all learners option for discussion post (#36922)
* feat: Add notify all learners option for discussion post

* fix: Remove waffle flag from default notification dict
2025-06-27 15:25:22 +05:00
Ali-Salman29
e0fbb96ee7 feat!: remove cs_comments_service support for forum's search APIs
This will force the use of the new v2 forum's APIs for searching.
2025-06-26 13:18:56 -04:00
Andrii
8ca0e17d62 refactor: get rid of env variable for ENABLE_CATALOG_MICROFRONTEND & simplify use_catalog_mfe() 2025-06-25 09:16:06 -04:00
Andrii
94ce8fa147 refactor: remove per-page waffle flag in favour of global one 2025-06-25 09:16:06 -04:00
Andrii
256511e196 refactor: set toggle_target_removal_date 2025-06-25 09:16:06 -04:00
andrii-hantkovskyi
19014463b1 feat: [AXM-2056] add catalog MFE enabled waffle flag (#2639)
* feat: [AXM-2056] add catalog MFE enabled waffle flag

* test: cover waffle with test

* refactor: fix pylint error

* refactor: redesign waffleflag & add new MFE toggle to FEATURES

* test: update tests to new functionality

* refactor: add toggle_use_cases to annotation

* refactor: redesign again to use new approach

* refactor: rename waffle flag variable & update description

---------

Co-authored-by: Andrii <andrii.hantkovskyi@raccoongang.com>
2025-06-25 09:16:06 -04:00
jawad khan
3cb9c00de2 Add organization logo field in mobile apis (#36940)
* feat: Add org_logo field in mobile apis

* fix: fixed quality checks
2025-06-24 19:42:36 +05:00
Maxwell Frank
47fbf58456 feat!: change learner home to use SEND_ACTIVATIION_EMAIl_URL (#36807) 2025-06-20 10:43:30 -04:00
sundasnoreen12
cc86662ef6 fix: fixed quality check 2025-06-19 13:02:06 +05:00
sundasnoreen12
8e1f06aa59 feat: added goal reminder new UI 2025-06-19 12:05:17 +05:00
Tim McCormack
447fd0b6cb feat: Upgrade to codejail 4.0.0 (#36916)
This brings an important security improvement -- codejail won't default to
running in unsafe mode, which can happen if certain configuration errors
are present.

Properly configured installations shouldn't be affected. We just need to
adjust some unit tests to opt into unsafe mode.

Changes:

- Update `edx-codejail` dependency to [version 4.0.0](https://github.com/openedx/codejail/blob/master/CHANGELOG.rst#400---2025-06-13)
- Define a `use_unsafe_codejail` decorator that allows running a unit test (or entire TestCase class) in unsafe mode
- Use that decorator as needed, based on which tests started failing
2025-06-17 09:33:52 -04:00
Talha Rizwan
4cea2ab041 feat: export ora2 summary to DRF (#36555)
* feat: export ora2 summary to DRF.
2025-06-12 12:36:56 -04:00
Arslan Ashraf
d6dbc4075c fix: generate IDV URL only if ACCOUNT_MICROFRONTEND_URL is available (#36898)
The api/courseware/course fails for all the verified enrollments if you
are not using Account MFE, which means that you probably won't set
ACCOUNT_MICROFRONTEND_URL in your settings/configurations.
So this PR adds a check safely try to do rstrip.

Fixes a bug in https://github.com/openedx/edx-platform/pull/36870
2025-06-12 12:13:37 -04:00
Muhammad Soban Javed
bcb3f6b996 Merge pull request #36823 from openedx/iamsobanjaved/fix-csmh-index-migration
[DO NOT MERGE – Needs Staging Verification] fix!: Update the migration to have one Index on student_module_id
2025-06-10 16:00:11 +05:00
Javier Ontiveros
89e3d189ca fix: strip end slash if any when using a subpath (#36870)
While trying to be enrolled on a verified course, the upgrade process
gets to an error screen due to a double slash on the URL that it's added
while doing the redirection to the account microfrontend

Will be backported to Teak.
Part of https://github.com/openedx/wg-build-test-release/issues/468
2025-06-09 15:12:08 +00:00
Talha Rizwan
b6cec3c67e Export ora2 data to drf (#36556)
* feat: export ora2 data to DRF
2025-06-05 10:37:55 -04:00
jawad khan
98e39aa03d fix: Removed unwanted param to course blocks api
* fix: removed unwanted param to course blocks api
2025-06-03 16:43:54 +05:00