Skip to main content

A edx-platform plugin for learner recommendations.

Project description

License Status

A plugin for personalized recommendations

Please tag @openedx/vanguards on any PRs or issues. Thanks!

Overview

The edx-recommendations is a Django app that serves REST API endpoints for getting personalized recommendations for learner. It used different sources like Algolia and Amplitude for recommendations.

edx-recommendations is a plugin that runs under lms. It uses same configuration settings as defined in lms. It can be used by installing in edx-platform.

How to install locally

  1. Clone this repo into ../src/ directory (relative to your “devstack” repo location). This will mount the directory
    in a way that is accessible to the lms container.
  2. From lms-shell, uninstall edx-recommendations and install your local copy. You can run the following command:

    pip uninstall edx-recommendations -y; pip install -e /edx/src/edx-recommendations

How to create a new release

  1. Checkout to a new branch and increment __version__ by the smallest possible value located in edx-recommendations/__init__.py.
    This will allow edx-platform to pick up the new version.
  2. Update the CHANGELOG.rst with the brief description of your changes.

  1. Once a branch has been merged, it is necessary to create a release on github, specifying the new version from
    __version__ set above.

Testing

edx-recommendations has an assortment of test cases and code quality checks to catch potential problems during development. To run them all in the version of Python you chose for your virtualenv:

$ make validate

To run just the unit tests:

$ make test

To run just the unit tests and check diff coverage

$ make diff_cover

To run just the code quality checks:

$ make quality

To run the unit tests under every supported Python version and the code quality checks:

$ make test-all

To generate and open an HTML report of how much of the code is covered by test cases:

$ make coverage

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

The pull request description template should be automatically applied if you are creating a pull request from GitHub. Otherwise you can find it at PULL_REQUEST_TEMPLATE.md.

The issue report template should be automatically applied if you are creating an issue on GitHub as well. Otherwise you can find it at ISSUE_TEMPLATE.md.

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

Unreleased

[1.0.6] - 2023-09-25

What’s Changed * Updated settings file and default values

[1.0.5] - 2023-09-25

What’s Changed * Fixed formatting for PyPI release

[1.0.4] - 2023-09-25

What’s Changed * Added PyPI publish workflow for the package

[1.0.3] - 2023-09-22

What’s Changed * Added Support for Django 4.2

[1.0.2] - 2023-08-25

What’s Changed

  • Added recommendations unavailable event for learner home amplitude recommendations

  • Removed constraint for edx-drf-extensions

Documentation Updates

  • Updated docstring for cross product recommendations api endpoint

[1.0.0] - 2023-08-09

What’s Changed

  • Moved existing recommendations APIs to this plugin

  • Added tests for the APIs and utils

Documentation Updates

  • Added purpose of this repo as an ADR

  • Added pull request template and updated README file with initial setup guide

[0.1.0] – 2023-05-15

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edx-recommendations-1.0.6.tar.gz (26.8 kB view hashes)

Uploaded Source

Built Distribution

edx_recommendations-1.0.6-py2.py3-none-any.whl (17.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page