Skip to main content

Open edX Learning Core and Tagging.

Project description

PyPI CI Codecov Documentation Supported Python versions License

Overview

The openedx_learning package holds Django apps that represent core learning concepts and data models that have been extracted from edx-platform. At the moment, this repo also contains the openedx_tagging package, but this will likely be moved out in the future.

Motivation

The short term goal of this project is to create a small, extensible core that is easier to reason about and write extensions for than edx-platform. The longer term goal is to create a more nimble core learning platform, enabling rapid experimentation and drastic changes to the learner experience that are difficult to implement with Open edX today.

Replacing edx-platform is explicitly not a goal of this project, as only a small fraction of the concepts in edx-platform make sense to carry over here. When these core concepts are extracted and the data migrated, edx-platform will import apps from this repo and make use of their public in-process APIs.

Architecture

Parts

  • openedx_learning.lib is for shared utilities, and may include things like custom field types, plugin registration code, etc.

  • openedx_learning.apps contains our Learning Core Django apps, where foundational data structures and APIs will live. The first of these is authoring, which holds apps related to the editing and publishing of learning content.

  • openedx_tagging.core contains the core Tagging app, which provides data structures and apis for tagging Open edX objects.

Learning Core Package Dependencies

Learning Core code should never import from edx-platform.

We want to be very strict about dependency management internally as well. Please read the .importlinter config file file and the Python API Conventions ADR for more details.

Model Conventions

We have a few different identifier types in the schema, and we try to avoid _id for this because Django uses that convention to reference IDs in other models/tables. So instead we have:

  • id is the auto-generated, internal row ID and primary key. This never changes. Data models should make foreign keys to this field, as per Django convention.

  • uuid is a randomly generated UUID4. This is the stable way to refer to a row/resource from an external service. This never changes. This is separate from id mostly because there are performance penalties when using UUIDs as primary keys with MySQL.

  • key is intended to be a case-sensitive, alphanumeric key, which holds some meaning to library clients. This is usually stable, but can be changed, depending on the business logic of the client. The apps in this repo should make no assumptions about it being stable. It can be used as a suffix. Since key is a reserved name on certain database systems, the database field is _key.

  • num is like key, but for use when it’s strictly numeric. It can also be used as a suffix.

See Also

The structure of this repo follows [OEP-0049](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0049-django-app-patterns.html) where possible, and also borrows inspiration from:

Code Overview

The openedx_learning.apps package contains all our Django applications.

Development Workflow

One Time Setup

# Clone the repository
git clone git@github.com:ormsbee/openedx-learning.git
cd openedx-learning

# Set up a virtualenv using virtualenvwrapper with the same name as the repo and activate it
mkvirtualenv -p python3.11 openedx-learning

Every time you develop something in this repo

# Activate the virtualenv
workon openedx-learning

# Grab the latest code
git checkout master
git pull

# Install/update the dev requirements
make requirements

# Run the tests and quality checks (to verify the status before you make any changes)
make validate

# Make a new branch for your changes
git checkout -b <your_github_username>/<short_description>

# Using your favorite editor, edit the code to make your change.
vim …

# Run your new tests
pytest ./path/to/new/tests

# Run all the tests and quality checks
make validate

# Commit all your changes
git commit …
git push

# Open a PR and ask for review.

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

This repo is in a very experimental state. Discussion using GitHub Issues is welcome, but you probably don’t want to make contributions as everything can shift around drastically with little notice.

Reporting Security Issues

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

Help

If you’re having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace.

For more information about these options, see the Getting Help page.

Change Log

Unreleased

[0.1.0] - 2021-08-08

Added

  • 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

openedx_learning-0.17.0.tar.gz (128.6 kB view details)

Uploaded Source

Built Distribution

openedx_learning-0.17.0-py2.py3-none-any.whl (165.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file openedx_learning-0.17.0.tar.gz.

File metadata

  • Download URL: openedx_learning-0.17.0.tar.gz
  • Upload date:
  • Size: 128.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for openedx_learning-0.17.0.tar.gz
Algorithm Hash digest
SHA256 5f4064b4548793830bfe19382afd490043f6a6c3651dbf121be5458b37c7e863
MD5 f48ff6719a4eb189b28ab9b4b4ff60c2
BLAKE2b-256 5641e045b84f33bbc55edc0fae8f6e4c0b08ba2b13b79346c89a6cc4e6d373fa

See more details on using hashes here.

File details

Details for the file openedx_learning-0.17.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for openedx_learning-0.17.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c1e0824b5e0e586cd17d4aec23120b9f6b0b853d003b91881f63d118e63099f9
MD5 632835ff2d5184eb71d7a786dd8990e0
BLAKE2b-256 fcc027a997989a9169129d77a9319b939e15b89b781a98de119cbc29e99a1a90

See more details on using hashes here.

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