Alerting: Replace IntegrationConfig with IntegrationSchemaVersion (#112010)

* remove unused compat functions

* update to alerting module from pr

* replace IntegrationConfig with IntegrationSchemaVersion

* safely resolve a string into integration type

* change usages of integration config
This commit is contained in:
Yuri Tseretyan
2025-10-07 11:08:16 -04:00
committed by GitHub
parent 66fc694718
commit 7d1c6b6bd2
17 changed files with 76 additions and 318 deletions
@@ -1320,7 +1320,8 @@ func TestIntegrationCRUD(t *testing.T) {
typeSchema, ok := notify.GetSchemaVersionForIntegration(integrationType, schema.V1)
require.True(t, ok)
secretFields := typeSchema.GetSecretFieldsPaths()
for _, field := range secretFields {
for _, fieldPath := range secretFields {
field := fieldPath.String()
if _, ok := fields[field]; !ok { // skip field that is not in the original setting
continue
}