chore: support multi-org group sync with runtime configuration (#14578)

- Implement multi-org group sync
- Implement runtime configuration to change sync behavior
- Legacy group sync migrated to new package
This commit is contained in:
Steven Masley
2024-09-11 13:43:50 -05:00
committed by GitHub
parent 7de576b596
commit 6a846cdbb8
27 changed files with 1920 additions and 341 deletions
+9
View File
@@ -2,6 +2,7 @@ package runtimeconfig
import (
"context"
"encoding/json"
"fmt"
"golang.org/x/xerrors"
@@ -93,3 +94,11 @@ func (e *RuntimeEntry[T]) name() (string, error) {
return e.n, nil
}
func JSONString(v any) string {
s, err := json.Marshal(v)
if err != nil {
return "decode failed: " + err.Error()
}
return string(s)
}