This PR adds the new fields learning_resource_types and resource_title to the OCW resource report. Note that an empty array of learning_resource_types is treated as null. In addition, the fields in the intermediate resources model have been alphabetized for improved readability.
How can this be tested?
Run the following commands; the tests should all pass
What are the relevant tickets?
Resolves https://github.com/mitodl/hq/issues/3894#issuecomment-2231482794.
Description (What does it do?)
This PR adds the new fields
learning_resource_types
andresource_title
to the OCW resource report. Note that an empty array oflearning_resource_types
is treated asnull
. In addition, the fields in the intermediate resources model have been alphabetized for improved readability.How can this be tested?
Run the following commands; the tests should all pass
Run the following query in https://mitol.galaxy.starburst.io/query-editor to see the result of the above tables:
Then, verify that the new fields are present in the table, using a query like