Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
fix: Update for new version of demo course
Browse files Browse the repository at this point in the history
In openedx/openedx-demo-course#47 the demo
course was replaced. This includes a new course key (new name and org)
and the course content being moved a few directories deeper.

Changes:

- `sed -i 's/course-v1:edX+DemoX+Demo_Course/course-v1:Axim+DemoX+demo_course/g'`
  on all files turned up by `grep -rl Demo_Course`
- Updated a few other course info locations turned up with
  `grep -nrI DemoX | grep -x demo_course` (all in programs/discovery.py)
- Updated git clone URL and checkout location in provision-lms.sh to
  use new repo name (not strictly needed).
  • Loading branch information
timmc-edx committed Feb 7, 2024
1 parent 18d97a7 commit c2e6f71
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions credentials/generate_program_certificate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ echo 'Updating LMS...'
echo 'creating a credentials API connection'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms create_credentials_api_configuration'
echo 'changing edX user enrollment in demo course from audit to verified'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms change_enrollment -u edx -c course-v1:edX+DemoX+Demo_Course --from audit --to verified'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms change_enrollment -u edx -c course-v1:Axim+DemoX+demo_course --from audit --to verified'
echo 'manually ID verifying edX user'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms manual_verifications --email [email protected]'
echo 'generating course certificate'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms cert_generation -u 3 -c course-v1:edX+DemoX+Demo_Course'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms cert_generation -u 3 -c course-v1:Axim+DemoX+demo_course'
echo 'notifying credentials'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker notify_credentials --courses course-v1:edX+DemoX+Demo_Course --notify_programs'
docker compose exec -T lms bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker notify_credentials --courses course-v1:Axim+DemoX+demo_course --notify_programs'
2 changes: 1 addition & 1 deletion docs/devstack_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ How do I make payments?
-----------------------

The ecommerce image comes pre-configured for payments via CyberSource and PayPal. Additionally, the provisioning scripts
add the demo course (``course-v1:edX+DemoX+Demo_Course``) to the ecommerce catalog. You can initiate a checkout by visiting
add the demo course (``course-v1:Axim+DemoX+demo_course``) to the ecommerce catalog. You can initiate a checkout by visiting
http://localhost:18130/basket/add/?sku=8CF08E5 or clicking one of the various upgrade links in the LMS. The following
details can be used for checkout. While the name and address fields are required for credit card payments, their values
are not checked in development, so put whatever you want in those fields.
Expand Down
Loading

0 comments on commit c2e6f71

Please sign in to comment.