openedx / edx-django-utils

edX utilities for Django Application development.
https://edx.readthedocs.io/projects/edx-django-utils/en/latest/
Apache License 2.0
26 stars 20 forks source link

feat: Add manufacture_data django command #369

Closed marlonkeating closed 9 months ago

marlonkeating commented 10 months ago

Description:

This change migrates the manufacture_data django command introduced in https://github.com/openedx/edx-enterprise/pull/1826 to where it can be used outside of the enterprise ecosystem.

JIRA

ENT-7636

Installation/Testing instructions:

In Devstack, prior to being pushed to PyPi

  1. Copy to IDA VM's python path Example: docker cp ~/edx-repos/edx-django-utils/. {container uuid}:/lib/ Where container uuid can be found by running docker ps
  2. Create management command that inherits from manufacture_data.command and imports model factories (Example: https://github.com/openedx/enterprise-catalog/pull/734)
  3. Run manufacture_data management command Example: python ./manage.py manufacture_data --model enterprise_catalog.apps.catalog.models.EnterpriseCatalog --title "Test Catalog"

Merge checklist:

Post merge:

robrap commented 10 months ago

Hello @marlonkeating. I know this is just a draft. I'm going to check in with arch-bom about the planned how and where for developer data. See https://github.com/edx/edx-arch-experiments/issues/138