-
Notifications
You must be signed in to change notification settings - Fork 3
Change readable_id values for podcasts and episodes #1232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f8158a3 to
13a1d96
Compare
6887b98 to
243330f
Compare
|
@mbertrand I'm not exactly sure this did what it was supposed to do when I ran it, but we should be sure it's not something with my local data that caused the issue. I first backpopulated my podcasts on It seems kind of odd that there would be only 4 published matches, no? I added a podcast to a learning path a while back as part of some testing, and it is still part of that list, but the https://open-api.c4103.com/api/v1/learningpaths/5987/items/ {
"id": 2625,
"resource": {
"id": 6014,
"topics": [],
"offered_by": null,
"platform": {
"code": "podcast",
"name": "Podcast"
},
"course_feature": [],
"departments": [],
"certification": false,
"certification_type": {
"code": "none",
"name": "No Certificate"
},
"prices": [
"0.00"
],
"runs": [],
"image": {
"id": 4663,
"url": "[https://megaphone.imgix.net/podcasts/b0ad37e4-2754-11ef-9e47-276f6a2f4171/image/730be6c9cb033f01c6d89d6f5d025c0d.jpg?ixlib=rails-4.3.1&max-w=3000&max-h=3000&fit=crop&auto=format,compress](https://megaphone.imgix.net/podcasts/b0ad37e4-2754-11ef-9e47-276f6a2f4171/image/730be6c9cb033f01c6d89d6f5d025c0d.jpg?ixlib=rails-4.3.1&max-w=3000&max-h=3000&fit=crop&auto=format%2Ccompress)",
"description": null,
"alt": null
},
"learning_path_parents": [],
"user_list_parents": [],
"views": 0,
"learning_format": [
{
"code": "online",
"name": "Online"
}
],
"free": true,
"resource_category": "learning_material",
"resource_type": "podcast_episode",
"podcast_episode": {
"id": 2449,
"transcript": "",
"episode_link": "https://sloanreview.mit.edu/audio/building-connections-through-open-research-metas-joelle-pineau",
"duration": "2015",
"rss": "<item>\n <title>\n Building Connections Through Open Research: Meta’s Joelle Pineau\n </title>\n <link>\n [https://sloanreview.mit.edu/audio/building-connections-through-open-research-metas-joelle-pineau\n](https://sloanreview.mit.edu/audio/building-connections-through-open-research-metas-joelle-pineau%5Cn) </link>\n <description>\n Joelle Pineau’s curiosity led her to pursue a doctorate in engineering with a focus on robotics, which she describes as her “gateway into AI.” As vice president of AI research at Meta, Joelle leads a team committed to openness in the service of high-quality research, responsible AI development, and community contribution.\nIn this episode, Joelle, who is also a professor at McGill University, weighs the advantages industry and academia each have for conducting artificial intelligence research. She also describes specific AI research projects Meta is working on, including scientific discovery initiatives focused on addressing societal problems like carbon capture. Read the episode transcript here.\nGuest bio:\nJoelle Pineau is vice president of AI research at Meta and a professor at McGill University. Her research focuses primarily on developing new models and algorithms for planning and learning in complex, partially observable domains. She also applies these algorithms to robotics, health care, games, and conversational agents. Pineau serves on the board of the <cite>Journal of Artificial Intelligence Research</cite> and the <cite>Journal of Machine Learning Research</cite>. She has a bachelor’s degree in engineering from the University of Waterloo and master’s degree and doctorate in robotics from Carnegie Mellon University.\n Me, Myself, and AI is a collaborative podcast from MIT Sloan Management Review and Boston Consulting Group and is hosted by Sam Ransbotham and Shervin Khodabandeh. Our engineer is David Lishansky, and the coordinating producers are Allison Ryder and Andy Goffin.\nStay in touch with us by joining our LinkedIn group, AI for Leaders at [mitsmr.com/AIforLeaders](http://mitsmr.com/AIforLeaders) or by following Me, Myself, and AI on LinkedIn.\nWe encourage you to rate and review our show. Your comments may be used in Me, Myself, and AI materials.\n </description>\n <pubDate>\n Tue, 25 Jun 2024 07:00:00 -0000\n </pubDate>\n <itunes:title>\n Building Connections Through Open Research: Meta’s Joelle Pineau\n </itunes:title>\n <itunes:episodeType>\n full\n </itunes:episodeType>\n <itunes:season>\n 8\n </itunes:season>\n <itunes:episode>\n 8\n </itunes:episode>\n <itunes:author>\n MIT Sloan Management Review and Boston Consulting Group (BCG)\n </itunes:author>\n <itunes:image href=\"[https://megaphone.imgix.net/podcasts/b0ad37e4-2754-11ef-9e47-276f6a2f4171/image/730be6c9cb033f01c6d89d6f5d025c0d.jpg?ixlib=rails-4.3.1&max-w=3000&max-h=3000&fit=crop&auto=format,compress\](https://megaphone.imgix.net/podcasts/b0ad37e4-2754-11ef-9e47-276f6a2f4171/image/730be6c9cb033f01c6d89d6f5d025c0d.jpg?ixlib=rails-4.3.1&max-w=3000&max-h=3000&fit=crop&auto=format%2Ccompress%5C)"/>\n <itunes:subtitle/>\n <itunes:summary>\n Joelle Pineau’s curiosity led her to pursue a doctorate in engineering with a focus on robotics, which she describes as her “gateway into AI.” As vice president of AI research at Meta, Joelle leads a team committed to openness in the service of high-quality research, responsible AI development, and community contribution.\nIn this episode, Joelle, who is also a professor at McGill University, weighs the advantages industry and academia each have for conducting artificial intelligence research. She also describes specific AI research projects Meta is working on, including scientific discovery initiatives focused on addressing societal problems like carbon capture. Read the episode transcript here.\nGuest bio:\nJoelle Pineau is vice president of AI research at Meta and a professor at McGill University. Her research focuses primarily on developing new models and algorithms for planning and learning in complex, partially observable domains. She also applies these algorithms to robotics, health care, games, and conversational agents. Pineau serves on the board of the <cite>Journal of Artificial Intelligence Research</cite> and the <cite>Journal of Machine Learning Research</cite>. She has a bachelor’s degree in engineering from the University of Waterloo and master’s degree and doctorate in robotics from Carnegie Mellon University.\n Me, Myself, and AI is a collaborative podcast from MIT Sloan Management Review and Boston Consulting Group and is hosted by Sam Ransbotham and Shervin Khodabandeh. Our engineer is David Lishansky, and the coordinating producers are Allison Ryder and Andy Goffin.\nStay in touch with us by joining our LinkedIn group, AI for Leaders at [mitsmr.com/AIforLeaders](http://mitsmr.com/AIforLeaders) or by following Me, Myself, and AI on LinkedIn.\nWe encourage you to rate and review our show. Your comments may be used in Me, Myself, and AI materials.\n </itunes:summary>\n <content:encoded>\n <p>Joelle Pineau’s curiosity led her to pursue a doctorate in engineering with a focus on robotics, which she describes as her “gateway into AI.” As vice president of AI research at Meta, Joelle leads a team committed to openness in the service of high-quality research, responsible AI development, and community contribution.</p><p>In this episode, Joelle, who is also a professor at McGill University, weighs the advantages industry and academia each have for conducting artificial intelligence research. She also describes specific AI research projects Meta is working on, including scientific discovery initiatives focused on addressing societal problems like carbon capture. Read the episode transcript <a href=\"[https://mitsmr.com/3XsUquf\](https://mitsmr.com/3XsUquf%5C)">here</a>.</p><p>Guest bio:</p><p>Joelle Pineau is vice president of AI research at Meta and a professor at McGill University. Her research focuses primarily on developing new models and algorithms for planning and learning in complex, partially observable domains. She also applies these algorithms to robotics, health care, games, and conversational agents. Pineau serves on the board of the &lt;cite&gt;Journal of Artificial Intelligence Research&lt;/cite&gt; and the &lt;cite&gt;Journal of Machine Learning Research&lt;/cite&gt;. She has a bachelor’s degree in engineering from the University of Waterloo and master’s degree and doctorate in robotics from Carnegie Mellon University.</p><p><strong> </strong><em>Me, Myself, and AI</em> is a collaborative podcast from <em>MIT Sloan Management Review</em> and Boston Consulting Group and is hosted by Sam Ransbotham and Shervin Khodabandeh. Our engineer is David Lishansky, and the coordinating producers are Allison Ryder and Andy Goffin.</p><p>Stay in touch with us by joining our LinkedIn group, AI for Leaders at <a href=\"[https://cms.megaphone.fm/organizations/d9d31c72-668c-11ed-91bd-c3d63f9b708b/podcasts/f17e8dc0-0c38-11ec-bf53-9f4a62c5ca79/episodes/a079ef90-0ee4-11ee-8628-8776634095b4/mitsmr.com/AIforLeaders\](https://cms.megaphone.fm/organizations/d9d31c72-668c-11ed-91bd-c3d63f9b708b/podcasts/f17e8dc0-0c38-11ec-bf53-9f4a62c5ca79/episodes/a079ef90-0ee4-11ee-8628-8776634095b4/mitsmr.com/AIforLeaders%5C)">mitsmr.com/AIforLeaders</a> or by following <em>Me, Myself, and AI</em> on <a href=\"[https://www.linkedin.com/showcase/me-myself-and-ai/\](https://www.linkedin.com/showcase/me-myself-and-ai/%5C)">LinkedIn</a>.</p><p>We encourage you to rate and review our show. Your comments may be used in <em>Me, Myself, and AI </em>materials.</p>\n </content:encoded>\n <itunes:duration>\n 2015\n </itunes:duration>\n <itunes:explicit>\n no\n </itunes:explicit>\n <guid isPermaLink=\"false\">\n me-myself-and-ai02788c41db63357d971e926ddca3bdb3: b0ad37e4-2754-11ef-9e47-276f6a2f4171\n </guid>\n <enclosure length=\"0\" type=\"audio/mpeg\" url=\"[https://pdst.fm/e/chrt.fm/track/2481B9/traffic.megaphone.fm/AMMTO4810589869.mp3?updated=1718730321\](https://pdst.fm/e/chrt.fm/track/2481B9/traffic.megaphone.fm/AMMTO4810589869.mp3?updated=1718730321%5C)"/>\n</item>\n"
},
"readable_id": "building-connections-through-open-research-metas-joelle-pineau8eb5d7a51ed433d2a5ac175fa287943e",
"title": "Building Connections Through Open Research: Meta’s Joelle Pineau",
"description": "Joelle Pineau’s curiosity led her to pursue a doctorate in engineering with a focus on robotics, which she describes as her “gateway into AI.” As vice president of AI research at Meta, Joelle leads a team committed to openness in the service of high-quality research, responsible AI development, and community contribution.\nIn this episode, Joelle, who is also a professor at McGill University, weighs the advantages industry and academia each have for conducting artificial intelligence research. She also describes specific AI research projects Meta is working on, including scientific discovery initiatives focused on addressing societal problems like carbon capture. Read the episode transcript here.\nGuest bio:\nJoelle Pineau is vice president of AI research at Meta and a professor at McGill University. Her research focuses primarily on developing new models and algorithms for planning and learning in complex, partially observable domains. She also applies these algorithms to robotics, health care, games, and conversational agents. Pineau serves on the board of the <cite>Journal of Artificial Intelligence Research</cite> and the <cite>Journal of Machine Learning Research</cite>. She has a bachelor’s degree in engineering from the University of Waterloo and master’s degree and doctorate in robotics from Carnegie Mellon University.\n Me, Myself, and AI is a collaborative podcast from MIT Sloan Management Review and Boston Consulting Group and is hosted by Sam Ransbotham and Shervin Khodabandeh. Our engineer is David Lishansky, and the coordinating producers are Allison Ryder and Andy Goffin.\nStay in touch with us by joining our LinkedIn group, AI for Leaders at [mitsmr.com/AIforLeaders](http://mitsmr.com/AIforLeaders) or by following Me, Myself, and AI on LinkedIn.\nWe encourage you to rate and review our show. Your comments may be used in Me, Myself, and AI materials.",
"full_description": null,
"last_modified": "2024-06-25T07:00:00Z",
"published": true,
"languages": null,
"url": "https://pdst.fm/e/chrt.fm/track/2481B9/traffic.megaphone.fm/AMMTO4810589869.mp3?updated=1718730321",
"professional": false,
"next_start_date": null
},
"position": 0,
"parent": 5987,
"child": 6014
},I checked some other random podcasts and they also seem to have the old style generated For what it's worth, I think Anyway, I'm not exactly sure why my ID's weren't updated. Any ideas? |
|
@gumaerc did you run However, I noticed there may be something off with the # of published podcasts after running this, looking into it now, so I'd recommend holding off on trying again until I sort that out. If you run |
|
@gumaerc made some changes, turns out lots of podcast rss feeds don't have a guid so I switched to an rss url based readable_id instead. |
gumaerc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good after the latest changes. For what it's worth, I did my original testing wrong and missed that I was supposed to run the command again after switching to your branch, but that makes sense.
…bsolete unpublished resources to published replacements
33a93bf to
9fbb9de
Compare
What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/4807
Closes https://github.com/mitodl/hq/issues/4834
Description (What does it do?)
readable_idvalue for podcasts and episodes to equal the guid value returned by the podcast RSS feeds. Note:readable_idis a misleading name for the field, it should probably beunique_idinstead because it's not necessarily a user-friendly id, but that's a potential issue for another day.How can this be tested?
./manage.py backpopulate_podcast_data./manage.py backpopulate_podcast_dataagain, followed by these commands, with or without the delete option:readable_idvalues.