Service to manage access to content for enterprise users.
Setting up enterprise-access
Prerequisites
- Set the
DEVSTACK_WORKSPACE
env variable (either locally or in your shell config file:.bash_rc
,.zshrc
, or equivalent) to the folder which contains this repo and the devstack repo. e.gexport DEVSTACK_WORKSPACE=/home/<your_user>/edx
- Set up devstack
Quick Setup
$ make docker_build $ make dev.provision $ make dev.up $ make app-shell # make requirements # make validate # to run full test suite
The server will run on localhost:18270
Running migrations
$ make app-shell # python ./manage.py migrate
A note on creating SubsidyRequestCustomerConfiguration Objects locally
Important note
In a devstack enviroment, login to the LMS and navigate to any MFE before creating SubsidyRequestCustomerConfiguration objects in the enterprise-access Django admin
Why
If you create a SubsidyRequestCustomerConfiguration in the Django admin, because we keep track of who changed the field, we need to grab the "who" from somewhere. In our case, we use the jwt payload header combined with the signature, which will be populated in your cookies when you go to an MFE while logged in. We can't use the edx-jwt-cookie outright because it won't be set by default when navigating to the django admin.
Analytics
This project integrates with Segment and sends events through the analytics package. Events are dispatched in endpoints that modify relevant data by calling track_event in the track app. See segment_events.rst for more details on currently implemented events.
Every time you want to contribute something in this repo
# Make a new branch for your changes git checkout -b <your_github_username>/<short_description> # Run your new tests make app-shell 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!
Documentation
(TODO: Set up documentation)
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.
Even though they were written with edx-platform
in mind, the guidelines
should be followed for all Open edX projects.
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
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.