With https://github.com/mitodl/ocw-hugo-projects/pull/292 merged, the default metadata will have a title field. When migration is run on older data to create new external resource objects, those objects will have a title in their metadata field. This will cause the menu item selection UI to misbehave on Studio. This is because it prefers website_content.metadata.title over website_content.title (which is the default location of the title).
This PR prevents title from being added to the metadata and keeps the structure consistent with what normal flow gets us.
This PR also fixes a spelling error in a field name has_external_licence_warning -> has_external_license_warning.
What are the relevant tickets?
Relates to https://github.com/mitodl/ocw-hugo-projects/pull/292
Description (What does it do?)
With https://github.com/mitodl/ocw-hugo-projects/pull/292 merged, the default metadata will have a
title
field. When migration is run on older data to create new external resource objects, those objects will have atitle
in their metadata field. This will cause the menu item selection UI to misbehave on Studio. This is because it preferswebsite_content.metadata.title
overwebsite_content.title
(which is the default location of the title).This PR prevents
title
from being added to the metadata and keeps the structure consistent with what normal flow gets us.This PR also fixes a spelling error in a field name
has_external_licence_warning
->has_external_license_warning
.How can this be tested?
ocw-studio
setup.external-resource-add-title-field
.title
field.has_external_license_warning
field with these exact spellings.