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

6.001 S05 projects page didn't import #475

Open pdpinch opened 2 years ago

pdpinch commented 2 years ago

Super simple page

legacy: https://old.ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/projects/ nextgen: https://ocw.mit.edu/courses/6-001-structure-and-interpretation-of-computer-programs-spring-2005/pages/projects/ github: https://github.mit.edu/mitocwcontent/6.001-spring-2005/blob/main/content/pages/projects.md

Related Issues

Wassaf-Shahzad commented 2 years ago

@pdpinch, I did some RnD and for my local setup ocw-to-hugo successfully parsed the projects page.

Screenshot 2022-02-25 at 2 55 45 PM

It could be that I am missing something

pdpinch commented 2 years ago

Can you compare the output of ocw-to-hugo that you got with the contents of https://github.mit.edu/mitocwcontent/6.001-spring-2005/blob/main/content/pages/projects.md which is empty?

We may need to import this course again, or at least import this page.

Wassaf-Shahzad commented 2 years ago

Can you compare the output of ocw-to-hugo that you go with the contents of https://github.mit.edu/mitocwcontent/6.001-spring-2005/blob/main/content/pages/projects.md which is empty?

We may need to import this course again, or at least import this page.

For me the project.md is populated with the markdown I can share a screenshot if needed.

pdpinch commented 2 years ago

Please consult with @gumaerc or @mbertrand about how to to

  1. update the ocw-to-hugo output for this course
  2. how to import this page into studio, without overwriting the rest of the course (which may have been editing in studio already)

If there's no way to import only one page, it may be easier to just create the page through the web ui and paste in the content.

MAbdurrehman12 commented 2 years ago

@Wassaf-Shahzad Is it the same issue here? https://ocwnext-rc.odl.mit.edu/courses/15-071-the-analytics-edge-spring-2017/pages/an-introduction-to-analytics/working-with-data-an-introduction-to-r/ This course has several other blank pages too image

mbertrand commented 2 years ago

The page content is present in the ocw-to-hugo-output-production S3 bucket for the following pages: 6-001-structure-and-interpretation-of-computer-programs-spring-2005/content/pages/projects.md 15-071-the-analytics-edge-spring-2017/content/pages/an-introduction-to-analytics/working-with-data-an-introduction-to-r.md

So the problem seems to be with importing these pages into ocw-studio. Once the cause is fixed, maybe one way to reimport these back into ocw-studio is to delete these particular WebsiteContent pages in django admin or shell and then run manage.py overwrite_ocw_content --create-new --bucket <rc or prod bucket> --filter 6-001-structure-and-interpretation-of-computer-programs-spring-2005,15-071-the-analytics-edge-spring-2017 (but only on RC at first).

pdpinch commented 2 years ago

I ended up copying and pasting the page content.

For some reason the SCM files didn't come over. I'll close this when I've tracked them down.