enhancement: add support for caching programs for one site #32380
Conversation
|
Thanks for the pull request, @Faraz32123! 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:
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. Once you've signed the CLA, please allow 1 business day for it to be processed. After this time, you can re-run the CLA check by editing the PR title. If the problem persists, you can tag the |
|
For the record, this PR was opened following this issue: overhangio/tutor-discovery#40 @Faraz32123 you should probably update the PR description. |
|
Hi @Faraz32123! Thanks for this contribution. Please let me know if you have any questions regarding submitting your CLA form. Thanks! |
|
I notice there are some commit-lint failures. Please note that we use conventional commits across Open edX projects. You can read about the details here. Can you please amend your commit messages to follow our standard? |
f91ea92 to
600bc02
Compare
…n with previous behaviour
154be4d to
7ec2caa
Compare
e152ab9 to
d23c0d7
Compare
e9a0b35 to
f68b19f
Compare
|
@mphilbrick211 can I assign it to myself as reviewer? |
1c50928 to
11843da
Compare
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR has been deployed to the production environment. |
…2380) * perf!: add support for caching programs on per site bases
This PR is created as a fix for this issue of tutor-discovery plugin.
When a user runs a command(
tutor local run lms ./manage.py lms cache_programs) for caching programs to their LMS from Discovery, it always fails and shows an error because this command tries to cache programs from multiple sites and LMS is unable to cache programs for development site when running tutor in local environment or vice versa.With this enhancement, user can now add an option
--domain=site_domain_nameto the above command i.e. pass local site domain name to--domainoption when running tutor in local environment or pass development site domain name to--domainoption when running tutor in development environment. As a result no error will occur as this command will cache programs for one site that is given to--domainoption to the command.