docbrown/spec/support/fixtures
Daniel Uber 913ca720a8
Don't create podcast episodes without any media (#17449)
* Don't create podcast episodes without a media_url

There is an early return from add_media_url to prevent using an empty
enclosure_url, which avoids errors in
`GetMediaUrl.call(a_blank_value)`, however there's also a not null
constraint on podcast_episodes.media_url in the database, which causes
upsert to raise an error.

Returning early here avoids the error (which had halted the worker).

See also
https://app.honeybadger.io/projects/66984/faults/80833402

This error happens regularly, 96 times per day in DEV, it looks like at least
one podcast feed_url is for an rss feed filtered by /tag/podcast/,
(and at least one post was tagged "podcast" but didn't include any
media to get).

My understanding is at worst we'll ignore the error silently.

* Add test cases

given a blog post (not a podcast episode, no media url), don't raise
any error, don't create any episode.

Included codepunk.io feed that was showing this issue initially.
2022-04-27 11:21:03 -05:00
..
data_update_scripts Save Data Update Script errors to database and show them on http://localhost:3000/admin/data_update_scripts (#12348) 2021-01-21 14:48:34 +01:00
images Detect animated images in articles asynchronously (#13766) 2021-06-01 10:34:04 +02:00
podcasts Don't create podcast episodes without any media (#17449) 2022-04-27 11:21:03 -05:00
vcr_cassettes use vcr on liquid tag spec (#17171) 2022-04-07 15:53:34 -04:00
github_issue.json Initial commit 2018-02-28 16:11:08 -05:00
rss-example.xml Initial commit 2018-02-28 16:11:08 -05:00
sample_article.txt Initial commit 2018-02-28 16:11:08 -05:00
sample_article_template.txt Initial commit 2018-02-28 16:11:08 -05:00
sample_article_template_spec.txt Spelling (#15702) 2021-12-07 06:59:10 -07:00
sample_blockquotes_template.txt Initial commit 2018-02-28 16:11:08 -05:00
sample_table_template.txt Initial commit 2018-02-28 16:11:08 -05:00
stream_feed_1.json Initial commit 2018-02-28 16:11:08 -05:00