Fixed encoding & URL issues for users & groups pages (#896)

* Fixed encoding & URL issues for users & groups pages
* Update portal-ui/src/screens/Console/Users/ListUsers.tsx

Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Alex
2021-07-23 20:37:34 -05:00
committed by GitHub
parent 6c7bfe6514
commit 4fdf9a1190
48 changed files with 793 additions and 691 deletions

View File

@@ -26,7 +26,6 @@ import (
"errors"
"net/url"
golangswaggerpaths "path"
"strings"
)
// UpdateGroupURL generates an URL for the update group operation
@@ -57,14 +56,7 @@ func (o *UpdateGroupURL) SetBasePath(bp string) {
func (o *UpdateGroupURL) Build() (*url.URL, error) {
var _result url.URL
var _path = "/groups/{name}"
name := o.Name
if name != "" {
_path = strings.Replace(_path, "{name}", name, -1)
} else {
return nil, errors.New("name is required on UpdateGroupURL")
}
var _path = "/group"
_basePath := o._basePath
if _basePath == "" {
@@ -72,6 +64,15 @@ func (o *UpdateGroupURL) Build() (*url.URL, error) {
}
_result.Path = golangswaggerpaths.Join(_basePath, _path)
qs := make(url.Values)
nameQ := o.Name
if nameQ != "" {
qs.Set("name", nameQ)
}
_result.RawQuery = qs.Encode()
return &_result, nil
}