Skip to content
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

Migrate delayed job that updates media url for podcast episodes #5729

Conversation

VegaFromLyra
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

  • Sidekiq version of delayed job and updating services that used the
    delayed job
  • Intentionally removed the defensive check in the sidekiq version. If
    the episode is missing and there's worker scheduled to update it's media
    url then that reveals a bug elsewhere and should fail fast instead of
    skipping ahead.
  • Also excluded the ambiguous block rule for rspecs since that
    conflicts with the rspec expect block, found that recommentation
    thanks to Lint/AmbiguousBlockAssociation with Rspec syntax rubocop/rubocop#4222 (and rubocop
    was complaining about this in the pre-commit hook for these changes)

Related Tickets & Documents

#5305

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

* Sidekiq version of delayed job and updating services that used the
delayed job
* Intentionally removed the defensive check in the sidekiq version. If
the episode is missing and there's worker scheduled to update it's media
url then that reveals a bug elsewhere and should fail fast instead of
skipping ahead.
* Also excluded the ambiguous block rule for rspecs since that
conflicts with the rspec `expect` block, found that recommentation
thanks to rubocop/rubocop#4222 (and rubocop
was complaining about this in the pre-commit hook for these changes)
@VegaFromLyra VegaFromLyra requested a review from a team January 26, 2020 01:11
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jan 26, 2020
Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good calls! I'm going to ping @lightalloy to review the choice on the podcast worker but it makes sense to me :)

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Jan 26, 2020
Copy link
Contributor

@mstruve mstruve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Going to push this through since @lightalloy is on vacation for the next week.

@mstruve mstruve merged commit 11adeb3 into forem:master Jan 27, 2020
@pr-triage pr-triage bot added PR: merged bot applied label for PR's that are merged and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Jan 27, 2020
@VegaFromLyra VegaFromLyra deleted the vegafromlyra/migrate-podcast-episodes-media-url-updater-5305 branch January 27, 2020 18:19
VegaFromLyra added a commit to VegaFromLyra/dev.to that referenced this pull request Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants