mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
api: include ent fuzzy struct types in oss
Small change to pull in ent struct types in a switch statement used by ent. They are benign in oss, this is just to make sure OSS->ENT merges don't create a diff.
This commit is contained in:
@@ -31,6 +31,7 @@ func TestSearch_PrefixSearch(t *testing.T) {
|
||||
|
||||
func TestSearch_FuzzySearch(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
c, s := makeClient(t, nil, nil)
|
||||
defer s.Stop()
|
||||
|
||||
|
||||
@@ -652,7 +652,7 @@ func (s *Search) FuzzySearch(args *structs.FuzzySearchRequest, reply *structs.Fu
|
||||
for _, ctx := range prefixContexts {
|
||||
switch ctx {
|
||||
// only apply on the types that use UUID prefix searching
|
||||
case structs.Evals, structs.Deployments, structs.ScalingPolicies, structs.Volumes:
|
||||
case structs.Evals, structs.Deployments, structs.ScalingPolicies, structs.Volumes, structs.Quotas, structs.Recommendations:
|
||||
iter, err := getResourceIter(ctx, aclObj, namespace, roundUUIDDownIfOdd(args.Prefix, args.Context), ws, state)
|
||||
if err != nil {
|
||||
if !s.silenceError(err) {
|
||||
@@ -668,7 +668,7 @@ func (s *Search) FuzzySearch(args *structs.FuzzySearchRequest, reply *structs.Fu
|
||||
for _, ctx := range fuzzyContexts {
|
||||
switch ctx {
|
||||
// skip the types that use UUID prefix searching
|
||||
case structs.Evals, structs.Deployments, structs.ScalingPolicies, structs.Volumes:
|
||||
case structs.Evals, structs.Deployments, structs.ScalingPolicies, structs.Volumes, structs.Quotas, structs.Recommendations:
|
||||
continue
|
||||
default:
|
||||
iter, err := getFuzzyResourceIterator(ctx, aclObj, namespace, ws, state)
|
||||
|
||||
Reference in New Issue
Block a user