Update with Vendor Additions
Contents
Update with Vendor Additions#
TODO#
[ ] Don’t forget to include the changes from LMS config files
[ ] Make sure CSRF is not present
[ ] Find the additions from Github
[ ] Make sure the additional functions are all present
[ ] check if users can be deleted
Build the dev image
tutor images build openedx-dev
Mount the clean image using the command
tutor dev bindmount lms /openedx/edx-platform
Create a new repo git@github.com:uetuluk/openedx-tutor.git
Add the current position to this repo → do while tutor is not runnig
git remote rename origin upstream
git remote add origin [[email protected]](mailto:[email protected]):uetuluk/openedx-tutor.git
git fetch --unshallow upstream # required to upload to new repo
Set up SSH in wsl
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
Check connection
ssh -T [email protected]
https://simplernerd.com/git-ssh-keys/
Push to new repo
git push origin master
In case need to pull from original
git pull upstream master && git push origin master
Check the vendor additions
https://github.com/uetuluk/openedx-lilac-migration/commit/6a67b67984cdb1575335e44ddaa1e84412bdc7c6
Undo in a local directory and add one by one
Run the server the check the changes, stop the lms container manually before running lms.
tutor dev runserver --volume=/openedx/edx-platform cms
tutor dev runserver --volume=/openedx/edx-platform lms
[Vendor Additions Problems][Update with Vendor Additions f997c819ef0640228d3312474cc2dd4b/Vendor Additions Problems d19d91cb87e74d519b444bce377a750d.md]
Still CSRF
[CSRF][Update with Vendor Additions f997c819ef0640228d3312474cc2dd4b/CSRF 17a149c7e7a74ec58fd7a5fbaf25a6eb.md]
Check if the validation script can be changed to fit. The comma after the first variable declaration ended the declaration before the confirm password could be declared.
isBlank = _fn.validate.isBlank($el);
confirmPassword = true;
Test the current status with LMS and CMS
[x] Login
[x] Register
[Fix Register Page](Update with Vendor Additions f997c819ef0640228d3312474cc2dd4b/Fix Register Page 8de09abfb06a46729784cb20dc834c8b.md)
Once done create a new image from this repo
Add to the requirements list for tutor → This needs to be a yaml plugin.
pip install aliyun-python-sdk-core
echo "aliyun-python-sdk-core" >> "$(tutor config printroot)/env/build/openedx/requirements/private.txt"
[YAML Plugin for Additional Dependency](Update with Vendor Additions f997c819ef0640228d3312474cc2dd4b/YAML Plugin for Additional Dependency 1dce9165a34b43288a127e382083a982.md)
YAML Plugin for the Additional Settings in the settings file#
Create a new image with tutor using the edited edx-platform
tutor images build openedx \
--build-arg EDX_PLATFORM_REPOSITORY="https://<PAT>github.com/uetuluk/openedx-tutor.git" \
--build-arg EDX_PLATFORM_VERSION=main \
--docker-arg="--no-cache"
https://www.github.com/uetuluk/openedx-tutor.git
PAT located here - “C:\Users\uet200\Documents\repo_pat.txt”