Skip to content

Commit

Permalink
Optimized appauth groups with environment, and made suborgs created u…
Browse files Browse the repository at this point in the history
…se the default config of its parent org for backups
  • Loading branch information
frikky committed Jun 9, 2024
1 parent aebd610 commit d17d1b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -10097,7 +10097,9 @@ func HandleCreateSubOrg(resp http.ResponseWriter, request *http.Request) {
ActiveApps: newApps,
}

newOrg.Defaults.KmsId = ""
// FIXME: This may be good to auto distribute no matter what
// Then maybe the kms problem won't happen
//newOrg.Defaults.KmsId = ""

parentOrg.ChildOrgs = append(parentOrg.ChildOrgs, OrgMini{
Name: tmpData.Name,
Expand Down
1 change: 1 addition & 0 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,7 @@ type File struct {
type AppAuthenticationGroup struct {
Active bool `json:"active" datastore:"active"`
Label string `json:"label" datastore:"label"`
Environment string `json:"environment" datastore:"environment"`
Id string `json:"id" datastore:"id"`
AppAuths []AppAuthenticationStorage `json:"app_auths" datastore:"app_auths"`
Description string `json:"description" datastore:"description"`
Expand Down

0 comments on commit d17d1b0

Please sign in to comment.