Skip to content

Commit

Permalink
DEV: disable missing post uploads check by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinothkannans committed Apr 4, 2019
1 parent 47eefb9 commit 2c7a508
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/scheduled/ensure_post_uploads_existence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class EnsurePostUploadsExistence < Jobs::Scheduled
MISSING_UPLOADS ||= "missing_uploads"

def execute(args)
return unless SiteSetting.enable_missing_post_uploads_check

PostCustomField
.where(name: MISSING_UPLOADS)
.where("created_at < ?", 1.month.ago)
Expand Down
3 changes: 3 additions & 0 deletions config/site_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,9 @@ developer:
enable_safe_mode:
default: true
client: true
enable_missing_post_uploads_check:
default: false
hidden: true

embedding:
feed_polling_enabled:
Expand Down

2 comments on commit 2c7a508

@eviltrout
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW this broke the build and I had to follow up with this: c9ddc6c

It's also always a good idea to add a test when you add a new setting.

@vinothkannans
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Thanks for the fix.

Please sign in to comment.