3
0

Remove unneeded analyze dal operation

This commit is contained in:
Tomaž Jerman 2022-10-10 15:01:40 +02:00
parent 1be37ab02e
commit a45a08d91c
2 changed files with 1 additions and 9 deletions

View File

@ -2,6 +2,7 @@ package dalutils
import (
"context"
"github.com/cortezaproject/corteza-server/compose/types"
"github.com/cortezaproject/corteza-server/pkg/dal"
"github.com/cortezaproject/corteza-server/pkg/filter"
@ -204,10 +205,6 @@ func recFilterOperations(f types.RecordFilter) (out dal.OperationSet) {
out = append(out, dal.Paging)
}
if f.IncTotal {
out = append(out, dal.Analyze)
}
if f.Sort != nil {
out = append(out, dal.Sorting)
}

View File

@ -13,9 +13,6 @@ const (
Lookup Operation = "corteza::dal:operation:lookup"
Paging Operation = "corteza::dal:operation:paging"
Sorting Operation = "corteza::dal:operation:sorting"
Analyze Operation = "corteza::dal:operation:analyze"
// @todo reporter operations
)
var (
@ -27,7 +24,6 @@ var (
Lookup,
Paging,
Sorting,
Analyze,
}
createOperations = OperationSet{
@ -46,7 +42,6 @@ var (
Search,
Paging,
Sorting,
Analyze,
}
lookupOperations = OperationSet{