Skip to content

Commit efb9e5d

Browse files
author
Hein
committed
Removed the buggy filter expand columns
1 parent 490ae37 commit efb9e5d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/restheadspec/handler.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,14 +2266,14 @@ func filterExtendedOptions(validator *common.ColumnValidator, options ExtendedRe
22662266
filtered.ComputedQL = options.ComputedQL
22672267

22682268
// Filter Expand columns
2269-
filteredExpands := make([]ExpandOption, 0, len(options.Expand))
2270-
for _, expand := range options.Expand {
2271-
filteredExpand := expand
2272-
// Don't validate relation name, only columns
2273-
filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
2274-
filteredExpands = append(filteredExpands, filteredExpand)
2275-
}
2276-
filtered.Expand = filteredExpands
2269+
// filteredExpands := make([]ExpandOption, 0, len(options.Expand))
2270+
// for _, expand := range options.Expand {
2271+
// filteredExpand := expand
2272+
// // Don't validate relation name, only columns
2273+
// filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
2274+
// filteredExpands = append(filteredExpands, filteredExpand)
2275+
// }
2276+
// filtered.Expand = filteredExpands
22772277

22782278
return filtered
22792279
}

0 commit comments

Comments
 (0)