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

Bug Fix:Update dev.to check to use DEV Community #12082

Merged
merged 1 commit into from
Dec 30, 2020
Merged

Conversation

mstruve
Copy link
Contributor

@mstruve mstruve commented Dec 30, 2020

Recently we changed our site name on dev.to from DEV to DEV Community. This is used in our code in a couple of places and needs to be updated. From a prod console

irb(main):002:0> SiteConfig.community_name == "DEV Community"
=> true

Without the guard clauses working properly we enqueued our Email Digest worker which takes hours to complete for DEV bc of all the users. Since we restart Sidekiq on every deployment, this worker was continuously restarting which is why the duplicate emails were getting sent.

@mstruve mstruve requested a review from a team as a code owner December 30, 2020 18:16
@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Dec 30, 2020
@pr-triage pr-triage bot added PR: partially-approved bot applied label for PR's where a single reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Dec 30, 2020
@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: partially-approved bot applied label for PR's where a single reviewer approves changes labels Dec 30, 2020
@mstruve mstruve merged commit b94c95f into master Dec 30, 2020
@mstruve mstruve deleted the mstruve/dev-name-fix branch December 30, 2020 18:41
@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 Dec 30, 2020
@vaidehijoshi
Copy link
Contributor

I wonder if we could use the dev_to method here instead of relying on the community name. I had no idea that we were checking against the hardcoded string!

def self.dev_to?

@maestromac
Copy link
Contributor

Yeah @vaidehijoshi I was just thinking the same thing. I think the domain name is less prone to change

@mstruve
Copy link
Contributor Author

mstruve commented Dec 30, 2020

100% game for that. I will make a follow-up PR!

@mstruve
Copy link
Contributor Author

mstruve commented Dec 30, 2020

#12083

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

6 participants