xmidt-org / tr1d1um
Showing 1 of 6 files from the diff.
Other files ignored by Codecov
CHANGELOG.md has changed.
go.sum has changed.
go.mod has changed.
tr1d1um.yaml has changed.

@@ -181,19 +181,18 @@
Loading
181 181
		}
182 182
		defer stopWatch()
183 183
184 -
		var webhookValidationConfig ancla.ValidatorConfig
185 -
		err = v.UnmarshalKey(webhookConfigKey+".validation", &webhookValidationConfig)
186 -
		if err != nil {
187 -
			fmt.Fprintf(os.Stderr, "Failed to initialize webhook validation config: %s\n", err.Error())
188 -
			return 1
189 -
		}
190 -
		builtValidators, err := ancla.BuildValidators(webhookValidationConfig)
184 +
		builtValidators, err := ancla.BuildValidators(webhookConfig.WebhookValidationConfig)
191 185
		if err != nil {
192 186
			fmt.Fprintf(os.Stderr, "Failed to initialize webhook validators: %s\n", err.Error())
193 187
			return 1
194 188
		}
195 189
196 -
		addWebhookHandler := ancla.NewAddWebhookHandler(svc, ancla.HandlerConfig{MetricsProvider: metricsRegistry, V: builtValidators})
190 +
		addWebhookHandler := ancla.NewAddWebhookHandler(svc, ancla.HandlerConfig{
191 +
			MetricsProvider:   metricsRegistry,
192 +
			V:                 builtValidators,
193 +
			DisablePartnerIDs: webhookConfig.DisablePartnerIDs,
194 +
		})
195 +
197 196
		getAllWebhooksHandler := ancla.NewGetAllWebhooksHandler(svc)
198 197
199 198
		APIRouter.Handle("/hook", authenticate.Then(addWebhookHandler)).Methods(http.MethodPost)
Files Coverage
common 60.34%
stat 73.02%
translation 84.79%
basculeLogging.go 40.00%
main.go 0.00%
Project Totals (13 files) 46.14%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading