Skip to content

Commit

Permalink
fix: add webhook_retry_schedule and semver_formats to list of configu…
Browse files Browse the repository at this point in the history
…ration options that can be saved to the database
  • Loading branch information
bethesque committed Oct 5, 2017
1 parent c3fd2ed commit 5bab062
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pact_broker/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ class Configuration
:use_case_sensitive_resource_names,
:enable_public_badge_access,
:shields_io_base_url,
:check_for_potential_duplicate_pacticipant_names
:check_for_potential_duplicate_pacticipant_names,
:webhook_retry_schedule,
:semver_formats
]

attr_accessor :log_dir, :database_connection, :auto_migrate_db, :use_hal_browser, :html_pact_renderer
Expand Down Expand Up @@ -55,7 +57,7 @@ def self.default_configuration
# Not recommended to set this to true unless there is no way to
# consistently extract an orderable object from the consumer application version number.
config.order_versions_by_date = false
config.semver_formats = ["%M.%m.%p%s%d","%M.%m", "%M"]
config.semver_formats = ["%M.%m.%p%s%d", "%M.%m", "%M"]
config.webhook_retry_schedule = [10, 60, 120, 300, 600, 1200] #10 sec, 1 min, 2 min, 5 min, 10 min, 20 min => 38 minutes
config.check_for_potential_duplicate_pacticipant_names = true
config
Expand Down

0 comments on commit 5bab062

Please sign in to comment.