mitodl / ocw-to-hugo

A command line utility for taking master.json output from ocw-data-parser and producing markdown for use with hugo-course-publisher
3 stars 0 forks source link

'Related Resources' page for 8.21 F09 that originally had links to external sites is blank #490

Closed mbertrand closed 2 years ago

mbertrand commented 2 years ago

Steps to Reproduce

Go to https://ocw.mit.edu/courses/physics/8-21-the-physics-of-energy-fall-2009/related-resources/ (original page) to see the links.

Go to https://ocw-studio-rc.odl.mit.edu/sites/8-21-the-physics-of-energy-fall-2009/type/page/edit/9fad2290-cea3-2555-2365-517c47137406/ to see the edit page.

Go to https://ocwnext-rc.odl.mit.edu/courses/8-21-the-physics-of-energy-fall-2009/pages/related-resources/ to see the published page.

Expected Behavior

The edit page and published page should have content to duplicate that of the original page.

Actual Behavior

The edit page and published page are blank.

alicewriteswrongs commented 2 years ago

looking at the git history for this file: https://github.mit.edu/ocw-content-rc/8.21-fall-2009/commits/main/content/pages/related-resources.md it looks like it didn't have any content when it was first imported

pdpinch commented 2 years ago

If this was blank on import, I think it's a ocw-to-hugo issue. I'll move it over there.

  1. We should re-run ocw-to-hugo to recreate the missing data
  2. We should figure out how to re-import just the one page (with git? or copy and paste in the django admin? or is there a management command?
mbertrand commented 2 years ago

For #2, I can think of a couple options, should try it out locally and/or on RC first to see if one works better than the other:

mbertrand commented 2 years ago

This was fixed on production with a manual edit. Might be related to #493