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

Course blocks API with param return_type=list #34425

Closed

Conversation

qasimgulzar
Copy link
Contributor

Version: Quince.1

Discussion: edx (New)
Endpoint: {LMS_HOST}/api/courses/v1/blocks/?course_id={COURSE_ID}&return_type=list
Issue Link

Console log:

image

deborahgu and others added 30 commits January 30, 2024 10:56
* unused import
* format

FIXES: APER-3146
…nedx#34092)

* feat: added setting to disable the survey report banner entirely

* fix: fixed unit test with new setting

* refactor: changed conditions for better code readability

* feat: added exception to stop the report from generating if the setting is set to false

* chore: updated the readme file to include the new setting

* refactor: move survey settings to common and disable admin by setting

* docs: typos in README

Co-authored-by: Tim McCormack <tmccormack@edx.org>

* refactor: set default values to survey report settings

* refactor: rename ENABLE_SURVEY_REPORT setting to SURVEY_REPORT_ENABLE

* test: fix quality tests

---------

Co-authored-by: Alejandro Cardenas <alecar.main@gmail.com>
Co-authored-by: Tim McCormack <tmccormack@edx.org>
Trying with new autoformat settings.

FIXES: APER-3146
autoformat errors

FIXES: APER-3146
…it-page-drf

feat: [FC-0044] Unit page API as DRF
* refactor: change survey report message location
wording, switching to using a constant, fixing a string concat

FIXES: APER-3146
* fix: add missing function import in certificate template
* test: add test case to check certificates generated when GA4 is enabled
Added management command to fix `LearnerDataTransmissionAudit` table records.

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: zamanafzal <zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
…-lts

chore!: upgrade Django version to 4.2 (LTS)
feat: update cornerstone client to store API calls in DB

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
…dx-enterprise-cd8e2d2

feat: Upgrade Python dependency edx-enterprise
…ved/django-42-lts

Revert "chore!: upgrade Django version to 4.2 (LTS)"
Adds an endpoint to expose JWT_PUBLIC_SIGNING_JWK_SET to other services
…stigate-fix-exception-handling-in-program-cert-revocation

feat: fix exception handling in program cert revocation
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: nsprenkle <nsprenkle@users.noreply.github.com>
…edx#34082)

* feat: added notification when response is endorsed or answered

* test: added and fixed test cases

* fix: fixed lint errors

* refactor: changed method name for readibility

* feat: added notification when my response is endorsed

* test: fixed failed test cases
* feat!: upgrade Django version to 4.2 (LTS)
---------

Co-authored-by: iamsobanjaved <iamsobanjaved@users.noreply.github.com>
Added logs and remove cornerstone from management command

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: zamanafzal <zamanafzal@users.noreply.github.com>
Co-authored-by: Zaman Afzal <zamanafzal@gmail.com>
ziafazal and others added 23 commits March 19, 2024 09:41
…penedx#34238)

* feat: Add EnrollmentsService in XBlockRuntime and block renderer

These changes give ability to use `EnrollmentsService` in XBlocks
Add `get_active_enrollments_by_course_and_user` method to `EnrollmentsService` which can be used to get active enrollment of user for a give course
…scopes-to-default-scopes

feat: add user_id in the default scopes if no scopes are requested from payload
Docs for the ENABLE_HIDE_FROM_TOC_UI feature toggle so it can be extracted by the feature toggle sphinx plugin.
* feat: [FC-0044] add waffle flag support

* fix: resolve discussions
pass force_enrollment when bulk enrolling learners

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
…nterprise-762730a

feat: Upgrade Python dependency edx-enterprise
…openedx#34289)

* feat: added channels column to send notifications on specific channels
* feat: Add context to certificate webview.

Add support to instructor certificates generation. If user has instructor permissions over a course, the staff permissions are also granted.
* fix: rename local parameters to fix pylint redefined-outer-name alert
* feat: create a setting to enable certificate panel for instructors
* fix: remove unnecessary permisions
* fix: update persmissions and testing
* style: fix pylint issues

---------

Co-authored-by: Squirrel18 <daniel.quiroga@edunext.co>
Co-authored-by: Maria Fernanda Magallanes Zubillaga <maria.magallanes@edunext.co>
…#32684)

Co-authored-by: Muhammad Abdullah Waheed <42172960+abdullahwaheed@users.noreply.github.com>
Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: jansenk <jansenk@users.noreply.github.com>
…eset-celery-task

feat: add celery task to reset course progress for learner
* feat: [FC-0044] textbooks API DRF

* fix: resolve discussions
[APER-3228]

This PR tries to correct bad data on a course update before it enters the system. There are times when we are updating a course (via Studio) and we save bad data that has been persisted and passed to the backend from the CMS's legacy Django template-based frontend.

The bad data doesn't affect the LMS or CMS much, as there is extra logic in the monolith around course pacing. However, downstream services (e.g. Credentials) don't understand the concept of course pacing and will persist bad data (like a certificate available date associated with a self-paced course run).

The most common problem that manifests is that Credentials will hide a certificate from a learner on their Learner Record, even though the course certificate is visible and accessible to the learner from the LMS.
@qasimgulzar qasimgulzar requested review from feanil and a team as code owners March 26, 2024 09:47
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Mar 26, 2024
@openedx-webhooks
Copy link

Thanks for the pull request, @qasimgulzar! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks
Copy link

@qasimgulzar Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

@qasimgulzar
Copy link
Contributor Author

I will create PR with cherry pick for quince

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.