As a follow-up from #388, we need to handle the new realtionship-style sameAs fields in the Course Admin. Currently, I think the Course Admin is going to throw an error if a user tries to add a SameAs relationship on a course, as the server is going to expect a UUID. We need to:
Generate a list of valid parent course options with their UUIDs
Throw those values in a Combobox with a "None" option
Allow for changing/removing the parent course
Send the UUID field to the server with the other data
We should make sure to apply our validation rules to generate the list of parents, which are:
A course can only have one parent
The parent course cannot be the child of any other course
A child course cannot be the parent of any other course
We should also double-check those rules on the server-side.
As a follow-up from #388, we need to handle the new realtionship-style
sameAs
fields in the Course Admin. Currently, I think the Course Admin is going to throw an error if a user tries to add a SameAs relationship on a course, as the server is going to expect a UUID. We need to:Combobox
with a "None" optionWe should make sure to apply our validation rules to generate the list of parents, which are:
We should also double-check those rules on the server-side.