You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#. List the details about the contract's courseware:
57
63
``b2b_list courseware --contract <contract ID>``
58
64
#. Get the enrollment codes for the contract:
@@ -183,9 +189,17 @@ Courseware Setup in edX
183
189
184
190
B2B courses in edX should be set up in a particular fashion, both to make sure we can identify them within edX easily, and to allow the system to automatically create runs for new contracts.
185
191
186
-
Each B2B course starts with a source course. Usually, these are separate courses and runs, but not always. If you're creating a new course, it should be created in edX with the organization ``UAI_SOURCE`` and the run tag ``SOURCE``. A corresponding course run in MITx Online should also be created. The ``import_courserun`` command can be used to help facilitate this. If you want to use an existing course, you should create a ``SOURCE`` run for it from the run you want to use as the source course in edX.
192
+
Each B2B course starts with a source course and courserun. Usually, these are separate courses and runs, but not always.
193
+
194
+
195
+
* If using a separate course & courserun, it should be created in edX with the organization ``UAI_SOURCE`` and run tag ``SOURCE``. The ``import courserun`` command can assist in importing the course from OpenEdx into MITxOnline.
196
+
* If reusing an existing course, create a new courserunw with run tag ``SOURCE``.
197
+
198
+
199
+
**In both cases:** The courserun should have the `is_source_run` flag set to `True` in MITxOnline (this can be done via Django Admin).
200
+
201
+
When associating a course or program with a contract, the ``b2b_contract courseware`` command will try to create a contract-specific run for each source course (either the one you've specified or the ones that are in the specified program).
187
202
188
-
When associating a course or program with a contract, the ``b2b_contract courseware`` command will try to create a contract-specific run for each source course (either the one you've specified or the ones that are in the specified program). It does this by trying to find an appropriate source course run for the course in MITx Online. It will look first for a course run with the run tag ``SOURCE`` - if it can't find this, it will use whatever the first course run is in database order. **This is probably not what you want** - you should try to have a ``SOURCE`` course run if at all possible.
189
203
190
204
Course runs will be created using the start/end date of the contract, if those dates are set. If the contract is open-ended, the runs will be created with the current time/date as the course and enrollment start date and no end date. The runs will be created with the organization set to ``UAI_`` and the organization key set in the org record, and the run key will be set to the current year, ``C``, and the ID of the new contract.
0 commit comments