* MM-50960 - store system organization name * restore the preparing workspace plugins and invite screens * add back the page lines for the design * add lines back and organize styles * set back documentation to monorepo style and disable board as a product * fix organization link and style skip button * create team on organization name screen continue button click * make sure there are not already created team and if so just update team name * update the team display name if team has already been created * cover error scenarios during team creation * add pr feedback and add a couple of unit tests * fix translation server error; make sure only update display name if it has changed in the form * temp advances * rewrite unit tests using react-testing library; fix unit tests * fix translations * make sure the launching workspace finish in cloud installations * remove redundant validation * fix unit tests * remove unintended config value left after merge conflict
33 строки
950 B
Go
33 строки
950 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
import (
|
|
"encoding/json"
|
|
"io"
|
|
)
|
|
|
|
// CompleteOnboardingRequest describes parameters of the requested plugin.
|
|
type CompleteOnboardingRequest struct {
|
|
Organization string `json:"organization"` // Organization is the name of the organization
|
|
InstallPlugins []string `json:"install_plugins"` // InstallPlugins is a list of plugins to be installed
|
|
}
|
|
|
|
func (r *CompleteOnboardingRequest) Auditable() map[string]interface{} {
|
|
return map[string]interface{}{
|
|
"install_plugins": r.InstallPlugins,
|
|
}
|
|
}
|
|
|
|
// CompleteOnboardingRequest decodes a json-encoded request from the given io.Reader.
|
|
func CompleteOnboardingRequestFromReader(reader io.Reader) (*CompleteOnboardingRequest, error) {
|
|
var r *CompleteOnboardingRequest
|
|
err := json.NewDecoder(reader).Decode(&r)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return r, nil
|
|
}
|