Skip to content
This repository was archived by the owner on Apr 27, 2023. It is now read-only.

Adding the possibility to not pull changes for repositories for a given period and fix readme#76

Merged
lukaszlenart merged 4 commits into
softwaremill:masterfrom
twasyl:master
Jun 1, 2016
Merged

Adding the possibility to not pull changes for repositories for a given period and fix readme#76
lukaszlenart merged 4 commits into
softwaremill:masterfrom
twasyl:master

Conversation

@twasyl

@twasyl twasyl commented May 27, 2016

Copy link
Copy Markdown
Contributor

In order to save network bandwith as well as uneeded logs, the configuration of Codebrag gets enriched with a new parameter store in the codebrag block. This parameter is of the following form:

pull-sleep-period {
    enabled = true
    from = 22
    to = 5
}

This configuration says that Codebrag is allowed to not pull changes for repositories from 10PM to 4:59AM. If enabled is set to false then Codebrag will always pull changes.

This PR also fixes an error in the README.md : in order to run the H2 console from sbt we must call codebrag-dao/runH2Console and not codebrag-dao/run-h2-console.

…en period (especially during the night) as well as fixing README for running the H2 console from sbt.

lazy val invitationExpiryTime: ReadablePeriod = Period.millis(getMilliseconds("codebrag.invitation-expiry-time", 24.hours.toMillis).toInt)

lazy val pullSleepPeriodEnabled = getBoolean("codebrag.pull-sleep-period.enabled", default = true)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about using false by default? Thus will keep backward comaptibility


trait EmailNotificationConfig extends ConfigWithDefault {
lazy val userNotifications: Boolean = getBoolean("email-notifications.enabled", default = true)
lazy val userNotifications: Boolean = getBoolean("email-notifications.enabled", default = false)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why did you switch this to false?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry, this is a mistake. Il altered the wrong line. I will push it back with true.

@lukaszlenart

Copy link
Copy Markdown
Member

No more comments from my side, great work! 👍

@lukaszlenart
lukaszlenart merged commit 689fbff into softwaremill:master Jun 1, 2016
@twasyl

twasyl commented Jun 1, 2016

Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants