[MM-49929] Work templates: allow simple users to list marketplace plugins (#22151)
Этот коммит содержится в:
@@ -89,6 +89,7 @@ type MarketplacePluginFilter struct {
|
||||
Platform string
|
||||
PluginId string
|
||||
ReturnAllVersions bool
|
||||
RemoteOnly bool
|
||||
}
|
||||
|
||||
// ApplyToURL modifies the given url to include query string parameters for the request.
|
||||
@@ -104,6 +105,7 @@ func (filter *MarketplacePluginFilter) ApplyToURL(u *url.URL) {
|
||||
q.Add("enterprise_plugins", strconv.FormatBool(filter.EnterprisePlugins))
|
||||
q.Add("cloud", strconv.FormatBool(filter.Cloud))
|
||||
q.Add("local_only", strconv.FormatBool(filter.LocalOnly))
|
||||
q.Add("remote_only", strconv.FormatBool(filter.RemoteOnly))
|
||||
q.Add("platform", filter.Platform)
|
||||
q.Add("plugin_id", filter.PluginId)
|
||||
q.Add("return_all_versions", strconv.FormatBool(filter.ReturnAllVersions))
|
||||
|
||||
Ссылка в новой задаче
Block a user